Function at 0x497cb2
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x5092e4]
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.00461deb
test eax, eax
jne 0x498370
mov edx, ebx
call fcn.00445b2f
test eax, eax
je 0x497d56
call fcn.004757fe
mov ebx, eax
mov edx, ebx
call fcn.00445b2f
test eax, eax
je 0x497d56
xor eax, eax
jmp 0x4983ae
lea eax, [ebp - 0x158]
call fcn.004449db
mov esi, eax
call fcn.00445727
call fcn.00474472
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x1c]
call fcn.004449db
cmp dword [ebp - 0x268], 0x64
jl 0x497d4f
push dword [ebp - 0x268]
lea eax, [ebp - 0x4c]
call fcn.0047e915
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.00444961
lea eax, [ebp - 0x25]
push eax
push 0xc
pop ecx
lea eax, [ebp - 0x34]
call fcn.00444961
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x31], 0
call fcn.004449db
push ebx
call fcn.0046ecd5
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.0046dc9c
add esp, 0x20
test eax, eax
je 0x497e1d
push 1
push 0
push 0x15
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0046d89b
add esp, 0x14
test eax, eax
jne 0x497e1d
lea eax, [ebp - 0x1c]
call fcn.004449db
push esi
call fcn.0046db87
pop ecx
lea esi, [ebp - 0x1c]
call fcn.00445727
mov edx, esi
call fcn.00445b2f
test eax, eax
je case.0x497e91.100002
mov eax, dword [ebp - 0x268]
mov ecx, 0xf423f
jmp 0x497e4e
push 0xa
cdq
pop esi
idiv esi
cmp eax, ecx
jg 0x497e48
mov ecx, 0x927c4
cmp eax, ecx
jg 0x498054
je 0x49804a
mov ecx, 0x61a82
cmp eax, ecx
jg 0x497f64
je 0x497f5a
mov ecx, 0x30d41
cmp eax, ecx
jg 0x497ef2
je 0x497ee8
add eax, 0xfffe795f
cmp eax, 8
ja case.0x497e91.100002
jmp dword [eax*4 + 0x4983c0]
mov eax, 0x4d33c0
jmp 0x498205
mov eax, 0x4d33c4
jmp 0x498205
mov eax, 0x4d33c8
jmp 0x498205
mov eax, 0x4d33cc
jmp 0x498205
mov eax, 0x4d33d0
jmp 0x498205
mov eax, 0x4d33d4
jmp 0x498205
mov eax, 0x4d33d8
jmp 0x498205
mov eax, 0x4d33dc
jmp 0x498205
mov eax, 0x4d33bc
jmp 0x498205
sub eax, 0x30d42
je 0x497f50
dec eax
je 0x497f46
dec eax
je 0x497f3c
dec eax
je 0x497f32
dec eax
dec eax
je 0x497f28
dec eax
je 0x497f1e
sub eax, 0x30d39
jne case.0x497e91.100002
mov eax, 0x4d33a0
jmp 0x498205
mov eax, 0x4d33a4
jmp 0x498205
mov eax, 0x4d33a8
jmp 0x498205
mov eax, 0x4d33ac
jmp 0x498205
mov eax, 0x4d33b0
jmp 0x498205
mov eax, 0x4d33b4
jmp 0x498205
mov eax, 0x4d33b8
jmp 0x498205
mov eax, 0x4d339c
jmp 0x498205
mov ecx, 0x7a122
cmp eax, ecx
jg 0x497fe1
je 0x497fd7
sub eax, 0x61a83
je 0x497fcd
dec eax
dec eax
je 0x497fc3
dec eax
je 0x497fb9
dec eax
je 0x497faf
dec eax
je 0x497fa5
dec eax
je 0x497f9b
sub eax, 0x18698
jne case.0x497e91.100002
mov eax, 0x4d3380
jmp 0x498205
mov eax, 0x4d3384
jmp 0x498205
mov eax, 0x4d3388
jmp 0x498205
mov eax, 0x4d338c
jmp 0x498205
mov eax, 0x4d3390
jmp 0x498205
mov eax, 0x4d3394
jmp 0x498205
mov eax, 0x4d3398
jmp 0x498205
mov eax, 0x4d337c
jmp 0x498205
sub eax, 0x7a123
je 0x498040
dec eax
je 0x498036
dec eax
je 0x49802c
dec eax
dec eax
je 0x498022
dec eax
je 0x498018
sub eax, 0x18699
je 0x49800e
dec eax
dec eax
jne case.0x497e91.100002
mov eax, 0x4d3364
jmp 0x498205
mov eax, 0x4d3368
jmp 0x498205
mov eax, 0x4d336c
jmp 0x498205
mov eax, 0x4d3370
jmp 0x498205
mov eax, 0x4d16e4
jmp 0x498205
mov eax, 0x4d3374
jmp 0x498205
mov eax, 0x4d3378
jmp 0x498205
mov eax, 0x4d3360
jmp 0x498205
mov ecx, 0xc3504
cmp eax, ecx
jg 0x498154
je 0x49814a
mov ecx, 0xaae64
cmp eax, ecx
jg 0x4980e3
je 0x4980d9
sub eax, 0x927c5
je 0x4980cf
dec eax
je 0x4980c5
dec eax
je 0x4980bb
dec eax
je 0x4980b1
sub eax, 0x18699
je 0x4980a7
dec eax
je 0x49809d
dec eax
jne case.0x497e91.100002
mov eax, 0x4d3344
jmp 0x498205
mov eax, 0x4d3348
jmp 0x498205
mov eax, 0x4d334c
jmp 0x498205
mov eax, 0x4d3350
jmp 0x498205
mov eax, 0x4d3354
jmp 0x498205
mov eax, 0x4d3358
jmp 0x498205
mov eax, 0x4d335c
jmp 0x498205
mov eax, 0x4d3340
jmp 0x498205
sub eax, 0xaae65
je 0x498140
dec eax
je 0x498136
dec eax
je 0x49812c
dec eax
je 0x498122
sub eax, 0x18699
je 0x498118
dec eax
je 0x49810e
dec eax
jne case.0x497e91.100002
mov eax, 0x4d3324
jmp 0x498205
mov eax, 0x4d3328
jmp 0x498205
mov eax, 0x4d332c
jmp 0x498205
mov eax, 0x4d3330
jmp 0x498205
mov eax, 0x4d3334
jmp 0x498205
mov eax, 0x4d3338
jmp 0x498205
mov eax, 0x4d333c
jmp 0x498205
mov eax, 0x4d3320
jmp 0x498205
mov ecx, 0xdbba7
cmp eax, ecx
jg 0x4981b9
je 0x4981b2
sub eax, 0xc3505
je 0x4981ab
dec eax
je 0x4981a4
sub eax, 0x1869b
je 0x49819d
dec eax
je 0x498196
dec eax
je 0x49818f
dec eax
dec eax
je 0x498188
dec eax
jne case.0x497e91.100002
mov eax, 0x4d3304
jmp 0x498205
mov eax, 0x4d3308
jmp 0x498205
mov eax, 0x4d330c
jmp 0x498205
mov eax, 0x4d3310
jmp 0x498205
mov eax, 0x4d3314
jmp 0x498205
mov eax, 0x4d3318
jmp 0x498205
mov eax, 0x4d331c
jmp 0x498205
mov eax, 0x4d3300
jmp 0x498205
sub eax, 0xdbba8
je 0x498200
sub eax, 0x15f89
je 0x4981f9
dec eax
je 0x4981f2
dec eax
je 0x4981eb
dec eax
je 0x4981e4
dec eax
je 0x4981dd
dec eax
jne case.0x497e91.100002
mov eax, 0x4d32e8
jmp 0x498205
mov eax, 0x4d32ec
jmp 0x498205
mov eax, 0x4cf124
jmp 0x498205
mov eax, 0x4d32f0
jmp 0x498205
mov eax, 0x4d32f4
jmp 0x498205
mov eax, 0x4d32f8
jmp 0x498205
mov eax, 0x4d32fc
push eax
push 0x16
pop ecx
lea eax, [ebp - 0x1c]
call fcn.00444961
pop ecx
lea edx, [ebp - 0x1c]
call fcn.00445b2f
test eax, eax
je 0x498265
lea edx, [ebp - 0x158]
call fcn.00445b2f
test eax, eax
jne 0x497d4f
mov al, byte [ebp - 0x158]
xor edx, edx
jmp 0x498257
cmp edx, 0x15
jae 0x498260
mov al, byte [ebp + edx - 0x158]
test al, al
je 0x498260
mov byte [ebp + edx - 0x1c], al
mov al, byte [ebp + edx - 0x157]
inc edx
call fcn.00444468
test eax, eax
je 0x49823b
mov byte [ebp + edx - 0x1c], 0
lea esi, [ebp - 0x1c]
call fcn.00445727
mov edx, esi
call fcn.00445b2f
test eax, eax
jne 0x497d4f
lea edx, [ebp - 0x158]
call fcn.00445b2f
mov esi, 0x104
test eax, eax
je 0x4982a9
lea eax, [ebp - 0x1c]
push eax
push str._s000
lea eax, [ebp - 0x158]
push esi
push eax
call fcn.004451a8
add esp, 0x10
lea eax, [ebp - 0x260]
call fcn.004449db
lea eax, [ebp - 0x158]
push eax
call fcn.00401a80
pop ecx
mov edx, eax
dec edx
push 0
pop edi
js 0x4982e1
mov al, byte [ebp + edx - 0x158]
call fcn.00444468
test eax, eax
je 0x4982dd
inc edi
dec edx
jns 0x4982c9
test edi, edi
jg 0x4982fa
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00401811
pop ecx
pop ecx
test eax, eax
je 0x4982fa
push 3
pop edi
lea eax, [ebp - 0x4c]
push eax
call fcn.00401a80
pop ecx
cmp edi, eax
jle 0x498314
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.00444961
push esi
push 0
push eax
lea ebx, [ebp - 0x1c]
call fcn.004445b3
lea eax, [ebp - 0x260]
push 0x4ce79c
push eax
call fcn.00401b10
lea esi, [ebp - 0x260]
call fcn.00445727
mov eax, esi
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00401811
add esp, 0x24
test eax, eax
jne 0x49837b
lea eax, [ebp - 0x260]
call fcn.004449db
cmp dword [ebp - 0x264], 0
je 0x498398
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0x264]
call fcn.00401ba0
pop ecx
pop ecx
lea eax, [ebp - 0x260]
push eax
push 0x600b10
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