Function at 0x40fd40
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x449558
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x45f5e0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x30], esi
lea eax, [esp + 0x1c]
call fcn.00401620
push eax
mov byte [esp + 0x34], 2
call fcn.00401680
call fcn.0041472e
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40fd9a
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x30], 3
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x4538d8
push eax
call fcn.00403290
mov dword [esp + 0x28], esi
add esp, 0xc
mov byte [esp + 0x34], 4
mov edi, dword [esp + 0x14]
mov ebx, esp
mov dword [esp + 0x18], esp
push edi
call fcn.00401160
lea ecx, [esp + 0x20]
push ecx
call fcn.004017d0
mov esi, dword [eax]
xor ebx, ebx
cmp esi, ebx
je 0x40fecd
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
mov dword [esp + 0x1c], esi
call eax
mov ecx, dword [esi]
mov eax, dword [ecx + 0x50]
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x1c], ebx
call eax
cmp eax, ebx
jge 0x40fe27
push 0x451230
push esi
push eax
call fcn.00446c50
mov byte [esp + 0x30], 3
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
lea eax, [edi - 0x10]
mov byte [esp + 0x30], 2
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
cmp word [esp + 0x14], bx
je 0x40fed7
test edx, edx
jg 0x40fe60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
call fcn.00401650
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40feb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 8
push 0x80004003
call fcn.00446c30
test edx, edx
jg 0x40fee5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
call fcn.00401650
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 8