Function at 0x645590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x38
push esi
mov esi, dword [esp + 0x40]
or eax, 0xffffffff
push edi
mov dword [esp + 0x10], eax
mov edi, dword [esi + 8]
mov dword [esp + 0x14], edi
test edi, edi
jne 0x6455da
cmp dword [esi + 0x78], edi
jne 0x6455bc
mov eax, dword [esi]
test byte [eax + 0x44], 8
jne 0x6455bc
mov byte [esi + 0x17], 1
push esi
call fcn.0066c560
mov edi, eax
add esp, 4
or eax, 0xffffffff
mov dword [esp + 0x14], edi
test edi, edi
jne 0x6455da
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret
inc dword [esi + 0x3c]
push ebp
mov ebp, dword [esp + 0x4c]
test byte [ebp + 4], 0x20
jne 0x6455f7
push 0x14
push edi
call fcn.0066bae0
add esp, 8
mov dword [esp + 0x14], eax
cmp byte [esi + 0x18f], 2
jne 0x64564d
cmp byte [ebp], 0x31
mov ecx, str.LIST
je 0x645610
mov ecx, str.SCALAR
test eax, eax
mov eax, 0x6aad7b
jns 0x64561e
mov eax, str.CORRELATED
push dword [esi + 0x1a0]
push ecx
push eax
push str.EXECUTE__s_s_SUBQUERY__d
push dword [esi]
call fcn.0065af10
push 0xfffffffffffffff9
push eax
push 0
push 0
push dword [esi + 0x19c]
push 0xa7
push edi
call fcn.0066bc70
add esp, 0x30
mov al, byte [ebp]
push ebx
cmp al, 0x31
je 0x645724
mov ebx, dword [ebp + 0x14]
cmp al, 0x77
jne 0x645666
mov eax, dword [ebx]
mov edx, dword [eax]
jmp 0x64566b
mov edx, 1
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
lea ecx, [eax + 1]
add eax, edx
mov dword [esi + 0x2c], eax
cmp byte [ebp], 0x77
mov dword [esp + 0x34], ecx
jne 0x6456bb
lea eax, [ecx - 1]
mov byte [esp + 0x30], 0xa
add eax, edx
mov dword [esp + 0x38], ecx
push eax
push ecx
push 0
push 0x46
push edi
mov dword [esp + 0x50], edx
call fcn.0066bc10
add esp, 0x14
jmp 0x6456ce
push ecx
push 0
push 0x43
push edi
mov byte [esp + 0x40], 3
call fcn.0066bba0
add esp, 0x10
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x6456e0
push eax
push dword [esi]
call fcn.0064cdb0
add esp, 8
push 0
push 0x6c15b8
push 0x86
push dword [esi]
call fcn.00649a00
and dword [ebx + 8], 0xfffffbff
mov dword [ebx + 0x38], eax
lea eax, [esp + 0x40]
push eax
push ebx
push esi
mov dword [ebx + 0xc], 0
call fcn.00663b40
add esp, 0x1c
test eax, eax
jne 0x645821
mov ebx, dword [esp + 0x34]
jmp 0x645a6c
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov cl, byte [eax]
cmp cl, 0x96
jne 0x645735
mov cl, byte [eax + 0x26]
cmp cl, 0x97
jne 0x645741
mov eax, dword [eax + 0x14]
mov ebx, dword [eax]
jmp 0x645754
cmp cl, 0x77
jne 0x64574f
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x645754
mov ebx, 1
mov eax, dword [esi + 0x28]
mov dword [ebp + 0x1c], eax
inc dword [esi + 0x28]
mov eax, dword [esp + 0x58]
neg eax
mov dword [esp + 0x4c], ebx
sbb eax, eax
not eax
and eax, ebx
push eax
push dword [ebp + 0x1c]
push 0x6c
push edi
call fcn.0066bba0
add esp, 0x10
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x58], 0
je 0x645791
mov dword [esp + 0x10], 0
jmp 0x6457a2
push 1
push ebx
push dword [esi]
call fcn.00659cd0
add esp, 0xc
mov dword [esp + 0x10], eax
test dword [ebp + 4], 0x800
je 0x64588c
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov dword [esp + 0x14], eax
cmp dword [eax], ebx
jne 0x645a17
mov eax, dword [ebp + 0x1c]
push ebp
push esi
mov byte [esp + 0x38], 0xb
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
call fcn.00618480
lea ecx, [esp + 0x38]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
push ecx
push eax
push esi
mov dword [eax + 0xc], 0
call fcn.00663b40
add esp, 0x14
push dword [esp + 0x40]
push dword [esi]
test eax, eax
je 0x64582b
call fcn.00647820
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00659e30
add esp, 0xc
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret
call fcn.00647820
xor ebx, ebx
add esp, 8
cmp dword [esp + 0x4c], ebx
jle 0x645a17
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add edi, 0x14
mov ebp, dword [esp + 0x4c]
add eax, 4
mov dword [esp + 0x14], eax
push ebx
push dword [esp + 0x24]
call fcn.006769b0
mov ecx, dword [esp + 0x1c]
push dword [ecx]
push eax
push esi
call fcn.00641120
add dword [esp + 0x28], 0x18
lea edi, [edi + 4]
inc ebx
mov dword [edi - 4], eax
add esp, 0x14
cmp ebx, ebp
jl 0x645855
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x50]
jmp 0x645a17
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x645a17
push dword [esp + 0x20]
call fcn.00649950
add esp, 4
mov byte [esp + 0x4c], al
test al, al
jne 0x6458b0
mov byte [esp + 0x4c], 0x41
cmp dword [esp + 0x10], 0
je 0x6458ca
push dword [ebp + 0xc]
push esi
call fcn.0064c970
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [ecx + 0x14], eax
push esi
call fcn.00656e50
push esi
mov dword [esp + 0x2c], eax
call fcn.00656e50
add esp, 8
mov dword [esp + 0x14], eax
cmp dword [esp + 0x58], 0
je 0x6458ff
push 0xffffffffffffffff
push 0x6aad7b
push 0
push eax
push 0
push 0x48
push edi
call fcn.0066bc70
add esp, 0x1c
mov eax, dword [ebx]
lea ecx, [ebx + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
test eax, eax
jle 0x645a00
cmp dword [esp + 0x18], 0
mov ebx, dword [ecx]
jl 0x645940
push ebx
call fcn.0064d6f0
add esp, 4
test eax, eax
jne 0x645940
mov ecx, dword [esp + 0x18]
push ecx
push edi
call fcn.0066c180
add esp, 8
mov dword [esp + 0x18], 0xffffffff
cmp dword [esp + 0x58], 0
je 0x645971
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0064d830
add esp, 8
test eax, eax
je 0x645971
push dword [esp + 0x28]
push dword [esp + 0x18]
push dword [ebp + 0x1c]
push 0x75
push edi
call fcn.0066bc10
add esp, 0x14
jmp 0x6459e4
push dword [esp + 0x24]
push ebx
push esi
call fcn.0064ba40
add esp, 0xc
mov ebx, eax
cmp dword [esp + 0x58], 0
je 0x6459b0
mov ecx, dword [edi + 0x88]
add ecx, 2
push ecx
push ebx
push 0x11
push edi
call fcn.0066bba0
push ebx
push dword [esp + 0x28]
push dword [ebp + 0x1c]
push 0x74
push edi
call fcn.0066bc10
add esp, 0x24
jmp 0x6459e4
push 1
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x1c]
push 1
push ebx
push 0x63
push edi
call fcn.0066bc70
push 1
push ebx
push esi
call fcn.00649f80
push 1
push ebx
push dword [esp + 0x44]
push dword [ebp + 0x1c]
push 0x7f
push edi
call fcn.0066bd50
add esp, 0x40
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
dec eax
add ecx, 0x18
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
test eax, eax
jg 0x645914
push dword [esp + 0x24]
push esi
call fcn.006621c0
push dword [esp + 0x1c]
push esi
call fcn.006621c0
add esp, 0x10
mov edx, dword [esp + 0x10]
test edx, edx
je 0x645a6a
mov eax, dword [edi]
cmp byte [eax + 0x49], 0
je 0x645a35
push edx
push 0xfffffffffffffff7
push eax
call fcn.0061ba30
add esp, 0xc
jmp 0x645a6a
mov eax, dword [esp + 0x2c]
test eax, eax
jns 0x645a44
mov eax, dword [edi + 0x88]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x58]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x645a63
push 0xfffffffffffffff7
push edx
push eax
push edi
call fcn.0067fa50
add esp, 0x10
jmp 0x645a6a
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xf7
xor ebx, ebx
mov eax, dword [esp + 0x54]
test eax, eax
je 0x645a81
push eax
push dword [ebp + 0x1c]
push edi
call fcn.006664e0
add esp, 0xc
mov ecx, dword [esp + 0x18]
test ecx, ecx
js 0x645aaa
mov eax, dword [edi]
mov edx, dword [edi + 0x88]
cmp byte [eax + 0x49], 0
je 0x645a9e
mov eax, 0xb2e43c
jmp 0x645aa7
mov eax, dword [edi + 0x58]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
push esi
call fcn.00649ee0
add esp, 4
mov eax, ebx
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x38
ret