Function at 0x43ff72
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x6294a0]
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
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
mov byte [ebp - 0x4c], 0
lea edi, [ebp - 0x4b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x103
push esi
stosb byte es:[edi], al
lea eax, [ebp - 0x14f]
push 0
push eax
mov byte [ebp - 0x150], 0
call fcn.00508d00
push esi
lea eax, [ebp - 0x253]
push 0
push eax
mov byte [ebp - 0x254], 0
call fcn.00508d00
mov byte [ebp - 0x1c], 0
xor eax, eax
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosb byte es:[edi], al
call fcn.004010dc
add esp, 0x1c
test eax, eax
je 0x44001d
call fcn.00401a50
mov ebx, eax
push ebx
call fcn.004010dc
test eax, eax
pop ecx
je 0x44001d
push str.:4:AutoDetectRealStoreID___FAILED:_GetTAMSIP___has_not_been_initialized.
call fcn.004020c2
pop ecx
xor eax, eax
jmp 0x44073d
push 0x104
lea eax, [ebp - 0x150]
push eax
push ebx
call fcn.0040206d
add esp, 0xc
test eax, eax
jne 0x440043
lea eax, [ebp - 0x150]
push eax
call fcn.00401ff5
pop ecx
lea eax, [ebp - 0x150]
push eax
call fcn.00402f9a
call fcn.004022d4
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401ff5
cmp esi, 0x64
pop ecx
pop ecx
jge 0x44006d
push str.:4:AutoDetectRealStoreID___FAILED:_GetStoreNumber___has_not_yet_been_initialized.
jmp 0x440010
push 0xa
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.00402e9b
xor eax, eax
mov byte [ebp - 0x28], 0
lea edi, [ebp - 0x27]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x34], 0
lea edi, [ebp - 0x33]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0xc
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402abd
push 0xc
lea eax, [ebp - 0x25]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402abd
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x31], 0
call fcn.00401ff5
push ebx
call fcn.00402527
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.0040245f
add esp, 0x3c
test eax, eax
je 0x440107
push 1
push 0
push 0x15
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.00401ce4
add esp, 0x14
test eax, eax
jne 0x440107
lea eax, [ebp - 0x1c]
push eax
call fcn.00401ff5
pop ecx
push edi
call fcn.0040141f
lea eax, [ebp - 0x1c]
push eax
call fcn.004010dc
test eax, eax
pop ecx
pop ecx
je 0x440131
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
push str.:4:AutoDetectRealStoreID___EAP:_ExecuteODBCFormat___FAILED_for__s__s.
call fcn.004020c2
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call fcn.00402f9a
lea eax, [ebp - 0x1c]
push eax
call fcn.004010dc
test eax, eax
pop ecx
pop ecx
je case.0x4401a1.100002
mov ecx, 0xf423f
cmp esi, ecx
mov eax, esi
jle 0x440162
push 0xa
cdq
pop esi
idiv esi
cmp eax, ecx
jg 0x440158
mov ecx, 0x927c4
cmp eax, ecx
jg 0x440364
je 0x44035a
mov ecx, 0x61a82
cmp eax, ecx
jg 0x440274
je 0x44026a
mov ecx, 0x30d41
cmp eax, ecx
jg 0x440202
je 0x4401f8
add eax, 0xfffe795f
cmp eax, 8
ja case.0x4401a1.100002
jmp dword [eax*4 + 0x44074e]
mov eax, 0x59a7bc
jmp 0x440515
mov eax, 0x59a7b8
jmp 0x440515
mov eax, 0x59a7b4
jmp 0x440515
mov eax, 0x59a7b0
jmp 0x440515
mov eax, 0x59a7ac
jmp 0x440515
mov eax, 0x59a7a8
jmp 0x440515
mov eax, 0x59a7a4
jmp 0x440515
mov eax, 0x59a7a0
jmp 0x440515
mov eax, 0x59a79c
jmp 0x440515
sub eax, 0x30d42
je 0x440260
dec eax
je 0x440256
dec eax
je 0x44024c
dec eax
je 0x440242
dec eax
dec eax
je 0x440238
dec eax
je 0x44022e
sub eax, 0x30d39
jne case.0x4401a1.100002
mov eax, 0x59a798
jmp 0x440515
mov eax, 0x59a794
jmp 0x440515
mov eax, 0x59a790
jmp 0x440515
mov eax, 0x59a78c
jmp 0x440515
mov eax, 0x59a788
jmp 0x440515
mov eax, 0x59a784
jmp 0x440515
mov eax, 0x59a780
jmp 0x440515
mov eax, 0x59a77c
jmp 0x440515
mov ecx, 0x7a122
cmp eax, ecx
jg 0x4402f1
je 0x4402e7
sub eax, 0x61a83
je 0x4402dd
dec eax
dec eax
je 0x4402d3
dec eax
je 0x4402c9
dec eax
je 0x4402bf
dec eax
je 0x4402b5
dec eax
je 0x4402ab
sub eax, 0x18698
jne case.0x4401a1.100002
mov eax, 0x59a778
jmp 0x440515
mov eax, 0x59a774
jmp 0x440515
mov eax, 0x59a770
jmp 0x440515
mov eax, 0x59a76c
jmp 0x440515
mov eax, 0x59a768
jmp 0x440515
mov eax, 0x59a764
jmp 0x440515
mov eax, 0x59a760
jmp 0x440515
mov eax, 0x59a75c
jmp 0x440515
sub eax, 0x7a123
je 0x440350
dec eax
je 0x440346
dec eax
je 0x44033c
dec eax
dec eax
je 0x440332
dec eax
je 0x440328
sub eax, 0x18699
je 0x44031e
dec eax
dec eax
jne case.0x4401a1.100002
mov eax, 0x59a758
jmp 0x440515
mov eax, 0x59a754
jmp 0x440515
mov eax, 0x59a750
jmp 0x440515
mov eax, 0x59a74c
jmp 0x440515
mov eax, 0x593570
jmp 0x440515
mov eax, 0x59a748
jmp 0x440515
mov eax, 0x59a744
jmp 0x440515
mov eax, 0x59a740
jmp 0x440515
mov ecx, 0xc3504
cmp eax, ecx
jg 0x440464
je 0x44045a
mov ecx, 0xaae64
cmp eax, ecx
jg 0x4403f3
je 0x4403e9
sub eax, 0x927c5
je 0x4403df
dec eax
je 0x4403d5
dec eax
je 0x4403cb
dec eax
je 0x4403c1
sub eax, 0x18699
je 0x4403b7
dec eax
je 0x4403ad
dec eax
jne case.0x4401a1.100002
mov eax, 0x59a73c
jmp 0x440515
mov eax, 0x59a738
jmp 0x440515
mov eax, 0x59a734
jmp 0x440515
mov eax, 0x59a730
jmp 0x440515
mov eax, 0x59a72c
jmp 0x440515
mov eax, 0x59a728
jmp 0x440515
mov eax, 0x59a724
jmp 0x440515
mov eax, 0x59a720
jmp 0x440515
sub eax, 0xaae65
je 0x440450
dec eax
je 0x440446
dec eax
je 0x44043c
dec eax
je 0x440432
sub eax, 0x18699
je 0x440428
dec eax
je 0x44041e
dec eax
jne case.0x4401a1.100002
mov eax, 0x59a71c
jmp 0x440515
mov eax, 0x59a718
jmp 0x440515
mov eax, 0x59a714
jmp 0x440515
mov eax, 0x59a710
jmp 0x440515
mov eax, 0x59a70c
jmp 0x440515
mov eax, 0x59a708
jmp 0x440515
mov eax, 0x59a704
jmp 0x440515
mov eax, 0x59a700
jmp 0x440515
mov ecx, 0xdbba7
cmp eax, ecx
jg 0x4404c9
je 0x4404c2
sub eax, 0xc3505
je 0x4404bb
dec eax
je 0x4404b4
sub eax, 0x1869b
je 0x4404ad
dec eax
je 0x4404a6
dec eax
je 0x44049f
dec eax
dec eax
je 0x440498
dec eax
jne case.0x4401a1.100002
mov eax, 0x59a6fc
jmp 0x440515
mov eax, 0x59a6f8
jmp 0x440515
mov eax, 0x59a6f4
jmp 0x440515
mov eax, 0x59a6f0
jmp 0x440515
mov eax, 0x59a6ec
jmp 0x440515
mov eax, 0x59a6e8
jmp 0x440515
mov eax, 0x59a6e4
jmp 0x440515
mov eax, 0x59a6e0
jmp 0x440515
sub eax, 0xdbba8
je 0x440510
sub eax, 0x15f89
je 0x440509
dec eax
je 0x440502
dec eax
je 0x4404fb
dec eax
je 0x4404f4
dec eax
je 0x4404ed
dec eax
jne case.0x4401a1.100002
mov eax, 0x59a6dc
jmp 0x440515
mov eax, 0x59a6d8
jmp 0x440515
mov eax, 0x5891f8
jmp 0x440515
mov eax, 0x59a6d4
jmp 0x440515
mov eax, 0x59a6d0
jmp 0x440515
mov eax, 0x59a6cc
jmp 0x440515
mov eax, 0x59a6c8
push 0x16
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00402abd
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call fcn.004010dc
test eax, eax
pop ecx
je 0x440584
lea eax, [ebp - 0x150]
push eax
call fcn.004010dc
test eax, eax
pop ecx
je 0x44054d
push str.:4:AutoDetectRealStoreID___FAILED:_The_dns_name_could_not_be_determined_nor_T2_db_accessed.
jmp 0x440010
push dword [ebp - 0x150]
xor esi, esi
jmp 0x440575
cmp esi, 0x15
jae 0x44057f
mov al, byte [ebp + esi - 0x150]
test al, al
je 0x44057f
mov byte [ebp + esi - 0x1c], al
movzx eax, byte [ebp + esi - 0x14f]
inc esi
push eax
call fcn.00402329
test eax, eax
pop ecx
je 0x440557
mov byte [ebp + esi - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00402f9a
lea eax, [ebp - 0x1c]
push eax
call fcn.004010dc
test eax, eax
pop ecx
pop ecx
je 0x4405a6
push str.:7:AutoDetectRealStoreID___FAILED:_Could_not_determine_Alpha_DC_Code.
jmp 0x440010
lea eax, [ebp - 0x150]
push eax
call fcn.004010dc
test eax, eax
pop ecx
je 0x4405d4
lea eax, [ebp - 0x1c]
push eax
push str._s000
lea eax, [ebp - 0x150]
push 0x104
push eax
call fcn.00402dbf
add esp, 0x10
lea eax, [ebp - 0x254]
push eax
call fcn.00401ff5
lea eax, [ebp - 0x150]
push eax
call fcn.00508320
pop ecx
pop ecx
mov edi, eax
dec edi
push 0
pop ebx
js 0x440611
movzx eax, byte [ebp + edi - 0x150]
push eax
call fcn.00402329
test eax, eax
pop ecx
je 0x44060d
inc ebx
dec edi
jns 0x4405f6
test ebx, ebx
jg 0x44062a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x150]
push eax
call fcn.0050da80
test eax, eax
pop ecx
pop ecx
je 0x44062a
push 3
pop ebx
lea eax, [ebp - 0x4c]
push eax
call fcn.00508320
cmp ebx, eax
pop ecx
jle 0x440655
lea eax, [ebp - 0x4c]
push eax
push ebx
push str.:7:AutoDetectRealStoreID___EAP:_Impossible:_iNumDigits___d__szCurrentStoreNum___s
call fcn.004020c2
lea eax, [ebp - 0x4c]
push eax
call fcn.00508320
add esp, 0x10
mov ebx, eax
mov esi, 0x104
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.00508320
pop ecx
lea ecx, [ebp - 0x4c]
sub ecx, ebx
add eax, ecx
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00402abd
push esi
xor esi, esi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.004021da
lea eax, [ebp - 0x254]
push 0x5871c8
push eax
call fcn.0050e4b0
add esp, 0x24
test eax, eax
je 0x4406b8
lea eax, [ebp - 0x254]
push eax
push str.:7:AutoDetectRealStoreID___EAP:_BAD_White_space_in_store_name____s__has_been_fixed._
call fcn.004020c2
pop ecx
pop ecx
lea eax, [ebp - 0x254]
push eax
call fcn.00402f9a
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x150]
push eax
call fcn.0050da80
add esp, 0xc
test eax, eax
jne 0x440702
cmp ebx, esi
jg 0x4406f5
lea eax, [ebp - 0x150]
push eax
push str.:5:AutoDetectRealStoreID___FAILED:_Bad_DNS_lookup___s_
call fcn.004020c2
pop ecx
pop ecx
lea eax, [ebp - 0x254]
push eax
call fcn.00401ff5
pop ecx
cmp dword [ebp - 0x258], esi
je 0x44071e
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x258]
call fcn.0050d660
pop ecx
pop ecx
cmp dword [ebp - 0x25c], esi
je 0x44073a
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x25c]
call fcn.0050d660
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.00508cf0
leave
ret