Function at 0x487a93
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x4e22e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x264], eax
push esi
push edi
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 - 0x157]
push 0
push eax
mov ebx, ecx
mov byte [ebp - 0x158], 0
call fcn.00401f80
push esi
lea eax, [ebp - 0x25f]
push 0
push eax
mov byte [ebp - 0x260], 0
call fcn.00401f80
xor eax, eax
mov byte [ebp - 0x1c], 0
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
add esp, 0x18
stosb byte es:[edi], al
call fcn.00454d5c
test eax, eax
jne 0x488151
mov edx, ebx
call fcn.00439c75
test eax, eax
je 0x487b37
call fcn.00467275
mov ebx, eax
mov edx, ebx
call fcn.00439c75
test eax, eax
je 0x487b37
xor eax, eax
jmp 0x48818f
lea eax, [ebp - 0x158]
call fcn.00438b22
mov esi, eax
call fcn.0043986d
call fcn.00465ee9
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x1c]
call fcn.00438b22
cmp dword [ebp - 0x268], 0x64
jl 0x487b30
push dword [ebp - 0x268]
lea eax, [ebp - 0x4c]
call fcn.0046fe95
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
lea eax, [ebp - 0x4c]
push eax
push 0xc
pop ecx
lea eax, [ebp - 0x28]
call fcn.00438aa8
lea eax, [ebp - 0x25]
push eax
push 0xc
pop ecx
lea eax, [ebp - 0x34]
call fcn.00438aa8
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x31], 0
call fcn.00438b22
push ebx
call fcn.0046185e
mov esi, 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 esi
call fcn.00460aca
add esp, 0x20
test eax, eax
je 0x487bfe
push 1
push 0
push 0x15
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.004606c9
add esp, 0x14
test eax, eax
jne 0x487bfe
lea eax, [ebp - 0x1c]
call fcn.00438b22
push esi
call fcn.004609b5
pop ecx
lea esi, [ebp - 0x1c]
call fcn.0043986d
mov edx, esi
call fcn.00439c75
test eax, eax
je case.0x487c72.100002
mov eax, dword [ebp - 0x268]
mov ecx, 0xf423f
jmp 0x487c2f
push 0xa
cdq
pop esi
idiv esi
cmp eax, ecx
jg 0x487c29
mov ecx, 0x927c4
cmp eax, ecx
jg 0x487e35
je 0x487e2b
mov ecx, 0x61a82
cmp eax, ecx
jg 0x487d45
je 0x487d3b
mov ecx, 0x30d41
cmp eax, ecx
jg 0x487cd3
je 0x487cc9
add eax, 0xfffe795f
cmp eax, 8
ja case.0x487c72.100002
jmp dword [eax*4 + 0x48819f]
mov eax, 0x4b34a0
jmp 0x487fe6
mov eax, 0x4b34a4
jmp 0x487fe6
mov eax, 0x4b34a8
jmp 0x487fe6
mov eax, 0x4b34ac
jmp 0x487fe6
mov eax, 0x4b34b0
jmp 0x487fe6
mov eax, 0x4b34b4
jmp 0x487fe6
mov eax, 0x4b34b8
jmp 0x487fe6
mov eax, 0x4b34bc
jmp 0x487fe6
mov eax, 0x4b349c
jmp 0x487fe6
sub eax, 0x30d42
je 0x487d31
dec eax
je 0x487d27
dec eax
je 0x487d1d
dec eax
je 0x487d13
dec eax
dec eax
je 0x487d09
dec eax
je 0x487cff
sub eax, 0x30d39
jne case.0x487c72.100002
mov eax, 0x4b3480
jmp 0x487fe6
mov eax, 0x4b3484
jmp 0x487fe6
mov eax, 0x4b3488
jmp 0x487fe6
mov eax, 0x4b348c
jmp 0x487fe6
mov eax, 0x4b3490
jmp 0x487fe6
mov eax, 0x4b3494
jmp 0x487fe6
mov eax, 0x4b3498
jmp 0x487fe6
mov eax, 0x4b347c
jmp 0x487fe6
mov ecx, 0x7a122
cmp eax, ecx
jg 0x487dc2
je 0x487db8
sub eax, 0x61a83
je 0x487dae
dec eax
dec eax
je 0x487da4
dec eax
je 0x487d9a
dec eax
je 0x487d90
dec eax
je 0x487d86
dec eax
je 0x487d7c
sub eax, 0x18698
jne case.0x487c72.100002
mov eax, 0x4b3460
jmp 0x487fe6
mov eax, 0x4b3464
jmp 0x487fe6
mov eax, 0x4b3468
jmp 0x487fe6
mov eax, 0x4b346c
jmp 0x487fe6
mov eax, 0x4b3470
jmp 0x487fe6
mov eax, 0x4b3474
jmp 0x487fe6
mov eax, 0x4b3478
jmp 0x487fe6
mov eax, 0x4b345c
jmp 0x487fe6
sub eax, 0x7a123
je 0x487e21
dec eax
je 0x487e17
dec eax
je 0x487e0d
dec eax
dec eax
je 0x487e03
dec eax
je 0x487df9
sub eax, 0x18699
je 0x487def
dec eax
dec eax
jne case.0x487c72.100002
mov eax, 0x4b3444
jmp 0x487fe6
mov eax, 0x4b3448
jmp 0x487fe6
mov eax, 0x4b344c
jmp 0x487fe6
mov eax, 0x4b3450
jmp 0x487fe6
mov eax, 0x4b1b94
jmp 0x487fe6
mov eax, 0x4b3454
jmp 0x487fe6
mov eax, 0x4b3458
jmp 0x487fe6
mov eax, 0x4b3440
jmp 0x487fe6
mov ecx, 0xc3504
cmp eax, ecx
jg 0x487f35
je 0x487f2b
mov ecx, 0xaae64
cmp eax, ecx
jg 0x487ec4
je 0x487eba
sub eax, 0x927c5
je 0x487eb0
dec eax
je 0x487ea6
dec eax
je 0x487e9c
dec eax
je 0x487e92
sub eax, 0x18699
je 0x487e88
dec eax
je 0x487e7e
dec eax
jne case.0x487c72.100002
mov eax, 0x4b3424
jmp 0x487fe6
mov eax, 0x4b3428
jmp 0x487fe6
mov eax, 0x4b342c
jmp 0x487fe6
mov eax, 0x4b3430
jmp 0x487fe6
mov eax, 0x4b3434
jmp 0x487fe6
mov eax, 0x4b3438
jmp 0x487fe6
mov eax, 0x4b343c
jmp 0x487fe6
mov eax, 0x4b3420
jmp 0x487fe6
sub eax, 0xaae65
je 0x487f21
dec eax
je 0x487f17
dec eax
je 0x487f0d
dec eax
je 0x487f03
sub eax, 0x18699
je 0x487ef9
dec eax
je 0x487eef
dec eax
jne case.0x487c72.100002
mov eax, 0x4b3404
jmp 0x487fe6
mov eax, 0x4b3408
jmp 0x487fe6
mov eax, 0x4b340c
jmp 0x487fe6
mov eax, 0x4b3410
jmp 0x487fe6
mov eax, 0x4b3414
jmp 0x487fe6
mov eax, 0x4b3418
jmp 0x487fe6
mov eax, 0x4b341c
jmp 0x487fe6
mov eax, 0x4b3400
jmp 0x487fe6
mov ecx, 0xdbba7
cmp eax, ecx
jg 0x487f9a
je 0x487f93
sub eax, 0xc3505
je 0x487f8c
dec eax
je 0x487f85
sub eax, 0x1869b
je 0x487f7e
dec eax
je 0x487f77
dec eax
je 0x487f70
dec eax
dec eax
je 0x487f69
dec eax
jne case.0x487c72.100002
mov eax, 0x4b33e4
jmp 0x487fe6
mov eax, 0x4b33e8
jmp 0x487fe6
mov eax, 0x4b33ec
jmp 0x487fe6
mov eax, 0x4b33f0
jmp 0x487fe6
mov eax, 0x4b33f4
jmp 0x487fe6
mov eax, 0x4b33f8
jmp 0x487fe6
mov eax, 0x4b33fc
jmp 0x487fe6
mov eax, 0x4b33e0
jmp 0x487fe6
sub eax, 0xdbba8
je 0x487fe1
sub eax, 0x15f89
je 0x487fda
dec eax
je 0x487fd3
dec eax
je 0x487fcc
dec eax
je 0x487fc5
dec eax
je 0x487fbe
dec eax
jne case.0x487c72.100002
mov eax, 0x4b33c8
jmp 0x487fe6
mov eax, 0x4b33cc
jmp 0x487fe6
mov eax, 0x4b0448
jmp 0x487fe6
mov eax, 0x4b33d0
jmp 0x487fe6
mov eax, 0x4b33d4
jmp 0x487fe6
mov eax, 0x4b33d8
jmp 0x487fe6
mov eax, 0x4b33dc
push eax
push 0x16
pop ecx
lea eax, [ebp - 0x1c]
call fcn.00438aa8
pop ecx
lea edx, [ebp - 0x1c]
call fcn.00439c75
test eax, eax
je 0x488046
lea edx, [ebp - 0x158]
call fcn.00439c75
test eax, eax
jne 0x487b30
mov al, byte [ebp - 0x158]
xor edx, edx
jmp 0x488038
cmp edx, 0x15
jae 0x488041
mov al, byte [ebp + edx - 0x158]
test al, al
je 0x488041
mov byte [ebp + edx - 0x1c], al
mov al, byte [ebp + edx - 0x157]
inc edx
call fcn.00438606
test eax, eax
je 0x48801c
mov byte [ebp + edx - 0x1c], 0
lea esi, [ebp - 0x1c]
call fcn.0043986d
mov edx, esi
call fcn.00439c75
test eax, eax
jne 0x487b30
lea edx, [ebp - 0x158]
call fcn.00439c75
mov esi, 0x104
test eax, eax
je 0x48808a
lea eax, [ebp - 0x1c]
push eax
push str._s000
lea eax, [ebp - 0x158]
push esi
push eax
call fcn.004392ef
add esp, 0x10
lea eax, [ebp - 0x260]
call fcn.00438b22
lea eax, [ebp - 0x158]
push eax
call fcn.00401a80
pop ecx
mov edx, eax
dec edx
push 0
pop edi
js 0x4880c2
mov al, byte [ebp + edx - 0x158]
call fcn.00438606
test eax, eax
je 0x4880be
inc edi
dec edx
jns 0x4880aa
test edi, edi
jg 0x4880db
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00401811
pop ecx
pop ecx
test eax, eax
je 0x4880db
push 3
pop edi
lea eax, [ebp - 0x4c]
push eax
call fcn.00401a80
pop ecx
cmp edi, eax
jle 0x4880f5
lea eax, [ebp - 0x4c]
push eax
call fcn.00401a80
pop ecx
mov edi, eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00401a80
lea ecx, [ebp - 0x4c]
sub ecx, edi
add eax, ecx
push eax
mov ecx, esi
lea eax, [ebp - 0x260]
call fcn.00438aa8
push esi
push 0
push eax
lea ebx, [ebp - 0x1c]
call fcn.00438751
lea eax, [ebp - 0x260]
push 0x4afe9c
push eax
call fcn.00401b10
lea esi, [ebp - 0x260]
call fcn.0043986d
mov eax, esi
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00401811
add esp, 0x24
test eax, eax
jne 0x48815c
lea eax, [ebp - 0x260]
call fcn.00438b22
cmp dword [ebp - 0x264], 0
je 0x488179
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0x264]
call fcn.00401ba0
pop ecx
pop ecx
lea eax, [ebp - 0x260]
push eax
push 0x5d9750
call fcn.00401ba0
xor eax, eax
pop ecx
inc eax
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret