Function at 0x41a6e5
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4cc8c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x25c], eax
xor eax, eax
push esi
push edi
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
mov esi, 0x104
push esi
push 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x150]
push eax
call fcn.00466ad0
push esi
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.00466ad0
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00451684
add esp, 0x1c
test eax, eax
je 0x41a77c
call fcn.0042c5ca
mov ebx, eax
push ebx
call fcn.00451684
pop ecx
test eax, eax
je 0x41a77c
push 0x494338
call fcn.0040d511
pop ecx
xor eax, eax
jmp 0x41aefb
push esi
lea eax, [ebp - 0x150]
push eax
push ebx
call fcn.00430042
add esp, 0xc
test eax, eax
jne 0x41a79e
lea eax, [ebp - 0x150]
push eax
call fcn.00450a50
pop ecx
lea eax, [ebp - 0x150]
push eax
call fcn.0045207d
call fcn.0042c5c4
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00450a50
pop ecx
pop ecx
cmp esi, 0x64
jge 0x41a7c8
push str.:4:AutoDetectRealStoreID___FAILED:_GetStoreNumber___has_not_yet_been_initialized.
jmp 0x41a76f
push 0xa
pop eax
push eax
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.00426dcc
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00452b01
push 0xc
lea eax, [ebp - 0x25]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00452b01
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x25], 0
push eax
mov byte [ebp - 0x31], 0
call fcn.00450a50
push ebx
call fcn.00434204
mov edi, eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
push str.SELECT_ALPHA_DC_CODE_FROM_DISTRIBUTION_CENTER_WHERE_DIVISION_CODE_s_AND_DC_CODE_s
push edi
call fcn.004348cf
add esp, 0x3c
test eax, eax
je 0x41a858
push 1
push 0
push 0x15
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.004349c0
add esp, 0x14
test eax, eax
jne 0x41a858
lea eax, [ebp - 0x1c]
push eax
call fcn.00450a50
pop ecx
push edi
call fcn.0043453d
lea eax, [ebp - 0x1c]
push eax
call fcn.00451684
pop ecx
pop ecx
test eax, eax
je 0x41a882
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
push str.:4:AutoDetectRealStoreID___EAP:_ExecuteODBCFormat___FAILED_for__s__s.
call fcn.0040d511
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call fcn.0045207d
lea eax, [ebp - 0x1c]
push eax
call fcn.00451684
pop ecx
pop ecx
test eax, eax
je case.0x41a8f6.100002
mov ecx, 0xf423f
cmp esi, ecx
jle 0x41a8b6
push 0xa
pop edi
mov eax, esi
xor edx, edx
div edi
mov esi, eax
cmp esi, ecx
jg 0x41a8aa
mov eax, 0x927c4
cmp esi, eax
jg 0x41aae1
je 0x41aad7
mov eax, 0x61a82
cmp esi, eax
jg 0x41a9d5
je 0x41a9cb
mov eax, 0x30d41
cmp esi, eax
jg 0x41a957
je 0x41a94d
add esi, 0xfffe795f
cmp esi, 8
ja case.0x41a8f6.100002
jmp dword [esi*4 + 0x41af11]
mov eax, 0x494558
jmp 0x41acc8
mov eax, 0x49455c
jmp 0x41acc8
mov eax, 0x494560
jmp 0x41acc8
mov eax, 0x494564
jmp 0x41acc8
mov eax, 0x494568
jmp 0x41acc8
mov eax, 0x49456c
jmp 0x41acc8
mov eax, 0x494570
jmp 0x41acc8
mov eax, 0x494574
jmp 0x41acc8
mov eax, 0x494554
jmp 0x41acc8
sub esi, 0x30d42
je 0x41a9c1
sub esi, 1
je 0x41a9b7
sub esi, 1
je 0x41a9ad
sub esi, 1
je 0x41a9a3
dec esi
sub esi, 1
je 0x41a999
sub esi, 1
je 0x41a98f
sub esi, 0x30d39
jne case.0x41a8f6.100002
mov eax, 0x494538
jmp 0x41acc8
mov eax, 0x49453c
jmp 0x41acc8
mov eax, 0x494540
jmp 0x41acc8
mov eax, 0x494544
jmp 0x41acc8
mov eax, 0x494548
jmp 0x41acc8
mov eax, 0x49454c
jmp 0x41acc8
mov eax, 0x494550
jmp 0x41acc8
mov eax, 0x494534
jmp 0x41acc8
mov eax, 0x7a122
cmp esi, eax
jg 0x41aa62
je 0x41aa58
sub esi, 0x61a83
je 0x41aa4e
dec esi
sub esi, 1
je 0x41aa44
sub esi, 1
je 0x41aa3a
sub esi, 1
je 0x41aa30
sub esi, 1
je 0x41aa26
sub esi, 1
je 0x41aa1c
sub esi, 0x18698
jne case.0x41a8f6.100002
mov eax, 0x494518
jmp 0x41acc8
mov eax, 0x49451c
jmp 0x41acc8
mov eax, 0x494520
jmp 0x41acc8
mov eax, 0x494524
jmp 0x41acc8
mov eax, 0x494528
jmp 0x41acc8
mov eax, 0x49452c
jmp 0x41acc8
mov eax, 0x494530
jmp 0x41acc8
mov eax, 0x494514
jmp 0x41acc8
sub esi, 0x7a123
je 0x41aacd
sub esi, 1
je 0x41aac3
sub esi, 1
je 0x41aab9
dec esi
sub esi, 1
je 0x41aaaf
sub esi, 1
je 0x41aaa5
sub esi, 0x18699
je 0x41aa9b
dec esi
sub esi, 1
jne case.0x41a8f6.100002
mov eax, 0x4944fc
jmp 0x41acc8
mov eax, 0x494500
jmp 0x41acc8
mov eax, 0x494504
jmp 0x41acc8
mov eax, 0x494508
jmp 0x41acc8
mov eax, 0x490e40
jmp 0x41acc8
mov eax, 0x49450c
jmp 0x41acc8
mov eax, 0x494510
jmp 0x41acc8
mov eax, 0x4944f8
jmp 0x41acc8
mov eax, 0xc3504
cmp esi, eax
jg 0x41abf9
je 0x41abef
mov eax, 0xaae64
cmp esi, eax
jg 0x41ab7c
je 0x41ab72
sub esi, 0x927c5
je 0x41ab68
sub esi, 1
je 0x41ab5e
sub esi, 1
je 0x41ab54
sub esi, 1
je 0x41ab4a
sub esi, 0x18699
je 0x41ab40
sub esi, 1
je 0x41ab36
sub esi, 1
jne case.0x41a8f6.100002
mov eax, 0x4944dc
jmp 0x41acc8
mov eax, 0x4944e0
jmp 0x41acc8
mov eax, 0x4944e4
jmp 0x41acc8
mov eax, 0x4944e8
jmp 0x41acc8
mov eax, 0x4944ec
jmp 0x41acc8
mov eax, 0x4944f0
jmp 0x41acc8
mov eax, 0x4944f4
jmp 0x41acc8
mov eax, 0x4944d8
jmp 0x41acc8
sub esi, 0xaae65
je 0x41abe5
sub esi, 1
je 0x41abdb
sub esi, 1
je 0x41abd1
sub esi, 1
je 0x41abc7
sub esi, 0x18699
je 0x41abbd
sub esi, 1
je 0x41abb3
sub esi, 1
jne case.0x41a8f6.100002
mov eax, 0x4944bc
jmp 0x41acc8
mov eax, 0x4944c0
jmp 0x41acc8
mov eax, 0x4944c4
jmp 0x41acc8
mov eax, 0x4944c8
jmp 0x41acc8
mov eax, 0x4944cc
jmp 0x41acc8
mov eax, 0x4944d0
jmp 0x41acc8
mov eax, 0x4944d4
jmp 0x41acc8
mov eax, 0x4944b8
jmp 0x41acc8
mov eax, 0xdbba7
cmp esi, eax
jg 0x41ac70
je 0x41ac69
sub esi, 0xc3505
je 0x41ac62
sub esi, 1
je 0x41ac5b
sub esi, 0x1869b
je 0x41ac54
sub esi, 1
je 0x41ac4d
sub esi, 1
je 0x41ac46
dec esi
sub esi, 1
je 0x41ac3c
sub esi, 1
jne case.0x41a8f6.100002
mov eax, 0x49449c
jmp 0x41acc8
mov eax, 0x4944a0
jmp 0x41acc8
mov eax, 0x4944a4
jmp 0x41acc8
mov eax, 0x4944a8
jmp 0x41acc8
mov eax, 0x4944ac
jmp 0x41acc8
mov eax, 0x4944b0
jmp 0x41acc8
mov eax, 0x4944b4
jmp 0x41acc8
mov eax, 0x494498
jmp 0x41acc8
sub esi, 0xdbba8
je 0x41acc3
sub esi, 0x15f89
je 0x41acbc
sub esi, 1
je 0x41acb5
sub esi, 1
je 0x41acae
sub esi, 1
je 0x41aca7
sub esi, 1
je 0x41aca0
sub esi, 1
jne case.0x41a8f6.100002
mov eax, 0x494480
jmp 0x41acc8
mov eax, 0x494484
jmp 0x41acc8
mov eax, 0x48c014
jmp 0x41acc8
mov eax, 0x494488
jmp 0x41acc8
mov eax, 0x49448c
jmp 0x41acc8
mov eax, 0x494490
jmp 0x41acc8
mov eax, 0x494494
push 0x16
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00452b01
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call fcn.00451684
pop ecx
test eax, eax
je 0x41ad48
lea eax, [ebp - 0x150]
push eax
call fcn.00451684
pop ecx
test eax, eax
je 0x41ad00
push str.:4:AutoDetectRealStoreID___FAILED:_The_dns_name_could_not_be_determined_nor_T2_db_accessed.
jmp 0x41a76f
push dword [ebp - 0x150]
xor esi, esi
call fcn.004516ef
pop ecx
test eax, eax
jne 0x41ad43
cmp esi, 0x15
jae 0x41ad3a
mov al, byte [ebp + esi - 0x150]
test al, al
je 0x41ad43
mov byte [ebp + esi - 0x1c], al
inc esi
movzx eax, byte [ebp + esi - 0x150]
push eax
call fcn.004516ef
pop ecx
test eax, eax
je 0x41ad12
cmp esi, 0x16
jae 0x41af0a
mov byte [ebp + esi - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.0045207d
lea eax, [ebp - 0x1c]
push eax
call fcn.00451684
pop ecx
pop ecx
test eax, eax
je 0x41ad6a
push str.:7:AutoDetectRealStoreID___FAILED:_Could_not_determine_Alpha_DC_Code.
jmp 0x41a76f
lea eax, [ebp - 0x150]
push eax
call fcn.00451684
mov ebx, 0x104
pop ecx
test eax, eax
je 0x41ad99
lea eax, [ebp - 0x1c]
push eax
push str._s000
lea eax, [ebp - 0x150]
push ebx
push eax
call fcn.0045285b
add esp, 0x10
lea eax, [ebp - 0x254]
push eax
call fcn.00450a50
lea eax, [ebp - 0x150]
push eax
call fcn.00470560
pop ecx
pop ecx
mov edi, eax
sub edi, 1
push 0
pop esi
js 0x41adda
movzx ecx, byte [ebp + edi - 0x150]
push ecx
call fcn.004516ef
pop ecx
test eax, eax
je 0x41add6
inc esi
sub edi, 1
jns 0x41adbd
test esi, esi
jg 0x41adf4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x150]
push eax
call fcn.00470487
pop ecx
pop ecx
push 3
test eax, eax
pop ecx
cmovne esi, ecx
lea eax, [ebp - 0x4c]
push eax
call fcn.00470560
pop ecx
cmp esi, eax
jle 0x41ae1f
lea eax, [ebp - 0x4c]
push eax
push esi
push str.:7:AutoDetectRealStoreID___EAP:_Impossible:_iNumDigits___d__szCurrentStoreNum___s
call fcn.0040d511
lea eax, [ebp - 0x4c]
push eax
call fcn.00470560
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.00470560
pop ecx
lea ecx, [ebp - 0x4c]
sub ecx, esi
add eax, ecx
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00452b01
push ebx
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.004515fd
lea eax, [ebp - 0x254]
push 0x48b2e8
push eax
call fcn.00466c30
add esp, 0x24
test eax, eax
je 0x41ae7c
lea eax, [ebp - 0x254]
push eax
push str.:7:AutoDetectRealStoreID___EAP:_BAD_White_space_in_store_name____s__has_been_fixed._
call fcn.0040d511
pop ecx
pop ecx
lea eax, [ebp - 0x254]
push eax
call fcn.0045207d
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x150]
push eax
call fcn.00470487
add esp, 0xc
test eax, eax
jne 0x41aec6
test esi, esi
jg 0x41aeb9
lea eax, [ebp - 0x150]
push eax
push str.:5:AutoDetectRealStoreID___FAILED:_Bad_DNS_lookup___s_
call fcn.0040d511
pop ecx
pop ecx
lea eax, [ebp - 0x254]
push eax
call fcn.00450a50
pop ecx
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x41aedf
lea ecx, [ebp - 0x150]
push ecx
push eax
call fcn.00470240
pop ecx
pop ecx
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x41aef8
lea ecx, [ebp - 0x254]
push ecx
push eax
call fcn.00470240
pop ecx
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004654a8
leave
ret
call fcn.0046565b
nop
inc ebx
test eax, -1395195839
inc ecx
add byte [ecx], bh
test eax, 0xa92f0041
inc ecx
add byte [0x1b0041a9], ah
test eax, 0xa9110041
inc ecx
add byte [edi], al
test eax, 0xa8fd0041
inc ecx
add byte [ebp - 0x75], dl
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x4cc8c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x44c]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x104
push ebx
push eax
mov dword [ebp - 0x464], edi
call fcn.00466ad0
push 0x104
lea eax, [ebp - 0x148]
push ebx
push eax
call fcn.00466ad0
push 0x200
lea eax, [ebp - 0x348]
push ebx
push eax
call fcn.00466ad0
push 0x40
lea eax, [ebp - 0x44]
mov dword [ebp - 0x454], ebx
push ebx
push eax
call fcn.00466ad0
push edi
call fcn.00450a50
add esp, 0x34
test esi, esi
je 0x41afb0
mov dword [esi], ebx
call fcn.004609ba
push 0x50
push edi
push ebx
mov dword [ebp - 0x460], eax
call fcn.0043531a
add esp, 0xc
test eax, eax
jle 0x41afd9
test esi, esi
je 0x41afd1
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x41b1ed
push str.:4:AutoDetectStoreNameAndNumber___FAILED:_TAMS_II_GetStoreNumberTAMSii___FAILED.
call fcn.0040d511
mov dword [esp], str.C:UsersOfficeDocumentsVisual_StudioPAULAInstallation.c
push 0x141
push ebx
call fcn.004274e2
add esp, 0xc
mov dword [ebp - 0x450], eax
mov edi, ebx
mov dword [ebp - 0x458], ebx
push ebx
push ebx
push edi
lea eax, [ebp - 0x44c]
push ebx
push eax
call fcn.0041b2cd
push eax
call fcn.00451684
add esp, 0x18
test eax, eax
jne 0x41b18b
mov edi, ebx
cmp dword [ebp + 0x10], ebx
je 0x41b039
push 0x489fcc
call fcn.004071a9
pop ecx
lea eax, [ebp - 0x148]
test edi, edi
jne 0x41b052
push str.RPT077.PF.z
push eax
call fcn.00470240
pop ecx
pop ecx
jmp 0x41b061
push edi
push str.RPT00_d.PF.z
push eax
call fcn.0040401c
add esp, 0xc
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.00451949
push dword [ebp - 0x450]
call fcn.0042781d
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0x450]
call fcn.00428137
add esp, 0x14
test eax, eax
je 0x41b179
push ebx
push ebx
push dword [ebp - 0x450]
call fcn.0042808b
push dword [ebp - 0x450]
lea eax, [ebp - 0x348]
push 0x200
push eax
call fcn.00427b2f
push dword [ebp - 0x450]
lea eax, [ebp - 0x348]
push 0x200
push eax
call fcn.00427b2f
lea eax, [ebp - 0x44]
mov byte [ebp - 0x319], bl
push eax
call fcn.00450a50
lea eax, [ebp - 0x348]
push 0x4947c0
push eax
call fcn.00466c30
add esp, 0x30
test eax, eax
je 0x41b179
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x348]
push 0x4947c0
push eax
call fcn.00477ba0
add esp, 0xc
test eax, eax
je 0x41b179
lea eax, [ebp - 0x348]
push eax
call fcn.0047168f
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x454]
push eax
push 0x4947c0
push ebx
call fcn.00477ba0
add esp, 0x10
test eax, eax
je 0x41b179
push 0x40
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00452b01
lea eax, [ebp - 0x44]
push eax
call fcn.0045261c
lea eax, [ebp - 0x44]
push eax
call fcn.00470560
add esp, 0x14
cmp eax, 4
jbe 0x41b179
mov ecx, dword [ebp - 0x45c]
cmp ecx, 0x64
jg 0x41b1ba
inc edi
cmp edi, 3
jl 0x41b029
mov edi, dword [ebp - 0x458]
jmp 0x41b196
push str.:5:AutoDetectStoreNameAndNumber___FAILED:_GetMostRecentReportPath___FAILED.
call fcn.0040d511
pop ecx
call fcn.004609ba
sub eax, dword [ebp - 0x460]
cmp eax, 0x3a98
ja 0x41b1df
inc edi
mov dword [ebp - 0x458], edi
cmp edi, 0xa
jl 0x41b006
jmp 0x41b1df
mov eax, dword [ebp - 0x464]
test eax, eax
je 0x41b1d6
lea ecx, [ebp - 0x44]
push ecx
push eax
call fcn.00470240
pop ecx
pop ecx
mov ecx, dword [ebp - 0x45c]
test esi, esi
je 0x41b1dc
mov dword [esi], ecx
xor ebx, ebx
inc ebx
push dword [ebp - 0x450]
call fcn.004276ad
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004654a8
leave
ret