Function at 0x41faab
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x5005d0]
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.004a7110
add esp, 0xc
push esi
lea eax, [esp + 0x16d]
push 0
push eax
mov byte [esp + 0x174], 0
call fcn.004a7110
xor eax, eax
mov byte [esp + 0x24], 0
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.0046c54c
test eax, eax
je 0x41fb67
lea eax, [esp + 0x168]
call fcn.004757d4
mov ecx, dword [esp + 0x10]
push 0x104
lea edx, [esp + 0x64]
call fcn.00440fb4
test ebx, ebx
pop ecx
je 0x4201f0
lea eax, [esp + 0x60]
push eax
push ebx
jmp 0x4201e9
mov edx, dword [esp + 0x10]
call fcn.00475851
test eax, eax
je 0x41fb8f
call fcn.0043c6ae
mov edx, eax
mov dword [esp + 0x10], edx
call fcn.00475851
test eax, eax
je 0x41fb8f
xor eax, eax
jmp 0x420207
mov ecx, dword [esp + 0x10]
mov edi, 0x104
push edi
lea edx, [esp + 0x64]
call fcn.00440fb4
test eax, eax
pop ecx
jne 0x41fbb0
lea eax, [esp + 0x60]
call fcn.004757d4
lea esi, [esp + 0x60]
call fcn.0047622c
call fcn.0043c57d
mov ebx, eax
lea eax, [esp + 0x18]
call fcn.004757d4
cmp ebx, 0x64
jl 0x41fb88
push ebx
lea eax, [esp + 0x4c]
call fcn.0043a5cc
pop ecx
call fcn.0040ee7c
test eax, eax
je 0x41fc92
xor eax, eax
mov byte [esp + 0x30], 0
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.00475883
pop ecx
lea eax, [esp + 0x33]
push eax
push 0xc
pop ecx
lea eax, [esp + 0x40]
call fcn.00475883
pop ecx
lea eax, [esp + 0x18]
mov byte [esp + 0x33], 0
mov byte [esp + 0x3f], 0
call fcn.004757d4
push dword [esp + 0x10]
call fcn.0044eba5
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.0044dda3
add esp, 0x10
test eax, eax
je 0x41fc86
push 1
push 0
push 0x15
lea eax, [esp + 0x24]
push eax
push esi
call fcn.0044de8e
add esp, 0x14
test eax, eax
jne 0x41fc86
lea eax, [esp + 0x18]
call fcn.004757d4
push esi
call fcn.0044db5e
pop ecx
mov edi, 0x104
lea esi, [esp + 0x18]
call fcn.0047622c
mov edx, esi
call fcn.00475851
test eax, eax
je case.0x41fcfe.100002
mov ecx, 0xf423f
cmp ebx, ecx
mov eax, ebx
jle 0x41fcbf
push 0xa
cdq
pop esi
idiv esi
cmp eax, ecx
jg 0x41fcb5
mov ecx, 0x927c4
cmp eax, ecx
jg 0x41fec1
je 0x41feb7
mov ecx, 0x61a82
cmp eax, ecx
jg 0x41fdd1
je 0x41fdc7
mov ecx, 0x30d41
cmp eax, ecx
jg 0x41fd5f
je 0x41fd55
add eax, 0xfffe795f
cmp eax, 8
ja case.0x41fcfe.100002
jmp dword [eax*4 + 0x42021f]
mov eax, 0x4cb26c
jmp 0x420072
mov eax, 0x4cb270
jmp 0x420072
mov eax, 0x4cb274
jmp 0x420072
mov eax, 0x4cb278
jmp 0x420072
mov eax, 0x4cb27c
jmp 0x420072
mov eax, 0x4cb280
jmp 0x420072
mov eax, 0x4cb284
jmp 0x420072
mov eax, 0x4cb288
jmp 0x420072
mov eax, 0x4cb268
jmp 0x420072
sub eax, 0x30d42
je 0x41fdbd
dec eax
je 0x41fdb3
dec eax
je 0x41fda9
dec eax
je 0x41fd9f
dec eax
dec eax
je 0x41fd95
dec eax
je 0x41fd8b
sub eax, 0x30d39
jne case.0x41fcfe.100002
mov eax, 0x4cb24c
jmp 0x420072
mov eax, 0x4cb250
jmp 0x420072
mov eax, 0x4cb254
jmp 0x420072
mov eax, 0x4cb258
jmp 0x420072
mov eax, 0x4cb25c
jmp 0x420072
mov eax, 0x4cb260
jmp 0x420072
mov eax, 0x4cb264
jmp 0x420072
mov eax, 0x4cb248
jmp 0x420072
mov ecx, 0x7a122
cmp eax, ecx
jg 0x41fe4e
je 0x41fe44
sub eax, 0x61a83
je 0x41fe3a
dec eax
dec eax
je 0x41fe30
dec eax
je 0x41fe26
dec eax
je 0x41fe1c
dec eax
je 0x41fe12
dec eax
je 0x41fe08
sub eax, 0x18698
jne case.0x41fcfe.100002
mov eax, 0x4cb22c
jmp 0x420072
mov eax, 0x4cb230
jmp 0x420072
mov eax, 0x4cb234
jmp 0x420072
mov eax, 0x4cb238
jmp 0x420072
mov eax, 0x4cb23c
jmp 0x420072
mov eax, 0x4cb240
jmp 0x420072
mov eax, 0x4cb244
jmp 0x420072
mov eax, 0x4cb228
jmp 0x420072
sub eax, 0x7a123
je 0x41fead
dec eax
je 0x41fea3
dec eax
je 0x41fe99
dec eax
dec eax
je 0x41fe8f
dec eax
je 0x41fe85
sub eax, 0x18699
je 0x41fe7b
dec eax
dec eax
jne case.0x41fcfe.100002
mov eax, 0x4cb20c
jmp 0x420072
mov eax, 0x4cb210
jmp 0x420072
mov eax, 0x4cb214
jmp 0x420072
mov eax, 0x4cb218
jmp 0x420072
mov eax, 0x4cb21c
jmp 0x420072
mov eax, 0x4cb220
jmp 0x420072
mov eax, 0x4cb224
jmp 0x420072
mov eax, 0x4cb208
jmp 0x420072
mov ecx, 0xc3504
cmp eax, ecx
jg 0x41ffc1
je 0x41ffb7
mov ecx, 0xaae64
cmp eax, ecx
jg 0x41ff50
je 0x41ff46
sub eax, 0x927c5
je 0x41ff3c
dec eax
je 0x41ff32
dec eax
je 0x41ff28
dec eax
je 0x41ff1e
sub eax, 0x18699
je 0x41ff14
dec eax
je 0x41ff0a
dec eax
jne case.0x41fcfe.100002
mov eax, 0x4cb1ec
jmp 0x420072
mov eax, 0x4cb1f0
jmp 0x420072
mov eax, 0x4cb1f4
jmp 0x420072
mov eax, 0x4cb1f8
jmp 0x420072
mov eax, 0x4cb1fc
jmp 0x420072
mov eax, 0x4cb200
jmp 0x420072
mov eax, 0x4cb204
jmp 0x420072
mov eax, 0x4cb1e8
jmp 0x420072
sub eax, 0xaae65
je 0x41ffad
dec eax
je 0x41ffa3
dec eax
je 0x41ff99
dec eax
je 0x41ff8f
sub eax, 0x18699
je 0x41ff85
dec eax
je 0x41ff7b
dec eax
jne case.0x41fcfe.100002
mov eax, 0x4cb1cc
jmp 0x420072
mov eax, 0x4cb1d0
jmp 0x420072
mov eax, 0x4cb1d4
jmp 0x420072
mov eax, 0x4cb1d8
jmp 0x420072
mov eax, 0x4cb1dc
jmp 0x420072
mov eax, 0x4cb1e0
jmp 0x420072
mov eax, 0x4cb1e4
jmp 0x420072
mov eax, 0x4cb1c8
jmp 0x420072
mov ecx, 0xdbba7
cmp eax, ecx
jg 0x420026
je 0x42001f
sub eax, 0xc3505
je 0x420018
dec eax
je 0x420011
sub eax, 0x1869b
je 0x42000a
dec eax
je 0x420003
dec eax
je 0x41fffc
dec eax
dec eax
je 0x41fff5
dec eax
jne case.0x41fcfe.100002
mov eax, 0x4cb1ac
jmp 0x420072
mov eax, 0x4cb1b0
jmp 0x420072
mov eax, 0x4cb1b4
jmp 0x420072
mov eax, 0x4cb1b8
jmp 0x420072
mov eax, 0x4cb1bc
jmp 0x420072
mov eax, 0x4cb1c0
jmp 0x420072
mov eax, 0x4cb1c4
jmp 0x420072
mov eax, 0x4cb1a8
jmp 0x420072
sub eax, 0xdbba8
je 0x42006d
sub eax, 0x15f89
je 0x420066
dec eax
je 0x42005f
dec eax
je 0x420058
dec eax
je 0x420051
dec eax
je 0x42004a
dec eax
jne case.0x41fcfe.100002
mov eax, 0x4cb190
jmp 0x420072
mov eax, 0x4cb194
jmp 0x420072
mov eax, 0x4c7c94
jmp 0x420072
mov eax, 0x4cb198
jmp 0x420072
mov eax, 0x4cb19c
jmp 0x420072
mov eax, 0x4cb1a0
jmp 0x420072
mov eax, 0x4cb1a4
push eax
push 0x16
pop ecx
lea eax, [esp + 0x1c]
call fcn.00475883
pop ecx
lea edx, [esp + 0x18]
call fcn.00475851
test eax, eax
je 0x4200ca
lea edx, [esp + 0x60]
call fcn.00475851
test eax, eax
jne 0x41fb88
mov al, byte [esp + 0x60]
xor edx, edx
jmp 0x4200bc
cmp edx, 0x15
jae 0x4200c5
mov al, byte [esp + edx + 0x60]
test al, al
je 0x4200c5
mov byte [esp + edx + 0x18], al
mov al, byte [esp + edx + 0x61]
inc edx
call fcn.004767fe
test eax, eax
je 0x4200a6
mov byte [esp + edx + 0x18], 0
lea esi, [esp + 0x18]
call fcn.0047622c
mov edx, esi
call fcn.00475851
test eax, eax
jne 0x41fb88
lea edx, [esp + 0x60]
call fcn.00475851
test eax, eax
je 0x420105
mov eax, esi
push eax
push str._s000
lea eax, [esp + 0x68]
push edi
push eax
call fcn.00476e0a
add esp, 0x10
lea eax, [esp + 0x168]
call fcn.004757d4
lea eax, [esp + 0x60]
push eax
call fcn.004a63c0
pop ecx
mov edx, eax
dec edx
push 0
pop esi
js 0x420139
mov al, byte [esp + edx + 0x60]
call fcn.004767fe
test eax, eax
je 0x420135
inc esi
dec edx
jns 0x420124
test esi, esi
jg 0x420151
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004a6eff
test eax, eax
pop ecx
pop ecx
je 0x420151
push 3
pop esi
lea eax, [esp + 0x48]
push eax
call fcn.004a63c0
cmp esi, eax
pop ecx
jle 0x42016d
lea eax, [esp + 0x48]
push eax
call fcn.004a63c0
pop ecx
mov esi, eax
lea eax, [esp + 0x48]
push eax
call fcn.004a63c0
pop ecx
lea ecx, [esp + 0x48]
sub ecx, esi
add eax, ecx
push eax
mov ecx, edi
lea eax, [esp + 0x16c]
call fcn.00475883
pop ecx
push edi
push 0
push eax
lea ebx, [esp + 0x24]
call fcn.00476555
add esp, 0xc
lea eax, [esp + 0x168]
push 0x4c724c
push eax
call fcn.004a6450
lea esi, [esp + 0x170]
call fcn.0047622c
mov eax, esi
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.004a6eff
add esp, 0x10
test eax, eax
jne 0x4201d9
mov eax, esi
call fcn.004757d4
cmp dword [esp + 0x14], 0
je 0x4201f0
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x18]
call fcn.004a64e0
pop ecx
pop ecx
lea eax, [esp + 0x168]
push eax
push 0x5f6ea8
call fcn.004a64e0
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.004a69f5
mov esp, ebp
pop ebp
ret