Function at 0x4231db
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x5065d0]
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]
push 0
push eax
mov ebx, ecx
mov byte [esp + 0x6c], 0
call fcn.004ab5d0
add esp, 0xc
push esi
lea eax, [esp + 0x16d]
push 0
push eax
mov byte [esp + 0x174], 0
call fcn.004ab5d0
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.00416bf0
test eax, eax
je 0x423283
lea eax, [esp + 0x168]
call fcn.00476abd
push 0x104
lea edx, [esp + 0x64]
mov ecx, ebx
call fcn.00440fcf
pop ecx
jmp 0x4238e7
mov edx, ebx
call fcn.00476b3a
test eax, eax
je 0x4232a7
call fcn.0043f3d5
mov ebx, eax
mov edx, ebx
call fcn.00476b3a
test eax, eax
je 0x4232a7
xor eax, eax
jmp 0x423915
push 0x104
lea edx, [esp + 0x64]
mov ecx, ebx
call fcn.00440fcf
test eax, eax
pop ecx
jne 0x4232c5
lea eax, [esp + 0x60]
call fcn.00476abd
lea esi, [esp + 0x60]
call fcn.004775d3
call fcn.0043f2a4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
call fcn.00476abd
cmp dword [esp + 0x14], 0x64
jl 0x4232a0
push dword [esp + 0x14]
lea eax, [esp + 0x4c]
call fcn.0043d7a2
xor eax, eax
mov byte [esp + 0x34], 0
lea edi, [esp + 0x35]
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 + 0x40], 0
lea edi, [esp + 0x41]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
pop ecx
stosb byte es:[edi], al
lea eax, [esp + 0x48]
push eax
push 0xc
pop ecx
lea eax, [esp + 0x34]
call fcn.00476b6c
pop ecx
lea eax, [esp + 0x33]
push eax
push 0xc
pop ecx
lea eax, [esp + 0x40]
call fcn.00476b6c
pop ecx
lea eax, [esp + 0x18]
mov byte [esp + 0x33], 0
mov byte [esp + 0x3f], 0
call fcn.00476abd
push ebx
call fcn.0044f4cd
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.0044e69e
add esp, 0x10
test eax, eax
je 0x423392
push 1
push 0
push 0x15
lea eax, [esp + 0x24]
push eax
push esi
call fcn.0044e789
add esp, 0x14
test eax, eax
jne 0x423392
lea eax, [esp + 0x18]
call fcn.00476abd
push esi
call fcn.0044e459
pop ecx
lea esi, [esp + 0x18]
call fcn.004775d3
mov edx, esi
call fcn.00476b3a
test eax, eax
je case.0x423405.100002
mov eax, dword [esp + 0x14]
mov ecx, 0xf423f
jmp 0x4233c2
push 0xa
cdq
pop esi
idiv esi
cmp eax, ecx
jg 0x4233bc
mov ecx, 0x927c4
cmp eax, ecx
jg 0x4235c8
je 0x4235be
mov ecx, 0x61a82
cmp eax, ecx
jg 0x4234d8
je 0x4234ce
mov ecx, 0x30d41
cmp eax, ecx
jg 0x423466
je 0x42345c
add eax, 0xfffe795f
cmp eax, 8
ja case.0x423405.100002
jmp dword [eax*4 + 0x42392b]
mov eax, 0x4d0260
jmp 0x423779
mov eax, 0x4d0264
jmp 0x423779
mov eax, 0x4d0268
jmp 0x423779
mov eax, 0x4d026c
jmp 0x423779
mov eax, 0x4d0270
jmp 0x423779
mov eax, 0x4d0274
jmp 0x423779
mov eax, 0x4d0278
jmp 0x423779
mov eax, 0x4d027c
jmp 0x423779
mov eax, 0x4d025c
jmp 0x423779
sub eax, 0x30d42
je 0x4234c4
dec eax
je 0x4234ba
dec eax
je 0x4234b0
dec eax
je 0x4234a6
dec eax
dec eax
je 0x42349c
dec eax
je 0x423492
sub eax, 0x30d39
jne case.0x423405.100002
mov eax, 0x4d0240
jmp 0x423779
mov eax, 0x4d0244
jmp 0x423779
mov eax, 0x4d0248
jmp 0x423779
mov eax, 0x4d024c
jmp 0x423779
mov eax, 0x4d0250
jmp 0x423779
mov eax, 0x4d0254
jmp 0x423779
mov eax, 0x4d0258
jmp 0x423779
mov eax, 0x4d023c
jmp 0x423779
mov ecx, 0x7a122
cmp eax, ecx
jg 0x423555
je 0x42354b
sub eax, 0x61a83
je 0x423541
dec eax
dec eax
je 0x423537
dec eax
je 0x42352d
dec eax
je 0x423523
dec eax
je 0x423519
dec eax
je 0x42350f
sub eax, 0x18698
jne case.0x423405.100002
mov eax, 0x4d0220
jmp 0x423779
mov eax, 0x4d0224
jmp 0x423779
mov eax, 0x4d0228
jmp 0x423779
mov eax, 0x4d022c
jmp 0x423779
mov eax, 0x4d0230
jmp 0x423779
mov eax, 0x4d0234
jmp 0x423779
mov eax, 0x4d0238
jmp 0x423779
mov eax, 0x4d021c
jmp 0x423779
sub eax, 0x7a123
je 0x4235b4
dec eax
je 0x4235aa
dec eax
je 0x4235a0
dec eax
dec eax
je 0x423596
dec eax
je 0x42358c
sub eax, 0x18699
je 0x423582
dec eax
dec eax
jne case.0x423405.100002
mov eax, 0x4d0204
jmp 0x423779
mov eax, 0x4d0208
jmp 0x423779
mov eax, 0x4d020c
jmp 0x423779
mov eax, 0x4d0210
jmp 0x423779
mov eax, 0x4ce66c
jmp 0x423779
mov eax, 0x4d0214
jmp 0x423779
mov eax, 0x4d0218
jmp 0x423779
mov eax, 0x4d0200
jmp 0x423779
mov ecx, 0xc3504
cmp eax, ecx
jg 0x4236c8
je 0x4236be
mov ecx, 0xaae64
cmp eax, ecx
jg 0x423657
je 0x42364d
sub eax, 0x927c5
je 0x423643
dec eax
je 0x423639
dec eax
je 0x42362f
dec eax
je 0x423625
sub eax, 0x18699
je 0x42361b
dec eax
je 0x423611
dec eax
jne case.0x423405.100002
mov eax, 0x4d01e4
jmp 0x423779
mov eax, 0x4d01e8
jmp 0x423779
mov eax, 0x4d01ec
jmp 0x423779
mov eax, 0x4d01f0
jmp 0x423779
mov eax, 0x4d01f4
jmp 0x423779
mov eax, 0x4d01f8
jmp 0x423779
mov eax, 0x4d01fc
jmp 0x423779
mov eax, 0x4d01e0
jmp 0x423779
sub eax, 0xaae65
je 0x4236b4
dec eax
je 0x4236aa
dec eax
je 0x4236a0
dec eax
je 0x423696
sub eax, 0x18699
je 0x42368c
dec eax
je 0x423682
dec eax
jne case.0x423405.100002
mov eax, 0x4d01c4
jmp 0x423779
mov eax, 0x4d01c8
jmp 0x423779
mov eax, 0x4d01cc
jmp 0x423779
mov eax, 0x4d01d0
jmp 0x423779
mov eax, 0x4d01d4
jmp 0x423779
mov eax, 0x4d01d8
jmp 0x423779
mov eax, 0x4d01dc
jmp 0x423779
mov eax, 0x4d01c0
jmp 0x423779
mov ecx, 0xdbba7
cmp eax, ecx
jg 0x42372d
je 0x423726
sub eax, 0xc3505
je 0x42371f
dec eax
je 0x423718
sub eax, 0x1869b
je 0x423711
dec eax
je 0x42370a
dec eax
je 0x423703
dec eax
dec eax
je 0x4236fc
dec eax
jne case.0x423405.100002
mov eax, 0x4d01a4
jmp 0x423779
mov eax, 0x4d01a8
jmp 0x423779
mov eax, 0x4d01ac
jmp 0x423779
mov eax, 0x4d01b0
jmp 0x423779
mov eax, 0x4d01b4
jmp 0x423779
mov eax, 0x4d01b8
jmp 0x423779
mov eax, 0x4d01bc
jmp 0x423779
mov eax, 0x4d01a0
jmp 0x423779
sub eax, 0xdbba8
je 0x423774
sub eax, 0x15f89
je 0x42376d
dec eax
je 0x423766
dec eax
je 0x42375f
dec eax
je 0x423758
dec eax
je 0x423751
dec eax
jne case.0x423405.100002
mov eax, 0x4d0188
jmp 0x423779
mov eax, 0x4d018c
jmp 0x423779
mov eax, 0x4cbba4
jmp 0x423779
mov eax, 0x4d0190
jmp 0x423779
mov eax, 0x4d0194
jmp 0x423779
mov eax, 0x4d0198
jmp 0x423779
mov eax, 0x4d019c
push eax
push 0x16
pop ecx
lea eax, [esp + 0x1c]
call fcn.00476b6c
pop ecx
lea edx, [esp + 0x18]
call fcn.00476b3a
test eax, eax
je 0x4237d1
lea edx, [esp + 0x60]
call fcn.00476b3a
test eax, eax
jne 0x4232a0
mov al, byte [esp + 0x60]
xor edx, edx
jmp 0x4237c3
cmp edx, 0x15
jae 0x4237cc
mov al, byte [esp + edx + 0x60]
test al, al
je 0x4237cc
mov byte [esp + edx + 0x18], al
mov al, byte [esp + edx + 0x61]
inc edx
call fcn.00477ba5
test eax, eax
je 0x4237ad
mov byte [esp + edx + 0x18], 0
lea esi, [esp + 0x18]
call fcn.004775d3
mov edx, esi
call fcn.00476b3a
test eax, eax
jne 0x4232a0
lea edx, [esp + 0x60]
call fcn.00476b3a
test eax, eax
mov esi, 0x104
je 0x423813
lea eax, [esp + 0x18]
push eax
push str._s000
lea eax, [esp + 0x68]
push esi
push eax
call fcn.004781b1
add esp, 0x10
lea eax, [esp + 0x168]
call fcn.00476abd
lea eax, [esp + 0x60]
push eax
call fcn.004aa880
pop ecx
mov edx, eax
dec edx
push 0
pop edi
js 0x423847
mov al, byte [esp + edx + 0x60]
call fcn.00477ba5
test eax, eax
je 0x423843
inc edi
dec edx
jns 0x423832
test edi, edi
jg 0x42385f
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004ab3bf
test eax, eax
pop ecx
pop ecx
je 0x42385f
push 3
pop edi
lea eax, [esp + 0x48]
push eax
call fcn.004aa880
cmp edi, eax
pop ecx
jle 0x42387b
lea eax, [esp + 0x48]
push eax
call fcn.004aa880
pop ecx
mov edi, eax
lea eax, [esp + 0x48]
push eax
call fcn.004aa880
pop ecx
lea ecx, [esp + 0x48]
sub ecx, edi
add eax, ecx
push eax
mov ecx, esi
lea eax, [esp + 0x16c]
call fcn.00476b6c
pop ecx
push esi
push 0
push eax
lea ebx, [esp + 0x24]
call fcn.004778fc
add esp, 0xc
lea eax, [esp + 0x168]
push 0x4cb21c
push eax
call fcn.004aa910
lea esi, [esp + 0x170]
call fcn.004775d3
mov eax, esi
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.004ab3bf
add esp, 0x10
test eax, eax
jne 0x4238e7
mov eax, esi
call fcn.00476abd
cmp dword [esp + 0x10], 0
je 0x4238fe
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x14]
call fcn.004aa9a0
pop ecx
pop ecx
lea eax, [esp + 0x168]
push eax
push 0x5fdfe8
call fcn.004aa9a0
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.004aaeb5
mov esp, ebp
pop ebp
ret