Function at 0x46eeb1
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x4b22d4]
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.0044bacf
test eax, eax
jne 0x46f56f
mov edx, ebx
call fcn.00436c5d
test eax, eax
je 0x46ef55
call fcn.0045bba0
mov ebx, eax
mov edx, ebx
call fcn.00436c5d
test eax, eax
je 0x46ef55
xor eax, eax
jmp 0x46f5ad
lea eax, [ebp - 0x158]
call fcn.00435ba1
mov esi, eax
call fcn.00436855
call fcn.0045a889
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x1c]
call fcn.00435ba1
cmp dword [ebp - 0x268], 0x64
jl 0x46ef4e
push dword [ebp - 0x268]
lea eax, [ebp - 0x4c]
call fcn.004634ae
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.00435b27
lea eax, [ebp - 0x25]
push eax
push 0xc
pop ecx
lea eax, [ebp - 0x34]
call fcn.00435b27
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x31], 0
call fcn.00435ba1
push ebx
call fcn.00456865
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.00455ad8
add esp, 0x20
test eax, eax
je 0x46f01c
push 1
push 0
push 0x15
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.004556d7
add esp, 0x14
test eax, eax
jne 0x46f01c
lea eax, [ebp - 0x1c]
call fcn.00435ba1
push esi
call fcn.004559c3
pop ecx
lea esi, [ebp - 0x1c]
call fcn.00436855
mov edx, esi
call fcn.00436c5d
test eax, eax
je case.0x46f090.100002
mov eax, dword [ebp - 0x268]
mov ecx, 0xf423f
jmp 0x46f04d
push 0xa
cdq
pop esi
idiv esi
cmp eax, ecx
jg 0x46f047
mov ecx, 0x927c4
cmp eax, ecx
jg 0x46f253
je 0x46f249
mov ecx, 0x61a82
cmp eax, ecx
jg 0x46f163
je 0x46f159
mov ecx, 0x30d41
cmp eax, ecx
jg 0x46f0f1
je 0x46f0e7
add eax, 0xfffe795f
cmp eax, 8
ja case.0x46f090.100002
jmp dword [eax*4 + 0x46f5bf]
mov eax, 0x49167c
jmp 0x46f404
mov eax, 0x491680
jmp 0x46f404
mov eax, 0x491684
jmp 0x46f404
mov eax, 0x491688
jmp 0x46f404
mov eax, 0x49168c
jmp 0x46f404
mov eax, 0x491690
jmp 0x46f404
mov eax, 0x491694
jmp 0x46f404
mov eax, 0x491698
jmp 0x46f404
mov eax, 0x491678
jmp 0x46f404
sub eax, 0x30d42
je 0x46f14f
dec eax
je 0x46f145
dec eax
je 0x46f13b
dec eax
je 0x46f131
dec eax
dec eax
je 0x46f127
dec eax
je 0x46f11d
sub eax, 0x30d39
jne case.0x46f090.100002
mov eax, 0x49165c
jmp 0x46f404
mov eax, 0x491660
jmp 0x46f404
mov eax, 0x491664
jmp 0x46f404
mov eax, 0x491668
jmp 0x46f404
mov eax, 0x49166c
jmp 0x46f404
mov eax, 0x491670
jmp 0x46f404
mov eax, 0x491674
jmp 0x46f404
mov eax, 0x491658
jmp 0x46f404
mov ecx, 0x7a122
cmp eax, ecx
jg 0x46f1e0
je 0x46f1d6
sub eax, 0x61a83
je 0x46f1cc
dec eax
dec eax
je 0x46f1c2
dec eax
je 0x46f1b8
dec eax
je 0x46f1ae
dec eax
je 0x46f1a4
dec eax
je 0x46f19a
sub eax, 0x18698
jne case.0x46f090.100002
mov eax, 0x49163c
jmp 0x46f404
mov eax, 0x491640
jmp 0x46f404
mov eax, 0x491644
jmp 0x46f404
mov eax, 0x491648
jmp 0x46f404
mov eax, 0x49164c
jmp 0x46f404
mov eax, 0x491650
jmp 0x46f404
mov eax, 0x491654
jmp 0x46f404
mov eax, 0x491638
jmp 0x46f404
sub eax, 0x7a123
je 0x46f23f
dec eax
je 0x46f235
dec eax
je 0x46f22b
dec eax
dec eax
je 0x46f221
dec eax
je 0x46f217
sub eax, 0x18699
je 0x46f20d
dec eax
dec eax
jne case.0x46f090.100002
mov eax, 0x491620
jmp 0x46f404
mov eax, 0x491624
jmp 0x46f404
mov eax, 0x491628
jmp 0x46f404
mov eax, 0x49162c
jmp 0x46f404
mov eax, 0x49016c
jmp 0x46f404
mov eax, 0x491630
jmp 0x46f404
mov eax, 0x491634
jmp 0x46f404
mov eax, 0x49161c
jmp 0x46f404
mov ecx, 0xc3504
cmp eax, ecx
jg 0x46f353
je 0x46f349
mov ecx, 0xaae64
cmp eax, ecx
jg 0x46f2e2
je 0x46f2d8
sub eax, 0x927c5
je 0x46f2ce
dec eax
je 0x46f2c4
dec eax
je 0x46f2ba
dec eax
je 0x46f2b0
sub eax, 0x18699
je 0x46f2a6
dec eax
je 0x46f29c
dec eax
jne case.0x46f090.100002
mov eax, 0x491600
jmp 0x46f404
mov eax, 0x491604
jmp 0x46f404
mov eax, 0x491608
jmp 0x46f404
mov eax, 0x49160c
jmp 0x46f404
mov eax, 0x491610
jmp 0x46f404
mov eax, 0x491614
jmp 0x46f404
mov eax, 0x491618
jmp 0x46f404
mov eax, 0x4915fc
jmp 0x46f404
sub eax, 0xaae65
je 0x46f33f
dec eax
je 0x46f335
dec eax
je 0x46f32b
dec eax
je 0x46f321
sub eax, 0x18699
je 0x46f317
dec eax
je 0x46f30d
dec eax
jne case.0x46f090.100002
mov eax, 0x4915e0
jmp 0x46f404
mov eax, 0x4915e4
jmp 0x46f404
mov eax, 0x4915e8
jmp 0x46f404
mov eax, 0x4915ec
jmp 0x46f404
mov eax, 0x4915f0
jmp 0x46f404
mov eax, 0x4915f4
jmp 0x46f404
mov eax, 0x4915f8
jmp 0x46f404
mov eax, 0x4915dc
jmp 0x46f404
mov ecx, 0xdbba7
cmp eax, ecx
jg 0x46f3b8
je 0x46f3b1
sub eax, 0xc3505
je 0x46f3aa
dec eax
je 0x46f3a3
sub eax, 0x1869b
je 0x46f39c
dec eax
je 0x46f395
dec eax
je 0x46f38e
dec eax
dec eax
je 0x46f387
dec eax
jne case.0x46f090.100002
mov eax, 0x4915c0
jmp 0x46f404
mov eax, 0x4915c4
jmp 0x46f404
mov eax, 0x4915c8
jmp 0x46f404
mov eax, 0x4915cc
jmp 0x46f404
mov eax, 0x4915d0
jmp 0x46f404
mov eax, 0x4915d4
jmp 0x46f404
mov eax, 0x4915d8
jmp 0x46f404
mov eax, 0x4915bc
jmp 0x46f404
sub eax, 0xdbba8
je 0x46f3ff
sub eax, 0x15f89
je 0x46f3f8
dec eax
je 0x46f3f1
dec eax
je 0x46f3ea
dec eax
je 0x46f3e3
dec eax
je 0x46f3dc
dec eax
jne case.0x46f090.100002
mov eax, 0x4915a0
jmp 0x46f404
mov eax, 0x4915a4
jmp 0x46f404
mov eax, 0x4915a8
jmp 0x46f404
mov eax, 0x4915ac
jmp 0x46f404
mov eax, 0x4915b0
jmp 0x46f404
mov eax, 0x4915b4
jmp 0x46f404
mov eax, 0x4915b8
push eax
push 0x16
pop ecx
lea eax, [ebp - 0x1c]
call fcn.00435b27
pop ecx
lea edx, [ebp - 0x1c]
call fcn.00436c5d
test eax, eax
je 0x46f464
lea edx, [ebp - 0x158]
call fcn.00436c5d
test eax, eax
jne 0x46ef4e
mov al, byte [ebp - 0x158]
xor edx, edx
jmp 0x46f456
cmp edx, 0x15
jae 0x46f45f
mov al, byte [ebp + edx - 0x158]
test al, al
je 0x46f45f
mov byte [ebp + edx - 0x1c], al
mov al, byte [ebp + edx - 0x157]
inc edx
call fcn.004356c1
test eax, eax
je 0x46f43a
mov byte [ebp + edx - 0x1c], 0
lea esi, [ebp - 0x1c]
call fcn.00436855
mov edx, esi
call fcn.00436c5d
test eax, eax
jne 0x46ef4e
lea edx, [ebp - 0x158]
call fcn.00436c5d
mov esi, 0x104
test eax, eax
je 0x46f4a8
lea eax, [ebp - 0x1c]
push eax
push str._s000
lea eax, [ebp - 0x158]
push esi
push eax
call fcn.004362e2
add esp, 0x10
lea eax, [ebp - 0x260]
call fcn.00435ba1
lea eax, [ebp - 0x158]
push eax
call fcn.00401a80
pop ecx
mov edx, eax
dec edx
push 0
pop edi
js 0x46f4e0
mov al, byte [ebp + edx - 0x158]
call fcn.004356c1
test eax, eax
je 0x46f4dc
inc edi
dec edx
jns 0x46f4c8
test edi, edi
jg 0x46f4f9
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00401811
pop ecx
pop ecx
test eax, eax
je 0x46f4f9
push 3
pop edi
lea eax, [ebp - 0x4c]
push eax
call fcn.00401a80
pop ecx
cmp edi, eax
jle 0x46f513
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.00435b27
push esi
push 0
push eax
lea ebx, [ebp - 0x1c]
call fcn.00435806
lea eax, [ebp - 0x260]
push 0x48e860
push eax
call fcn.00401b10
lea esi, [ebp - 0x260]
call fcn.00436855
mov eax, esi
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00401811
add esp, 0x24
test eax, eax
jne 0x46f57a
lea eax, [ebp - 0x260]
call fcn.00435ba1
cmp dword [ebp - 0x264], 0
je 0x46f597
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0x264]
call fcn.00401ba0
pop ecx
pop ecx
lea eax, [ebp - 0x260]
push eax
push 0x5a59f0
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