Function at 0x404df0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x4012c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x401268
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xb0], ebx
push 1
call dword [fcn.00401064]
mov ax, word [0x406030]
cmp ax, bx
jle 0x405270
mov word [ebp - 0xc0], ax
mov eax, 1
mov dword [ebp - 0x20], eax
mov esi, dword [0x401144]
mov edi, dword [0x401034]
cmp ax, word [ebp - 0xc0]
jg 0x405270
movsx ebx, ax
cmp ebx, 5
jb 0x404ec5
call dword [0x401088]
mov eax, dword [0x406024]
mov edx, dword [eax + ebx*4]
lea ecx, [ebp - 0x24]
call dword [fcn.004010fc]
lea ecx, [ebp - 0x7c]
push ecx
call dword [fcn.0040111c]
mov dword [ebp - 0xa4], 0x4023f8
mov dword [ebp - 0xac], 8
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x8c]
call dword [fcn.00401120]
push 1
push 1
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call dword [fcn.00401038]
lea edx, [ebp - 0x9c]
push edx
call dword [fcn.00401014]
mov edx, eax
lea ecx, [ebp - 0x40]
call esi
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x7c]
push edx
push 3
call dword [0x401020]
add esp, 0x10
mov edx, 0x4024c4
lea ecx, [ebp - 0x30]
call dword [fcn.004010fc]
lea eax, [ebp - 0x7c]
push eax
call dword [fcn.0040111c]
mov dword [ebp - 0xa4], 0x401fc4
mov dword [ebp - 0xac], 8
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x8c]
call dword [fcn.00401120]
push 1
push 1
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x9c]
push eax
call dword [fcn.00401038]
lea ecx, [ebp - 0x9c]
push ecx
call dword [fcn.00401014]
mov edx, eax
lea ecx, [ebp - 0x3c]
call esi
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x7c]
push ecx
push 3
call dword [0x401020]
add esp, 0x10
mov edx, 0x4024cc
lea ecx, [ebp - 0x38]
call dword [fcn.004010fc]
cmp ebx, 5
jb 0x404ff7
call dword [0x401088]
push 0x4024e0
mov edx, dword [0x406024]
mov eax, dword [edx + ebx*4]
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x44]
call esi
push eax
push 0x402064
call edi
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
lea ecx, [ebp - 0x44]
call dword [fcn.00401168]
mov eax, dword [0x406010]
test eax, eax
jne 0x405040
push 0x406010
push 0x401f24
call dword [fcn.004010ec]
mov ebx, dword [0x406010]
mov dword [ebp - 0x74], 0x80020004
mov dword [ebp - 0x7c], 0xa
lea ecx, [ebp - 0x7c]
call dword [fcn.00401124]
mov ecx, dword [ebx]
lea edx, [ebp - 0x6c]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x7c]
push eax
mov edx, dword [ebp - 0x28]
push edx
push ebx
call dword [ecx + 0x40]
fnclex
test eax, eax
jge 0x405086
push 0x40
push 0x401f38
push ebx
push eax
call dword [0x40104c]
push 0x402068
mov eax, dword [ebp - 0x6c]
push eax
call dword [fcn.00401148]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call dword [fcn.00401068]
lea ecx, [ebp - 0x6c]
call dword [fcn.0040116c]
lea ecx, [ebp - 0x7c]
call dword [fcn.00401010]
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
lea ecx, [ebp - 0xb0]
push ecx
push eax
call dword [edx + 0x50]
fnclex
test eax, eax
jge 0x4050da
push 0x50
push 0x402078
mov edx, dword [ebp - 0x2c]
push edx
push eax
call dword [0x40104c]
mov eax, dword [ebp - 0x24]
push eax
push 0x40208c
call dword [0x40108c]
neg eax
sbb eax, eax
inc eax
xor ecx, ecx
cmp word [ebp - 0xb0], cx
sete cl
or eax, ecx
jne 0x405257
mov edx, 0x402550
lea ecx, [ebp - 0x28]
call dword [fcn.004010fc]
mov edx, dword [ebp - 0x28]
push edx
push 0x402378
call edi
mov edx, eax
lea ecx, [ebp - 0x44]
call esi
push eax
mov eax, dword [ebp - 0x24]
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x48]
call esi
push eax
push 0x4021a0
call edi
mov edx, eax
lea ecx, [ebp - 0x4c]
call esi
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call edi
mov edx, eax
lea ecx, [ebp - 0x50]
call esi
push eax
push 0x4021a0
call edi
mov edx, eax
lea ecx, [ebp - 0x54]
call esi
push eax
mov edx, dword [ebp - 0x30]
push edx
call edi
mov edx, eax
lea ecx, [ebp - 0x58]
call esi
push eax
push 0x4021a0
call edi
mov edx, eax
lea ecx, [ebp - 0x5c]
call esi
push eax
mov eax, dword [ebp - 0x3c]
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x60]
call esi
push eax
push 0x4021a0
call edi
mov edx, eax
lea ecx, [ebp - 0x64]
call esi
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call edi
mov edx, eax
lea ecx, [ebp - 0x68]
call esi
push eax
push 0x4021ac
call edi
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x44]
push edx
push 0xa
call dword [fcn.00401104]
add esp, 0x2c
mov eax, dword [0x406010]
test eax, eax
jne 0x4051ff
push 0x406010
push 0x401f24
call dword [fcn.004010ec]
mov ebx, dword [0x406010]
mov dword [ebp - 0x74], 0x80020004
mov dword [ebp - 0x7c], 0xa
lea ecx, [ebp - 0x7c]
call dword [fcn.00401124]
mov eax, dword [ebx]
lea ecx, [ebp - 0x6c]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x7c]
push edx
mov ecx, dword [ebp - 0x28]
push ecx
push ebx
call dword [eax + 0x40]
fnclex
test eax, eax
jge 0x405245
push 0x40
push 0x401f38
push ebx
push eax
call dword [0x40104c]
lea ecx, [ebp - 0x6c]
call dword [fcn.0040116c]
lea ecx, [ebp - 0x7c]
call dword [fcn.00401010]
mov eax, 1
add ax, word [ebp - 0x20]
jo 0x405346
mov dword [ebp - 0x20], eax
xor ebx, ebx
jmp 0x404eaa
push 0x402068
push ebx
call dword [fcn.00401148]
push eax
lea edx, [ebp - 0x2c]
push edx
jmp 0x405295
call dword [fcn.00401068]
call dword [fcn.0040105c]
push 0x405335
jmp 0x405302
lea ecx, [ebp - 0x24]
mov esi, dword [fcn.00401168]
call esi
lea ecx, [ebp - 0x28]
call esi
lea ecx, [ebp - 0x2c]
call dword [fcn.0040116c]
lea ecx, [ebp - 0x30]
call esi
lea ecx, [ebp - 0x34]
call esi
lea ecx, [ebp - 0x38]
call esi
lea ecx, [ebp - 0x3c]
call esi
lea ecx, [ebp - 0x40]
call esi
ret
call dword [0x4010e8]
nop
nop
nop
nop