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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x2c], 0
push edi
mov edi, edx
or edx, 0xffffffff
mov dword [esp + 0x14], edi
mov ebx, dword [esi + 8]
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], ebx
test ebx, ebx
jne 0x450725
cmp dword [esi + 0x78], ebx
jne 0x45070f
mov eax, dword [esi]
test byte [eax + 0x44], 8
jne 0x45070f
mov byte [esi + 0x17], 1
call fcn.00439b90
mov ebx, eax
or edx, 0xffffffff
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x4509a4
inc dword [esi + 0x3c]
test byte [edi + 4], 0x20
jne 0x450740
mov edx, 0x14
mov ecx, ebx
call fcn.00439df0
mov edx, eax
mov dword [esp + 0x20], eax
cmp byte [esi + 0x18f], 2
jne 0x45079b
push dword [esi + 0x1a0]
cmp byte [edi], 0x31
mov eax, str.SCALAR
mov ecx, str.LIST
cmovne ecx, eax
test edx, edx
push ecx
mov ecx, str.CORRELATED
mov eax, 0x61f6c0
cmovs eax, ecx
push eax
push str.EXECUTE__s_s_SUBQUERY__d
push dword [esi]
call fcn.0041d700
add esp, 0x14
mov edx, 0xaa
mov ecx, ebx
push 0xfffffffffffffff9
push eax
push 0
push 0
push dword [esi + 0x19c]
call fcn.0043a180
add esp, 0x14
mov al, byte [edi]
cmp al, 0x31
je 0x4508a2
mov edi, dword [edi + 0x14]
cmp al, 0x77
jne 0x4507b2
mov eax, dword [edi]
mov edx, dword [eax]
jmp 0x4507b7
mov edx, 1
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
lea ecx, [eax + 1]
add eax, edx
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], ecx
cmp byte [eax], 0x77
jne 0x45080e
lea eax, [ecx - 1]
mov dword [esp + 0x44], ecx
add eax, edx
mov dword [esp + 0x48], edx
push eax
push ecx
push 0
mov edx, 0x46
mov byte [esp + 0x48], 0xa
mov ecx, ebx
call fcn.00439d80
add esp, 0xc
jmp 0x450825
push ecx
push 0
mov edx, 0x43
mov byte [esp + 0x44], 3
mov ecx, ebx
call fcn.00439ed0
add esp, 8
mov ecx, dword [esi]
mov edx, 0x86
push 0
push 0x61742c
call fcn.0044dec0
mov ecx, dword [edi + 0x38]
add esp, 8
mov dword [esp + 0x30], eax
test ecx, ecx
je 0x450860
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x45085b
mov ecx, dword [esi]
call fcn.0044e5e0
mov ecx, dword [edi + 0x38]
mov eax, dword [esp + 0x30]
mov dword [ecx + 0xc], eax
jmp 0x450875
push 0
push eax
mov edx, 0x81
mov ecx, esi
call fcn.0044e120
add esp, 8
mov dword [edi + 0x38], eax
lea eax, [esp + 0x3c]
mov dword [edi + 0xc], 0
push eax
mov edx, edi
mov ecx, esi
call fcn.00476cd0
add esp, 4
test eax, eax
jne 0x4509a4
mov eax, dword [esp + 0x40]
mov dword [esp + 0x30], eax
jmp 0x450cb4
mov edi, dword [edi + 0xc]
mov al, byte [edi]
cmp al, 0x98
jne 0x4508ae
mov al, byte [edi + 0x26]
cmp al, 0x99
jne 0x4508b9
mov eax, dword [edi + 0x14]
mov ecx, dword [eax]
jmp 0x4508cb
cmp al, 0x77
jne 0x4508c6
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x4508cb
mov ecx, 1
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x28]
mov dword [esp + 0x18], ecx
mov dword [edx + 0x1c], eax
mov eax, ecx
inc dword [esi + 0x28]
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
cmovne eax, ecx
push eax
push dword [edx + 0x1c]
lea edx, [ecx + 0x6e]
mov ecx, ebx
call fcn.00439ed0
add esp, 8
mov dword [esp + 0x38], eax
cmp dword [ebp + 0xc], 0
je 0x45090b
mov dword [esp + 0x1c], 0
jmp 0x45091f
mov edx, dword [esp + 0x18]
mov ecx, dword [esi]
push 1
call fcn.00471220
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x14]
test dword [ecx + 4], 0x800
mov eax, dword [ecx + 0x14]
je 0x450a82
mov edx, dword [eax]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], edx
cmp dword [edx], eax
jne 0x450c5d
mov eax, dword [ecx + 0x1c]
mov edx, ecx
mov ecx, esi
mov byte [esp + 0x3c], 0xb
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call fcn.00450560
mov edx, dword [esp + 0x28]
mov ecx, esi
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
push eax
mov dword [edx + 0xc], 0
call fcn.00476cd0
mov ecx, dword [esi]
add esp, 4
mov edx, dword [esp + 0x4c]
test eax, eax
je 0x4509ad
call fcn.0041b3e0
mov ecx, dword [esp + 0x1c]
call fcn.004712d0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041b3e0
cmp dword [esp + 0x18], 0
jle 0x450c5d
mov eax, dword [esp + 0x1c]
xor ecx, ecx
add eax, 0x14
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
add eax, 4
mov dword [esp + 0x34], eax
nop dword [eax]
mov al, byte [edi]
mov byte [esp + 0x13], al
cmp al, 0x98
jne 0x4509ed
mov al, byte [edi + 0x26]
cmp al, 0x99
jne 0x4509fa
mov edx, dword [edi + 0x14]
mov eax, dword [edx]
mov ebx, eax
jmp 0x450a05
cmp al, 0x77
jne 0x450a23
mov edx, dword [edi + 0x14]
mov eax, dword [edx]
mov ebx, dword [eax]
cmp ebx, 1
jle 0x450a23
cmp byte [esp + 0x13], 0x77
je 0x450a1d
cmp byte [edi + 0x26], 0x77
je 0x450a1d
mov edx, dword [edx + ecx + 4]
jmp 0x450a25
mov edx, dword [eax + ecx + 4]
jmp 0x450a25
mov edx, edi
test dword [edx + 4], 0x100
mov eax, dword [esp + 0x34]
mov ebx, dword [eax + ecx]
jne 0x450a4f
test ebx, ebx
je 0x450a42
test dword [ebx + 4], 0x100
jne 0x450a4d
mov ecx, esi
call fcn.0044d540
test eax, eax
jne 0x450a56
mov edx, ebx
mov ecx, esi
call fcn.0044d540
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add ecx, 0x18
mov dword [esp + 0x28], ecx
mov dword [edx], eax
add edx, 4
sub dword [esp + 0x18], 1
mov dword [esp + 0x24], edx
jne 0x4509e0
mov ebx, dword [esp + 0x2c]
jmp 0x450c5d
mov dword [esp + 0x34], eax
test eax, eax
je 0x450c5d
mov ecx, edi
call fcn.0044d3c0
mov edi, dword [esp + 0x1c]
test al, al
movzx ecx, al
mov edx, 0x41
cmove ecx, edx
mov byte [esp + 0x13], cl
test edi, edi
je 0x450abf
mov eax, dword [esp + 0x14]
mov ecx, esi
mov edx, dword [eax + 0xc]
call fcn.0044d540
mov dword [edi + 0x14], eax
mov ecx, esi
call fcn.00454a60
mov dword [esp + 0x24], eax
call fcn.00454a60
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x18], eax
je 0x450af4
push 0xffffffffffffffff
push 0x61f6c0
push 0
push eax
push 0
mov edx, 0x48
mov ecx, ebx
call fcn.0043a180
add esp, 0x14
mov eax, dword [esp + 0x34]
lea ecx, [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x450c47
nop dword [eax]
cmp dword [esp + 0x20], 0
mov edi, dword [ecx]
jl 0x450b5f
mov byte [esp + 0x50], 1
mov dword [esp + 0x40], fcn.0044f6c0
mov dword [esp + 0x44], 0x44f660
mov dword [esp + 0x54], 0
test edi, edi
je 0x450b5f
mov edx, edi
lea ecx, [esp + 0x3c]
call fcn.0044b1b0
cmp byte [esp + 0x50], 0
jne 0x450b5f
mov edx, dword [esp + 0x20]
mov ecx, ebx
call fcn.0043a9a0
mov dword [esp + 0x20], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x450b97
lea edx, [esp + 0x34]
mov ecx, edi
call fcn.0044f880
test eax, eax
je 0x450b97
push dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov edx, 0x77
push dword [esp + 0x1c]
mov ecx, ebx
push dword [eax + 0x1c]
call fcn.00439d80
add esp, 0xc
jmp 0x450c2b
push dword [esp + 0x24]
mov edx, edi
mov ecx, esi
call fcn.00452560
add esp, 4
mov edi, eax
cmp dword [ebp + 0xc], 0
je 0x450be3
mov ecx, dword [ebx + 0x88]
mov edx, 0x11
add ecx, 2
push ecx
push edi
mov ecx, ebx
call fcn.00439ed0
mov eax, dword [esp + 0x1c]
mov edx, 0x76
push edi
push dword [esp + 0x24]
mov ecx, ebx
push dword [eax + 0x1c]
call fcn.00439d80
add esp, 0x14
jmp 0x450c2b
push 1
lea eax, [esp + 0x17]
mov edx, 0x65
push eax
push dword [esp + 0x20]
mov ecx, ebx
push 1
push edi
call fcn.0043a180
add esp, 0x14
mov edx, edi
mov ecx, esi
push 1
call fcn.00452040
mov eax, dword [esp + 0x18]
add esp, 4
mov edx, 0x81
mov ecx, ebx
push 1
push edi
push dword [esp + 0x20]
push dword [eax + 0x1c]
call fcn.0043a280
add esp, 0x10
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
dec eax
add ecx, 0x18
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
test eax, eax
jg 0x450b10
mov edx, dword [esp + 0x24]
mov ecx, esi
call fcn.00454a80
mov edx, dword [esp + 0x18]
mov ecx, esi
call fcn.00454a80
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x450cb4
mov ecx, dword [ebx]
cmp byte [ecx + 0x49], 0
je 0x450c7d
push edx
mov edx, 0xfffffff7
call fcn.0043a860
add esp, 4
jmp 0x450cb4
mov eax, dword [esp + 0x38]
test eax, eax
jns 0x450c8c
mov eax, dword [ebx + 0x88]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x450cad
push 0xfffffffffffffff7
push edx
mov edx, eax
mov ecx, ebx
call fcn.0043a9f0
add esp, 8
jmp 0x450cb4
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xf7
mov eax, dword [ebp + 8]
test eax, eax
je 0x450ccd
push eax
mov eax, dword [esp + 0x18]
mov ecx, ebx
mov edx, dword [eax + 0x1c]
call fcn.0044faa0
add esp, 4
mov ecx, dword [esp + 0x20]
test ecx, ecx
js 0x450d0a
mov eax, dword [ebx]
mov edi, dword [ebx + 0x88]
cmp byte [eax + 0x49], 0
je 0x450cfd
mov eax, 0x6746b4
mov ecx, esi
mov dword [eax + 8], edi
call fcn.004520e0
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0x58]
mov dword [ecx + edx*4 + 8], edi
lea eax, [ecx + edx*4]
mov ecx, esi
call fcn.004520e0
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret