Function at 0x4218c4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x51f5d0]
xor eax, esp
mov dword [esp + 0x268], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 8], eax
push esi
push edi
xor eax, eax
mov byte [esp + 0x48], 0
lea edi, [esp + 0x49]
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, [esp + 0x65]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x6c], 0
call fcn.004c05d0
add esp, 0xc
push esi
lea eax, [esp + 0x16d]
push 0
push eax
mov byte [esp + 0x174], 0
call fcn.004c05d0
mov byte [esp + 0x24], 0
xor eax, eax
lea edi, [esp + 0x25]
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, 0xc
stosb byte es:[edi], al
call fcn.0045fb6e
test eax, eax
je 0x421980
lea eax, [esp + 0x168]
call fcn.004856d7
mov ecx, dword [esp + 0x10]
push 0x104
lea edx, [esp + 0x64]
call fcn.00445574
test ebx, ebx
pop ecx
je 0x422024
lea eax, [esp + 0x60]
push eax
push ebx
jmp 0x42201d
mov edx, dword [esp + 0x10]
call fcn.00485754
test eax, eax
je 0x4219a8
call fcn.00440bbb
mov edx, eax
mov dword [esp + 0x10], edx
call fcn.00485754
test eax, eax
je 0x4219a8
xor eax, eax
jmp 0x42203b
mov ecx, dword [esp + 0x10]
push 0x104
lea edx, [esp + 0x64]
call fcn.00445574
test eax, eax
pop ecx
jne 0x4219c8
lea eax, [esp + 0x60]
call fcn.004856d7
lea esi, [esp + 0x60]
call fcn.00486200
call fcn.00440a8a
mov ebx, eax
lea eax, [esp + 0x18]
call fcn.004856d7
cmp ebx, 0x64
jl 0x4219a1
push ebx
lea eax, [esp + 0x4c]
call fcn.0043e851
pop ecx
call fcn.0040fdff
test eax, eax
je 0x421aaf
call fcn.0045fba0
test eax, eax
jne 0x421aaf
mov byte [esp + 0x30], al
lea edi, [esp + 0x31]
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 [esp + 0x3c], 0
lea edi, [esp + 0x3d]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x48]
push eax
push 0xc
pop ecx
lea eax, [esp + 0x34]
call fcn.00485786
pop ecx
lea eax, [esp + 0x33]
push eax
push 0xc
pop ecx
lea eax, [esp + 0x40]
call fcn.00485786
pop ecx
lea eax, [esp + 0x18]
mov byte [esp + 0x33], 0
mov byte [esp + 0x3f], 0
call fcn.004856d7
push dword [esp + 0x10]
call fcn.00453eb2
pop ecx
mov esi, eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x34]
push eax
push str.SELECT_ALPHA_DC_CODE_FROM_DISTRIBUTION_CENTER_WHERE_DIVISION_CODE_s_AND_DC_CODE_s
push esi
call fcn.0045308c
add esp, 0x10
test eax, eax
je 0x421aa8
push 1
push 0
push 0x15
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00453177
add esp, 0x14
test eax, eax
jne 0x421aa8
lea eax, [esp + 0x18]
call fcn.004856d7
push esi
call fcn.00452e47
pop ecx
lea esi, [esp + 0x18]
call fcn.00486200
mov edx, esi
call fcn.00485754
test eax, eax
je case.0x421b1b.100002
mov ecx, 0xf423f
cmp ebx, ecx
mov eax, ebx
jle 0x421adc
push 0xa
cdq
pop esi
idiv esi
cmp eax, ecx
jg 0x421ad2
mov ecx, 0x927c4
cmp eax, ecx
jg 0x421cde
je 0x421cd4
mov ecx, 0x61a82
cmp eax, ecx
jg 0x421bee
je 0x421be4
mov ecx, 0x30d41
cmp eax, ecx
jg 0x421b7c
je 0x421b72
add eax, 0xfffe795f
cmp eax, 8
ja case.0x421b1b.100002
jmp dword [eax*4 + 0x422050]
mov eax, 0x4e48ac
jmp 0x421e8f
mov eax, 0x4e48b0
jmp 0x421e8f
mov eax, 0x4e48b4
jmp 0x421e8f
mov eax, 0x4e48b8
jmp 0x421e8f
mov eax, 0x4e48bc
jmp 0x421e8f
mov eax, 0x4e48c0
jmp 0x421e8f
mov eax, 0x4e48c4
jmp 0x421e8f
mov eax, 0x4e48c8
jmp 0x421e8f
mov eax, 0x4e48a8
jmp 0x421e8f
sub eax, 0x30d42
je 0x421bda
dec eax
je 0x421bd0
dec eax
je 0x421bc6
dec eax
je 0x421bbc
dec eax
dec eax
je 0x421bb2
dec eax
je 0x421ba8
sub eax, 0x30d39
jne case.0x421b1b.100002
mov eax, 0x4e488c
jmp 0x421e8f
mov eax, 0x4e4890
jmp 0x421e8f
mov eax, 0x4e4894
jmp 0x421e8f
mov eax, 0x4e4898
jmp 0x421e8f
mov eax, 0x4e489c
jmp 0x421e8f
mov eax, 0x4e48a0
jmp 0x421e8f
mov eax, 0x4e48a4
jmp 0x421e8f
mov eax, 0x4e4888
jmp 0x421e8f
mov ecx, 0x7a122
cmp eax, ecx
jg 0x421c6b
je 0x421c61
sub eax, 0x61a83
je 0x421c57
dec eax
dec eax
je 0x421c4d
dec eax
je 0x421c43
dec eax
je 0x421c39
dec eax
je 0x421c2f
dec eax
je 0x421c25
sub eax, 0x18698
jne case.0x421b1b.100002
mov eax, 0x4e486c
jmp 0x421e8f
mov eax, 0x4e4870
jmp 0x421e8f
mov eax, 0x4e4874
jmp 0x421e8f
mov eax, 0x4e4878
jmp 0x421e8f
mov eax, 0x4e487c
jmp 0x421e8f
mov eax, 0x4e4880
jmp 0x421e8f
mov eax, 0x4e4884
jmp 0x421e8f
mov eax, 0x4e4868
jmp 0x421e8f
sub eax, 0x7a123
je 0x421cca
dec eax
je 0x421cc0
dec eax
je 0x421cb6
dec eax
dec eax
je 0x421cac
dec eax
je 0x421ca2
sub eax, 0x18699
je 0x421c98
dec eax
dec eax
jne case.0x421b1b.100002
mov eax, 0x4e484c
jmp 0x421e8f
mov eax, 0x4e4850
jmp 0x421e8f
mov eax, 0x4e4854
jmp 0x421e8f
mov eax, 0x4e4858
jmp 0x421e8f
mov eax, 0x4e485c
jmp 0x421e8f
mov eax, 0x4e4860
jmp 0x421e8f
mov eax, 0x4e4864
jmp 0x421e8f
mov eax, 0x4e4848
jmp 0x421e8f
mov ecx, 0xc3504
cmp eax, ecx
jg 0x421dde
je 0x421dd4
mov ecx, 0xaae64
cmp eax, ecx
jg 0x421d6d
je 0x421d63
sub eax, 0x927c5
je 0x421d59
dec eax
je 0x421d4f
dec eax
je 0x421d45
dec eax
je 0x421d3b
sub eax, 0x18699
je 0x421d31
dec eax
je 0x421d27
dec eax
jne case.0x421b1b.100002
mov eax, 0x4e482c
jmp 0x421e8f
mov eax, 0x4e4830
jmp 0x421e8f
mov eax, 0x4e4834
jmp 0x421e8f
mov eax, 0x4e4838
jmp 0x421e8f
mov eax, 0x4e483c
jmp 0x421e8f
mov eax, 0x4e4840
jmp 0x421e8f
mov eax, 0x4e4844
jmp 0x421e8f
mov eax, 0x4e4828
jmp 0x421e8f
sub eax, 0xaae65
je 0x421dca
dec eax
je 0x421dc0
dec eax
je 0x421db6
dec eax
je 0x421dac
sub eax, 0x18699
je 0x421da2
dec eax
je 0x421d98
dec eax
jne case.0x421b1b.100002
mov eax, 0x4e480c
jmp 0x421e8f
mov eax, 0x4e4810
jmp 0x421e8f
mov eax, 0x4e4814
jmp 0x421e8f
mov eax, 0x4e4818
jmp 0x421e8f
mov eax, 0x4e481c
jmp 0x421e8f
mov eax, 0x4e4820
jmp 0x421e8f
mov eax, 0x4e4824
jmp 0x421e8f
mov eax, 0x4e4808
jmp 0x421e8f
mov ecx, 0xdbba7
cmp eax, ecx
jg 0x421e43
je 0x421e3c
sub eax, 0xc3505
je 0x421e35
dec eax
je 0x421e2e
sub eax, 0x1869b
je 0x421e27
dec eax
je 0x421e20
dec eax
je 0x421e19
dec eax
dec eax
je 0x421e12
dec eax
jne case.0x421b1b.100002
mov eax, 0x4e47ec
jmp 0x421e8f
mov eax, 0x4e47f0
jmp 0x421e8f
mov eax, 0x4e47f4
jmp 0x421e8f
mov eax, 0x4e47f8
jmp 0x421e8f
mov eax, 0x4e47fc
jmp 0x421e8f
mov eax, 0x4e4800
jmp 0x421e8f
mov eax, 0x4e4804
jmp 0x421e8f
mov eax, 0x4e47e8
jmp 0x421e8f
sub eax, 0xdbba8
je 0x421e8a
sub eax, 0x15f89
je 0x421e83
dec eax
je 0x421e7c
dec eax
je 0x421e75
dec eax
je 0x421e6e
dec eax
je 0x421e67
dec eax
jne case.0x421b1b.100002
mov eax, 0x4e47d0
jmp 0x421e8f
mov eax, 0x4e47d4
jmp 0x421e8f
mov eax, 0x4e105c
jmp 0x421e8f
mov eax, 0x4e47d8
jmp 0x421e8f
mov eax, 0x4e47dc
jmp 0x421e8f
mov eax, 0x4e47e0
jmp 0x421e8f
mov eax, 0x4e47e4
push eax
push 0x16
pop ecx
lea eax, [esp + 0x1c]
call fcn.00485786
pop ecx
lea edx, [esp + 0x18]
call fcn.00485754
test eax, eax
je 0x421ee7
lea edx, [esp + 0x60]
call fcn.00485754
test eax, eax
jne 0x4219a1
mov al, byte [esp + 0x60]
xor edx, edx
jmp 0x421ed9
cmp edx, 0x15
jae 0x421ee2
mov al, byte [esp + edx + 0x60]
test al, al
je 0x421ee2
mov byte [esp + edx + 0x18], al
mov al, byte [esp + edx + 0x61]
inc edx
call fcn.00486804
test eax, eax
je 0x421ec3
mov byte [esp + edx + 0x18], 0
lea esi, [esp + 0x18]
call fcn.00486200
mov edx, esi
call fcn.00485754
test eax, eax
jne 0x4219a1
lea edx, [esp + 0x60]
call fcn.00485754
test eax, eax
je 0x421f26
mov eax, esi
push eax
push str._s000
lea eax, [esp + 0x68]
push 0x104
push eax
call fcn.00486e10
add esp, 0x10
lea eax, [esp + 0x168]
call fcn.004856d7
lea eax, [esp + 0x60]
push eax
call fcn.004bf880
pop ecx
mov edx, eax
dec edx
push 0
pop edi
js 0x421f5a
mov al, byte [esp + edx + 0x60]
call fcn.00486804
test eax, eax
je 0x421f56
inc edi
dec edx
jns 0x421f45
test edi, edi
jg 0x421f72
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004c03bf
test eax, eax
pop ecx
pop ecx
je 0x421f72
push 3
pop edi
lea eax, [esp + 0x48]
push eax
call fcn.004bf880
cmp edi, eax
pop ecx
jle 0x421f8e
lea eax, [esp + 0x48]
push eax
call fcn.004bf880
pop ecx
mov edi, eax
lea eax, [esp + 0x48]
push eax
call fcn.004bf880
pop ecx
lea ecx, [esp + 0x48]
sub ecx, edi
add eax, ecx
push eax
mov esi, 0x104
mov ecx, esi
lea eax, [esp + 0x16c]
call fcn.00485786
pop ecx
push esi
push 0
push eax
lea ebx, [esp + 0x24]
call fcn.0048655b
add esp, 0xc
lea eax, [esp + 0x168]
push 0x4e04c4
push eax
call fcn.004bf910
lea esi, [esp + 0x170]
call fcn.00486200
mov eax, esi
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.004c03bf
add esp, 0x10
test eax, eax
jne 0x42200d
test edi, edi
jg 0x422001
call fcn.0045fba0
lea eax, [esp + 0x168]
call fcn.004856d7
cmp dword [esp + 0x14], 0
je 0x422024
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x18]
call fcn.004bf9a0
pop ecx
pop ecx
lea eax, [esp + 0x168]
push eax
push 0x609960
call fcn.004bf9a0
xor eax, eax
pop ecx
inc eax
pop ecx
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bfeb5
mov esp, ebp
pop ebp
ret