Function at 0x650140
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xb0]
cmp eax, dword [ecx + 8]
jbe 0x650ced
sub esp, 0x130
mov eax, 0
mov dword [esp + 0x12c], eax
mov byte [esp + 0x22], 0
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0
mov eax, dword [esp + 0x134]
mov ecx, dword [eax]
mov dword [esp + 0x94], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x90], edx
mov ebx, dword [eax + 4]
mov dword [esp + 0x6c], ebx
mov ebp, dword [esp + 0x138]
mov dword [esp], ebp
call fcn.0064f250
mov eax, dword [esp + 4]
test eax, eax
jne 0x650535
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x650cc8
mov dword [esp + 0x128], ecx
mov eax, dword [esp + 0x134]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x124], ecx
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + 0x10]
mov ebp, dword [esp + 0x90]
mov dword [esp], ebp
call ebx
mov eax, dword [esp + 4]
mov dword [esp + 0x120], eax
lea edi, [esp + 0xfc]
xor eax, eax
call fcn.00471aca
mov ecx, dword [esp + 0x128]
mov dword [esp + 0xfc], ecx
lea ecx, [esp + 0x23]
mov dword [esp + 0x100], ecx
mov ecx, dword [esp + 0x124]
mov dword [esp + 0x10c], ecx
mov ecx, dword [esp + 0x120]
mov dword [esp + 0x104], ecx
lea ecx, [esp + 0xfc]
mov dword [esp], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 2
mov byte [esp + 0x14], 1
call fcn.00449a50
mov eax, dword [esp + 0x18]
test eax, eax
je 0x6502e4
cmp eax, 1
jne 0x6502c3
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
add esp, 0x130
ret
mov eax, dword [0x913698]
mov ecx, dword [0x91369c]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
add esp, 0x130
ret
mov eax, dword [esp + 0x94]
lea ecx, [eax + 0x34]
mov dword [esp + 0x11c], ecx
mov dword [esp], ecx
call fcn.004868a0
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x65031d
mov edx, dword [eax + 0x30]
mov ecx, dword [ecx + 0x14]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x68]
nop
test ecx, ecx
jle 0x650329
dec ecx
mov dword [eax + 0x68], ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x134]
mov dword [esp + 4], ecx
call fcn.00651510
mov eax, dword [esp + 8]
test eax, eax
jne 0x6504da
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0xb8]
mov edx, dword [esp + 0x134]
mov ebx, dword [edx + 0x94]
lea ebp, [ebx + ecx]
nop
cmp ecx, ebp
setl cl
test ebx, ebx
setg bl
cmp bl, cl
jne 0x65037a
mov dword [edx + 0x94], ebp
mov ecx, dword [0x93f150]
lea ebx, [eax + 0x40]
test ecx, ecx
je 0x650397
call fcn.00471840
mov dword [edi], ebx
mov ecx, dword [edx + 0x98]
mov dword [edi + 4], ecx
mov dword [edx + 0x98], ebx
nop
mov dword [edx + 0x9c], 0x400000
mov ecx, dword [eax + 0x6c]
mov dword [edx + 0x14], ecx
add dword [eax + 0x6c], 2
mov ecx, dword [eax + 0x64]
mov ebx, dword [edx + 0x14]
lea ebp, [0x6ddc40]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.00468290
mov eax, dword [esp + 0xc]
test byte [eax], al
mov ecx, dword [0x93f150]
test ecx, ecx
jne 0x6503e7
mov ecx, dword [esp + 0x134]
jmp 0x6503fa
call fcn.00471840
mov ecx, dword [esp + 0x134]
mov dword [edi], ecx
mov edx, dword [eax]
mov dword [edi + 4], edx
mov dword [eax], ecx
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x650cb0
mov eax, dword [esp + 0x138]
mov dword [esp], eax
call fcn.00659110
movzx eax, byte [esp + 4]
test al, al
je 0x65042a
mov eax, dword [esp + 0x94]
mov byte [eax + 0x50], 1
mov eax, dword [esp + 0x11c]
mov dword [esp], eax
call fcn.00486c20
mov edx, dword [esp + 0x13c]
test edx, edx
je 0x650452
mov eax, dword [edx]
mov ecx, dword [esp + 0x134]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 0x94]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x50]
test ecx, ecx
je 0x650470
mov edx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xac]
jmp 0x650474
xor ecx, ecx
xor edx, edx
test ecx, ecx
setne bl
test edx, edx
xchg ebp, ebx
setne bl
xchg ebp, ebx
or ebx, ebp
test bl, bl
je 0x6505f4
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], edx
mov eax, dword [esp + 0x138]
mov ecx, dword [eax + 0x1c]
lea edx, [0x70dbe0]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [0x71b880]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 6
call fcn.0040e140
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [esp + 0x7c], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x64], eax
xor edx, edx
jmp 0x65055d
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 0x11c]
mov dword [esp], ecx
call fcn.00486c20
mov eax, dword [esp + 0x94]
mov eax, dword [eax + 0xbc]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00405d80
mov eax, dword [esp + 0x68]
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x144], eax
add esp, 0x130
ret
mov ecx, dword [esp + 8]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
add esp, 0x130
ret
mov ebx, dword [esp + 0x78]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x7c]
cmp edx, eax
jge 0x6505ec
mov dword [esp + 0x78], edx
lea eax, [ecx + edx*8]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
lea eax, [0x71d1b9]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0xc
call fcn.00633870
movzx eax, byte [esp + 0x10]
test al, al
je 0x65054e
lea eax, [0x6d49e0]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00405070
mov eax, dword [0x93f150]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x6505c5
mov eax, dword [esp + 0x134]
jmp 0x6505dc
call fcn.00471840
mov dword [edi], ecx
mov eax, dword [esp + 0x134]
mov edx, dword [eax + 0x88]
mov dword [edi + 4], edx
mov dword [eax + 0x88], ecx
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
jmp 0x6505f0
xor eax, eax
xor ecx, ecx
mov edx, ecx
mov ecx, eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x134]
mov dword [esp], eax
mov ebx, dword [esp + 0x138]
mov dword [esp + 4], ebx
call fcn.00650d40
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0xbc]
mov dword [esp], ecx
mov dword [esp + 4], 0
call fcn.00405d80
mov eax, dword [esp + 0x140]
test eax, eax
jne 0x650a4d
mov eax, dword [esp + 0x134]
mov ecx, dword [eax + 0xbc]
mov ebx, dword [eax + 0xc0]
test ecx, ecx
setne cl
test ebx, ebx
setne bl
or ebx, ecx
test bl, bl
je 0x65095c
mov ecx, dword [esp + 0x74]
test ecx, ecx
setne bl
mov ebp, dword [esp + 0x70]
test ebp, ebp
xchg esi, ebx
setne bl
xchg esi, ebx
or esi, ebx
xchg esi, eax
test al, al
xchg esi, eax
je 0x6508ba
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x6506bb
mov edx, dword [ebx + 0x38]
test edx, edx
je 0x6506bb
mov eax, dword [edx]
call eax
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
mov dword [esp], ebp
mov dword [esp + 4], ecx
call fcn.004adc60
mov eax, dword [esp + 8]
mov dword [esp + 0x80], eax
mov ecx, dword [eax]
mov dword [esp + 0x118], ecx
mov edx, dword [esp + 0x134]
mov ebx, dword [edx + 0x88]
mov dword [esp + 0x128], ebx
mov ebp, dword [edx + 0x74]
mov dword [esp + 0x114], ebp
mov esi, dword [esp + 0x6c]
mov edi, dword [esi + 0x10]
mov esi, dword [esp + 0x90]
mov dword [esp], esi
call edi
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x134]
mov edx, dword [ecx + 0xc]
lea edi, [esp + 0xd4]
mov ebx, eax
xor eax, eax
call fcn.00471ac6
mov ecx, dword [esp + 0x118]
mov dword [esp + 0xf4], ecx
mov ecx, dword [esp + 0x128]
mov dword [esp + 0xec], ecx
mov ecx, dword [esp + 0x114]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xd4], edx
lea ecx, [esp + 0xd4]
mov dword [esp], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 5
mov byte [esp + 0x14], 1
call fcn.00449a50
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x6507c4
mov eax, dword [0x913698]
mov ecx, dword [0x91369c]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
mov eax, dword [esp + 0x134]
jmp 0x65085e
cmp eax, 1
je 0x65082e
cmp eax, 2
jne 0x6507eb
mov eax, dword [esp + 0x134]
mov ecx, dword [eax + 0x78]
mov edx, dword [eax + 0x7c]
mov dword [esp + 0x140], ecx
mov dword [esp + 0x144], edx
jmp 0x65085e
cmp eax, 3
jne 0x65080f
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0
mov eax, dword [esp + 0x134]
jmp 0x65085e
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0
mov eax, dword [esp + 0x134]
jmp 0x65085e
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x90]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
mov eax, dword [esp + 0x134]
mov ecx, dword [esp + 0x80]
movzx edx, byte [ecx + 4]
nop
test dl, dl
je 0x650c98
mov dword [esp], ecx
call fcn.0046ecd0
mov eax, dword [esp + 0x140]
test eax, eax
je 0x6508b3
mov ecx, dword [esp + 0x134]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x6508ac
mov edx, dword [ecx + 0x3c]
test edx, edx
je 0x6508ac
mov ecx, dword [esp + 0x144]
mov ebx, dword [edx]
mov dword [esp], eax
mov dword [esp + 4], ecx
call ebx
add esp, 0x130
ret
mov eax, dword [esp + 0x134]
mov dword [esp], eax
mov ecx, dword [esp + 0x138]
mov dword [esp + 4], ecx
call fcn.00651850
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
test eax, eax
je 0x65094c
cmp dword [0x9136a0], eax
jne 0x650917
mov edx, dword [0x9136a4]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00404430
movzx eax, byte [esp + 0xc]
test al, al
je 0x650917
mov eax, dword [esp + 0x134]
jmp 0x650963
mov eax, dword [esp + 0x134]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x650945
mov edx, dword [eax + 0x3c]
test edx, edx
je 0x650945
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x144]
mov ebx, dword [edx]
mov dword [esp], eax
mov dword [esp + 4], ecx
call ebx
add esp, 0x130
ret
mov eax, dword [esp + 0x134]
mov byte [eax + 0xc8], 1
jmp 0x650963
mov byte [eax + 0xc8], 1
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x650991
mov edx, dword [ecx + 0x3c]
test edx, edx
je 0x650991
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x144]
mov ebx, dword [edx]
mov dword [esp], eax
mov dword [esp + 4], ecx
call ebx
mov eax, dword [esp + 0x134]
mov ecx, dword [esp + 0x94]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x50]
test edx, edx
je 0x6509af
mov ebx, dword [edx + 0xa0]
mov edx, dword [edx + 0xa4]
jmp 0x6509b3
xor edx, edx
xor ebx, ebx
test ebx, ebx
xchg ebp, ebx
setne bl
xchg ebp, ebx
test edx, edx
xchg esi, ebx
setne bl
xchg esi, ebx
or esi, ebp
xchg esi, eax
mov byte [esp + 0x23], al
xchg esi, eax
xchg esi, eax
test al, al
xchg esi, eax
jne 0x6509dc
xor ecx, ecx
xor edx, edx
jmp 0x650a5f
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.0064afa0
mov eax, dword [esp + 0xc]
test byte [eax], al
mov ecx, dword [esp + 0x10]
lea edx, [0x650d00]
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ecx
lea edx, [esp + 0xc8]
mov dword [esp + 0x12c], edx
mov byte [esp + 0x22], 1
mov eax, dword [eax + 0xc]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x134]
mov edx, dword [ecx + 0x8c]
movzx esi, byte [esp + 0x23]
mov ecx, eax
mov eax, dword [esp + 0x134]
jmp 0x650a5f
add esp, 0x130
ret
mov eax, dword [esp + 0x134]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x84], ecx
mov ebx, dword [eax + 0x80]
mov dword [esp + 0x128], ebx
mov ebp, dword [eax + 0x74]
mov dword [esp + 0x114], ebp
mov esi, dword [esp + 0x6c]
mov edi, dword [esi + 0x10]
mov esi, dword [esp + 0x90]
mov dword [esp], esi
call edi
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x134]
mov edx, dword [ecx + 0xc]
lea edi, [esp + 0x98]
mov ebx, eax
xor eax, eax
call fcn.00471ac4
mov ecx, dword [esp + 0x128]
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x114]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x98], edx
lea ecx, [esp + 0x98]
mov dword [esp], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 6
mov byte [esp + 0x14], 1
call fcn.00449a50
mov eax, dword [esp + 0x18]
test eax, eax
je 0x650c5b
cmp eax, 1
je 0x650c0f
cmp eax, 2
je 0x650bd1
cmp eax, 3
je 0x650a54
cmp eax, 4
jne 0x650b98
mov eax, dword [0x913660]
mov ecx, dword [0x913664]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
movzx eax, byte [esp + 0x23]
test al, 1
je 0x650b91
and eax, 0xfffffffe
mov byte [esp + 0x22], al
mov edx, dword [esp + 0x12c]
mov eax, dword [edx]
call eax
add esp, 0x130
ret
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0
movzx eax, byte [esp + 0x23]
test al, 1
je 0x650bca
and eax, 0xfffffffe
mov byte [esp + 0x22], al
mov edx, dword [esp + 0x12c]
mov eax, dword [edx]
call eax
add esp, 0x130
ret
mov eax, dword [esp + 0x134]
mov ecx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [esp + 0x140], ecx
mov dword [esp + 0x144], eax
movzx eax, byte [esp + 0x23]
test al, 1
je 0x650c08
and eax, 0xfffffffe
mov byte [esp + 0x22], al
mov edx, dword [esp + 0x12c]
mov eax, dword [edx]
call eax
add esp, 0x130
ret
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
movzx eax, byte [esp + 0x23]
test al, 1
je 0x650c54
and eax, 0xfffffffe
mov byte [esp + 0x22], al
mov edx, dword [esp + 0x12c]
mov eax, dword [edx]
call eax
add esp, 0x130
ret
mov eax, dword [0x913698]
mov ecx, dword [0x91369c]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], ecx
movzx eax, byte [esp + 0x23]
test al, 1
je 0x650c91
and eax, 0xfffffffe
mov byte [esp + 0x22], al
mov edx, dword [esp + 0x12c]
mov eax, dword [edx]
call eax
add esp, 0x130
ret
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x789e50]
mov dword [esp + 4], eax
call fcn.0046a9e0
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x789eb0]
mov dword [esp + 4], eax
call fcn.0046a9e0
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x789ea8]
mov dword [esp + 4], eax
call fcn.0046a9e0
nop
call fcn.004358b0
add esp, 0x130
ret
call fcn.00470430
jmp fcn.00650140