Function at 0x484181
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x4d82d4]
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.00453bf0
test eax, eax
jne 0x48483f
mov edx, ebx
call fcn.00439c56
test eax, eax
je 0x484225
call fcn.00465bb1
mov ebx, eax
mov edx, ebx
call fcn.00439c56
test eax, eax
je 0x484225
xor eax, eax
jmp 0x48487d
lea eax, [ebp - 0x158]
call fcn.00438b7b
mov esi, eax
call fcn.0043984e
call fcn.00464825
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x1c]
call fcn.00438b7b
cmp dword [ebp - 0x268], 0x64
jl 0x48421e
push dword [ebp - 0x268]
lea eax, [ebp - 0x4c]
call fcn.0046e3b4
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.00438b01
lea eax, [ebp - 0x25]
push eax
push 0xc
pop ecx
lea eax, [ebp - 0x34]
call fcn.00438b01
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x31], 0
call fcn.00438b7b
push ebx
call fcn.00460513
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.0045f780
add esp, 0x20
test eax, eax
je 0x4842ec
push 1
push 0
push 0x15
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0045f37f
add esp, 0x14
test eax, eax
jne 0x4842ec
lea eax, [ebp - 0x1c]
call fcn.00438b7b
push esi
call fcn.0045f66b
pop ecx
lea esi, [ebp - 0x1c]
call fcn.0043984e
mov edx, esi
call fcn.00439c56
test eax, eax
je case.0x484360.100002
mov eax, dword [ebp - 0x268]
mov ecx, 0xf423f
jmp 0x48431d
push 0xa
cdq
pop esi
idiv esi
cmp eax, ecx
jg 0x484317
mov ecx, 0x927c4
cmp eax, ecx
jg 0x484523
je 0x484519
mov ecx, 0x61a82
cmp eax, ecx
jg 0x484433
je 0x484429
mov ecx, 0x30d41
cmp eax, ecx
jg 0x4843c1
je 0x4843b7
add eax, 0xfffe795f
cmp eax, 8
ja case.0x484360.100002
jmp dword [eax*4 + 0x48488c]
mov eax, 0x4acf84
jmp 0x4846d4
mov eax, 0x4acf88
jmp 0x4846d4
mov eax, 0x4acf8c
jmp 0x4846d4
mov eax, 0x4acf90
jmp 0x4846d4
mov eax, 0x4acf94
jmp 0x4846d4
mov eax, 0x4acf98
jmp 0x4846d4
mov eax, 0x4acf9c
jmp 0x4846d4
mov eax, 0x4acfa0
jmp 0x4846d4
mov eax, 0x4acf80
jmp 0x4846d4
sub eax, 0x30d42
je 0x48441f
dec eax
je 0x484415
dec eax
je 0x48440b
dec eax
je 0x484401
dec eax
dec eax
je 0x4843f7
dec eax
je 0x4843ed
sub eax, 0x30d39
jne case.0x484360.100002
mov eax, 0x4acf64
jmp 0x4846d4
mov eax, 0x4acf68
jmp 0x4846d4
mov eax, 0x4acf6c
jmp 0x4846d4
mov eax, 0x4acf70
jmp 0x4846d4
mov eax, 0x4acf74
jmp 0x4846d4
mov eax, 0x4acf78
jmp 0x4846d4
mov eax, 0x4acf7c
jmp 0x4846d4
mov eax, 0x4acf60
jmp 0x4846d4
mov ecx, 0x7a122
cmp eax, ecx
jg 0x4844b0
je 0x4844a6
sub eax, 0x61a83
je 0x48449c
dec eax
dec eax
je 0x484492
dec eax
je 0x484488
dec eax
je 0x48447e
dec eax
je 0x484474
dec eax
je 0x48446a
sub eax, 0x18698
jne case.0x484360.100002
mov eax, 0x4acf44
jmp 0x4846d4
mov eax, 0x4acf48
jmp 0x4846d4
mov eax, 0x4acf4c
jmp 0x4846d4
mov eax, 0x4acf50
jmp 0x4846d4
mov eax, 0x4acf54
jmp 0x4846d4
mov eax, 0x4acf58
jmp 0x4846d4
mov eax, 0x4acf5c
jmp 0x4846d4
mov eax, 0x4acf40
jmp 0x4846d4
sub eax, 0x7a123
je 0x48450f
dec eax
je 0x484505
dec eax
je 0x4844fb
dec eax
dec eax
je 0x4844f1
dec eax
je 0x4844e7
sub eax, 0x18699
je 0x4844dd
dec eax
dec eax
jne case.0x484360.100002
mov eax, 0x4acf28
jmp 0x4846d4
mov eax, 0x4acf2c
jmp 0x4846d4
mov eax, 0x4acf30
jmp 0x4846d4
mov eax, 0x4acf34
jmp 0x4846d4
mov eax, 0x4ab2fc
jmp 0x4846d4
mov eax, 0x4acf38
jmp 0x4846d4
mov eax, 0x4acf3c
jmp 0x4846d4
mov eax, 0x4acf24
jmp 0x4846d4
mov ecx, 0xc3504
cmp eax, ecx
jg 0x484623
je 0x484619
mov ecx, 0xaae64
cmp eax, ecx
jg 0x4845b2
je 0x4845a8
sub eax, 0x927c5
je 0x48459e
dec eax
je 0x484594
dec eax
je 0x48458a
dec eax
je 0x484580
sub eax, 0x18699
je 0x484576
dec eax
je 0x48456c
dec eax
jne case.0x484360.100002
mov eax, 0x4acf08
jmp 0x4846d4
mov eax, 0x4acf0c
jmp 0x4846d4
mov eax, 0x4acf10
jmp 0x4846d4
mov eax, 0x4acf14
jmp 0x4846d4
mov eax, 0x4acf18
jmp 0x4846d4
mov eax, 0x4acf1c
jmp 0x4846d4
mov eax, 0x4acf20
jmp 0x4846d4
mov eax, 0x4acf04
jmp 0x4846d4
sub eax, 0xaae65
je 0x48460f
dec eax
je 0x484605
dec eax
je 0x4845fb
dec eax
je 0x4845f1
sub eax, 0x18699
je 0x4845e7
dec eax
je 0x4845dd
dec eax
jne case.0x484360.100002
mov eax, 0x4acee8
jmp 0x4846d4
mov eax, 0x4aceec
jmp 0x4846d4
mov eax, 0x4acef0
jmp 0x4846d4
mov eax, 0x4acef4
jmp 0x4846d4
mov eax, 0x4acef8
jmp 0x4846d4
mov eax, 0x4acefc
jmp 0x4846d4
mov eax, 0x4acf00
jmp 0x4846d4
mov eax, 0x4acee4
jmp 0x4846d4
mov ecx, 0xdbba7
cmp eax, ecx
jg 0x484688
je 0x484681
sub eax, 0xc3505
je 0x48467a
dec eax
je 0x484673
sub eax, 0x1869b
je 0x48466c
dec eax
je 0x484665
dec eax
je 0x48465e
dec eax
dec eax
je 0x484657
dec eax
jne case.0x484360.100002
mov eax, 0x4acec8
jmp 0x4846d4
mov eax, 0x4acecc
jmp 0x4846d4
mov eax, 0x4aced0
jmp 0x4846d4
mov eax, 0x4aced4
jmp 0x4846d4
mov eax, 0x4aced8
jmp 0x4846d4
mov eax, 0x4acedc
jmp 0x4846d4
mov eax, 0x4acee0
jmp 0x4846d4
mov eax, 0x4acec4
jmp 0x4846d4
sub eax, 0xdbba8
je 0x4846cf
sub eax, 0x15f89
je 0x4846c8
dec eax
je 0x4846c1
dec eax
je 0x4846ba
dec eax
je 0x4846b3
dec eax
je 0x4846ac
dec eax
jne case.0x484360.100002
mov eax, 0x4acea8
jmp 0x4846d4
mov eax, 0x4aceac
jmp 0x4846d4
mov eax, 0x4aceb0
jmp 0x4846d4
mov eax, 0x4aceb4
jmp 0x4846d4
mov eax, 0x4aceb8
jmp 0x4846d4
mov eax, 0x4acebc
jmp 0x4846d4
mov eax, 0x4acec0
push eax
push 0x16
pop ecx
lea eax, [ebp - 0x1c]
call fcn.00438b01
pop ecx
lea edx, [ebp - 0x1c]
call fcn.00439c56
test eax, eax
je 0x484734
lea edx, [ebp - 0x158]
call fcn.00439c56
test eax, eax
jne 0x48421e
mov al, byte [ebp - 0x158]
xor edx, edx
jmp 0x484726
cmp edx, 0x15
jae 0x48472f
mov al, byte [ebp + edx - 0x158]
test al, al
je 0x48472f
mov byte [ebp + edx - 0x1c], al
mov al, byte [ebp + edx - 0x157]
inc edx
call fcn.0043865f
test eax, eax
je 0x48470a
mov byte [ebp + edx - 0x1c], 0
lea esi, [ebp - 0x1c]
call fcn.0043984e
mov edx, esi
call fcn.00439c56
test eax, eax
jne 0x48421e
lea edx, [ebp - 0x158]
call fcn.00439c56
mov esi, 0x104
test eax, eax
je 0x484778
lea eax, [ebp - 0x1c]
push eax
push str._s000
lea eax, [ebp - 0x158]
push esi
push eax
call fcn.004392d1
add esp, 0x10
lea eax, [ebp - 0x260]
call fcn.00438b7b
lea eax, [ebp - 0x158]
push eax
call fcn.00401a80
pop ecx
mov edx, eax
dec edx
push 0
pop edi
js 0x4847b0
mov al, byte [ebp + edx - 0x158]
call fcn.0043865f
test eax, eax
je 0x4847ac
inc edi
dec edx
jns 0x484798
test edi, edi
jg 0x4847c9
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00401811
pop ecx
pop ecx
test eax, eax
je 0x4847c9
push 3
pop edi
lea eax, [ebp - 0x4c]
push eax
call fcn.00401a80
pop ecx
cmp edi, eax
jle 0x4847e3
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.00438b01
push esi
push 0
push eax
lea ebx, [ebp - 0x1c]
call fcn.004387aa
lea eax, [ebp - 0x260]
push 0x4a9924
push eax
call fcn.00401b10
lea esi, [ebp - 0x260]
call fcn.0043984e
mov eax, esi
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00401811
add esp, 0x24
test eax, eax
jne 0x48484a
lea eax, [ebp - 0x260]
call fcn.00438b7b
cmp dword [ebp - 0x264], 0
je 0x484867
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0x264]
call fcn.00401ba0
pop ecx
pop ecx
lea eax, [ebp - 0x260]
push eax
push 0x5cbca0
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