Function at 0x40b0b0
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40b670
sub esp, 0x50
mov edx, dword [esp + 0x54]
test byte [edx], al
lea ebx, [edx + 0x14c]
mov ebp, dword [esp + 0x58]
add ebp, 0x3fffff
nop
and ebp, 0xffc00000
mov dword [esp + 0x18], ebp
mov esi, dword [esp + 0x5c]
cmp esi, ebx
je 0x40b0f7
xor eax, eax
jmp 0x40b41b
lea eax, [edx + 0x150]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], 0x400000
lea eax, [0x93fdd8]
mov dword [esp + 0xc], eax
call fcn.0040c1b0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40b134
mov edx, dword [esp + 0x54]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x5c]
jmp 0x40b41b
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], ecx
mov edx, eax
shr eax, 0x16
mov ebx, dword [esp + 0x54]
jmp 0x40b179
mov ecx, dword [esp + 0x3c]
lea ecx, [ecx + edx*4]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00476520
mov eax, dword [esp + 0x2c]
inc eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x38]
mov ecx, ebx
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x54]
mov ebp, edx
lea edx, [ecx + edx - 1]
shr edx, 0x16
cmp eax, edx
ja 0x40b379
mov dword [esp + 0x2c], eax
mov edx, dword [ebx + 0x134]
test edx, edx
jne 0x40b210
mov eax, dword [sym.imp.kernel32.dll_VirtualAlloc]
nop
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x1000
mov dword [esp + 0xc], 0x3000
mov dword [esp + 0x10], 4
call fcn.00434130
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40b3dd
mov ecx, dword [esp + 0x54]
movzx edx, byte [ecx + 0x138]
test dl, dl
je 0x40b1e5
nop
jmp 0x40b1e6
nop
mov dword [esp + 0x48], eax
lea edx, [ecx + 0x134]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00476520
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
cmp eax, 0x400
jae 0x40b3d3
test byte [edx], al
mov esi, dword [edx + eax*4]
test esi, esi
jne 0x40b3bd
mov dword [esp + 0x3c], edx
lea eax, [ebx + 0x13c]
mov dword [esp], eax
mov dword [esp + 4], 0x8c8
mov dword [esp + 8], 4
lea eax, [0x944050]
mov dword [esp + 0xc], eax
call fcn.0040c1b0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40b286
mov dword [esp], 0x8c8
mov dword [esp + 4], 4
lea eax, [0x944050]
mov dword [esp + 8], eax
call fcn.0040be50
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40b3a7
movzx ebx, byte [esp + 0x60]
test bl, bl
je 0x40b370
mov ebp, dword [esp + 0x54]
mov esi, dword [ebp + 0x168]
cmp dword [ebp + 0x164], esi
jne 0x40b341
mov dword [esp + 0x20], eax
shl esi, 3
test esi, esi
jne 0x40b2ba
mov esi, dword [0x93ed6c]
mov dword [esp + 0x1c], esi
mov dword [esp], esi
mov dword [esp + 4], 4
lea eax, [0x944050]
mov dword [esp + 8], eax
call fcn.0040be50
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40b391
mov ebx, dword [esp + 0x54]
mov ebp, dword [ebx + 0x164]
mov esi, dword [esp + 0x1c]
shr esi, 2
mov edi, dword [ebx + 0x160]
mov dword [ebx + 0x160], eax
mov dword [ebx + 0x168], esi
mov esi, dword [ebx + 0x164]
cmp esi, ebp
jg 0x40b313
mov ebp, esi
mov esi, dword [ebx + 0x160]
cmp esi, edi
je 0x40b334
mov dword [esp], esi
mov dword [esp + 4], edi
shl ebp, 2
mov dword [esp + 8], ebp
call fcn.004721c0
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x20]
movzx ebx, byte [esp + 0x60]
mov ebp, dword [esp + 0x54]
mov esi, dword [ebp + 0x164]
mov edx, dword [ebp + 0x168]
lea ecx, [esi + 1]
cmp edx, ecx
jb 0x40b38c
mov dword [ebp + 0x164], ecx
cmp esi, ecx
jae 0x40b385
mov ecx, dword [ebp + 0x160]
mov edx, dword [esp + 0x2c]
mov dword [ecx + esi*4], edx
jmp 0x40b14b
mov edx, dword [esp + 0x2c]
jmp 0x40b14b
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ecx
add esp, 0x50
ret
mov eax, esi
call fcn.004718b0
call fcn.004718f0
lea eax, [0x728e80]
mov dword [esp], eax
mov dword [esp + 4], 0x22
call fcn.0046ad70
lea eax, [0x72cf4a]
mov dword [esp], eax
mov dword [esp + 4], 0x2c
call fcn.0046ad70
lea eax, [0x723efc]
mov dword [esp], eax
mov dword [esp + 4], 0x19
call fcn.0046ad70
mov ecx, 0x400
call fcn.004718c0
lea eax, [0x72b241]
mov dword [esp], eax
mov dword [esp + 4], 0x27
call fcn.0046ad70
mov eax, dword [ebx + 8]
mov dword [esi], eax
mov eax, dword [edx + 0x46c8]
sub eax, dword [edx + 0x46ac]
nop
mov dword [edx + 0x46c8], eax
mov eax, dword [edx + 0x46b8]
mov dword [ebx], eax
mov dword [edx + 0x46b8], ebx
mov eax, edi
mov ebx, dword [esi]
test ebx, ebx
je 0x40b4c4
movzx edi, byte [ebx + 4]
mov eax, dword [ebx]
xchg edi, eax
test al, al
xchg edi, eax
je 0x40b433
sub eax, ebp
mov dword [esp + 0x34], ebx
lea edi, [eax + ebp]
cmp eax, edi
jbe 0x40b442
xor ecx, ecx
jmp 0x40b475
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], edi
nop
mov dword [esp], eax
mov dword [esp + 4], ebp
call fcn.00412230
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x38]
mov ecx, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x4c], ecx
cmp ecx, eax
je 0x40b4ae
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x40b3f3
mov dword [esp], edi
mov dword [esp + 4], ebp
call fcn.00412170
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x4c]
jmp 0x40b3f3
movzx esi, byte [ebx + 4]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x40b4ba
mov eax, edi
mov dword [ebx], eax
mov ecx, ebp
mov eax, dword [esp + 0x4c]
jmp 0x40b4c6
xor ecx, ecx
test ecx, ecx
jne 0x40b566
mov dword [esp], 0
mov dword [esp + 4], ebp
mov dword [esp + 8], 0x400000
call fcn.0040b680
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40b592
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x54]
lea edx, [ecx + 0x46ac]
mov dword [esp + 0x44], edx
mov dword [esp], edx
call fcn.00414e50
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x4c]
mov dword [eax], ecx
mov byte [eax + 4], 1
mov ecx, dword [0x926ecc]
mov dword [eax + 8], ecx
mov dword [0x926ecc], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.00414e50
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x38]
add ecx, ebx
mov dword [eax], ecx
mov ecx, dword [0x926ecc]
mov dword [eax + 8], ecx
mov dword [0x926ecc], eax
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
mov ecx, ebx
mov ebx, eax
lea ebp, [ecx + eax]
cmp eax, ebp
jbe 0x40b57c
mov esi, 0x1c
lea edi, [0x725b90]
jmp 0x40b580
xor esi, esi
xor edi, edi
test esi, esi
jne 0x40b5bc
test eax, 0x3fffff
jne 0x40b5a6
mov eax, ebx
jmp 0x40b138
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
add esp, 0x50
ret
lea eax, [0x728630]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.0046ad70
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], edi
mov dword [esp + 0x30], esi
call fcn.00437f30
lea eax, [0x72860f]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.00438790
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00438620
lea eax, [0x71b203]
mov dword [esp], eax
mov dword [esp + 4], 2
call fcn.00438790
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00438620
lea eax, [0x72771b]
mov dword [esp], eax
mov dword [esp + 4], 0x1f
call fcn.00438790
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.00438790
call fcn.00438130
call fcn.00437f90
lea eax, [0x72d85f]
mov dword [esp], eax
mov dword [esp + 4], 0x2e
call fcn.0046ad70
nop
call fcn.00470430
jmp fcn.0040b0b0