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

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov ebp, dword [ebx + 8]
push esi
or esi, 0xffffffff
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], 0
test ebp, ebp
jne 0x47b6a7
cmp dword [ebx + 0x78], ebp
jne 0x47b691
mov eax, dword [ebx]
test byte [eax + 0x44], 8
jne 0x47b691
mov byte [ebx + 0x17], 1
push ebx
call fcn.00437d10
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x47b6a7
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
inc dword [ebx + 0x3c]
push edi
mov edi, dword [esp + 0x54]
test byte [edi + 4], 0x20
jne 0x47b6cc
push 0
push 0
push 0
push 0x14
push ebp
call fcn.00432730
add esp, 0x14
mov esi, eax
mov dword [esp + 0x14], eax
cmp byte [edi], 0x31
je 0x47b843
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x50], ecx
mov eax, 0x4b4a4d
test esi, esi
jge 0x47b6ea
mov eax, str.CORRELATED
push eax
push str._sSCALAR_SUBQUERY
push 1
push ebx
call fcn.0043f630
add esp, 0x10
cmp byte [edi], 0x78
jne 0x47b70a
mov edx, dword [esp + 0x50]
mov eax, dword [edx]
mov edx, dword [eax]
jmp 0x47b70f
mov edx, 1
mov ecx, dword [ebx + 0x2c]
lea eax, [ecx + 1]
xor esi, esi
add ecx, edx
mov dword [ebx + 0x2c], ecx
cmp byte [edi], 0x78
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
jne 0x47b749
lea ecx, [eax + edx - 1]
push ecx
push eax
push esi
mov byte [esp + 0x40], 0xa
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
push 0x46
jmp 0x47b753
push esi
push eax
push esi
mov byte [esp + 0x40], 3
push 0x43
push ebp
call fcn.00432730
mov edx, dword [ebx]
add esp, 0x14
push 0
push 0x88
push edx
mov eax, 0x4b7880
call fcn.0042ea50
mov edi, dword [esp + 0x5c]
mov esi, eax
mov eax, dword [edi + 0x38]
add esp, 0xc
test eax, eax
je 0x47b79b
mov eax, dword [eax + 0xc]
test eax, eax
je 0x47b793
push eax
mov eax, dword [ebx]
push eax
call fcn.0042ebe0
add esp, 8
mov ecx, dword [edi + 0x38]
mov dword [ecx + 0xc], esi
jmp 0x47b809
mov eax, dword [ebx]
push 0
push 0x30
call fcn.00429db0
mov edi, eax
add esp, 8
test edi, edi
je 0x47b834
push 0x30
push 0
push edi
call fcn.00494780
or edx, 0xffffffff
add esp, 0xc
mov byte [edi], 0x82
mov word [edi + 0x22], dx
test esi, esi
je 0x47b7dd
mov dword [edi + 0xc], esi
mov ecx, dword [esi + 4]
and ecx, 0x200104
or dword [edi + 4], ecx
push edi
call fcn.0042e9b0
mov edx, dword [ebx]
mov eax, dword [edx + 0x70]
add esp, 4
cmp dword [edi + 0x18], eax
jle 0x47b800
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
mov esi, ebx
call fcn.0043dbb0
add esp, 8
mov eax, dword [esp + 0x50]
mov dword [eax + 0x38], edi
mov edi, eax
lea ecx, [esp + 0x34]
push ecx
push edi
push ebx
mov dword [edi + 0xc], 0
call fcn.004792d0
add esp, 0xc
test eax, eax
jne 0x47b96d
mov edx, dword [esp + 0x38]
mov dword [esp + 0x28], edx
jmp 0x47bc4f
test esi, esi
je 0x47b800
mov eax, dword [ebx]
push esi
push eax
call fcn.0042ebe0
jmp 0x47b7fd
mov ecx, dword [edi + 0xc]
mov al, byte [ecx]
mov dword [esp + 0x18], ecx
cmp al, 0x9a
jne 0x47b853
mov al, byte [ecx + 0x26]
cmp al, 0x9b
jne 0x47b860
mov eax, ecx
mov ecx, dword [eax + 0x14]
mov esi, dword [ecx]
jmp 0x47b874
cmp al, 0x78
jne 0x47b86f
mov edx, ecx
mov eax, dword [edx + 0x14]
mov ecx, dword [eax]
mov esi, dword [ecx]
jmp 0x47b874
mov esi, 1
mov edx, dword [ebx + 0x28]
mov ecx, dword [esp + 0x5c]
mov dword [edi + 0x1c], edx
inc dword [ebx + 0x28]
mov eax, dword [edi + 0x1c]
neg ecx
sbb ecx, ecx
push 0
not ecx
and ecx, esi
push ecx
push eax
push 0x6e
push ebp
mov dword [esp + 0x64], esi
call fcn.00432730
add esp, 0x14
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x30], eax
je 0x47b8b4
mov dword [esp + 0x10], 0
jmp 0x47b8d1
mov edx, dword [esp + 0x50]
mov edi, dword [ebx]
push 1
push edx
call fcn.00430170
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
add esp, 8
mov dword [esp + 0x10], eax
test dword [edi + 4], 0x800
je 0x47b9fd
cmp dword [esp + 0x14], 0
mov eax, dword [edi + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov eax, 0x4b4a4d
jge 0x47b8fc
mov eax, str.CORRELATED
push eax
push str._sLIST_SUBQUERY
push 1
push ebx
call fcn.0043f630
mov ecx, dword [esp + 0x2c]
add esp, 0x10
cmp dword [ecx], esi
jne 0x47bbf0
mov edx, dword [edi + 0x1c]
xor eax, eax
push ebx
mov ecx, edi
mov byte [esp + 0x38], 0xb
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.00433f90
lea ecx, [esp + 0x38]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
push ecx
push eax
push ebx
mov dword [eax + 0xc], 0
call fcn.004792d0
mov ecx, dword [ebx]
add esp, 0x10
test eax, eax
mov eax, dword [esp + 0x44]
je 0x47b977
call fcn.0041ca60
mov eax, dword [esp + 0x10]
call fcn.00426ef0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret
call fcn.0041ca60
xor edi, edi
test esi, esi
jle 0x47bbf0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add edx, 0x14
add eax, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
lea esp, [esp]
mov eax, dword [esp + 0x18]
mov esi, edi
call fcn.0042e960
test dword [eax + 4], 0x100
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx]
jne 0x47b9d6
test esi, esi
je 0x47b9c7
test dword [esi + 4], 0x100
jne 0x47b9d4
push ebx
call fcn.004527b0
add esp, 4
test eax, eax
jne 0x47b9df
mov eax, esi
push ebx
call fcn.004527b0
add esp, 4
mov ecx, dword [esp + 0x20]
add dword [esp + 0x1c], 0x18
mov dword [ecx], eax
inc edi
add ecx, 4
cmp edi, dword [esp + 0x50]
mov dword [esp + 0x20], ecx
jl 0x47b9a0
jmp 0x47bbf0
mov esi, dword [edi + 0x14]
test esi, esi
je 0x47bbf0
mov eax, dword [esp + 0x18]
call fcn.004338e0
mov byte [esp + 0x50], al
test al, al
jne 0x47ba1e
mov byte [esp + 0x50], 0x41
cmp dword [esp + 0x10], 0
je 0x47ba38
mov eax, dword [edi + 0xc]
push ebx
call fcn.004527b0
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edx + 0x14], eax
mov eax, ebx
call fcn.004255c0
mov dword [esp + 0x24], eax
mov eax, ebx
call fcn.004255c0
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x18], eax
je 0x47ba70
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0x4b4a4d
push 0
push 0x48
xor eax, eax
mov edi, ebp
call fcn.004327c0
add esp, 0x10
mov eax, dword [esi]
add esi, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
test eax, eax
jle 0x47bbdc
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edi, dword [eax]
test esi, esi
jl 0x47baaf
mov eax, edi
call fcn.0042ef50
test eax, eax
jne 0x47baaf
mov eax, esi
mov edx, ebp
call fcn.0042d520
mov dword [esp + 0x14], 0xffffffff
cmp dword [esp + 0x5c], 0
je 0x47baea
lea ecx, [esp + 0x2c]
push ecx
push edi
call fcn.00424e80
add esp, 8
test eax, eax
je 0x47baea
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [ecx + 0x1c]
push eax
push edx
push 0x77
push ebp
call fcn.00432730
add esp, 0x14
jmp 0x47bbc6
mov eax, dword [esp + 0x24]
push eax
push edi
push ebx
call fcn.00480660
add esp, 0xc
cmp dword [esp + 0x5c], 0
mov edi, eax
je 0x47bb35
mov ecx, dword [ebp + 0x88]
push 0
add ecx, 2
push ecx
push edi
push 0x11
push ebp
call fcn.00432730
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x1c]
push edi
push edx
push ecx
push 0x76
push ebp
call fcn.00432730
add esp, 0x28
jmp 0x47bbc6
mov esi, dword [esp + 0x18]
push esi
push 1
push edi
push 0x65
push ebp
call fcn.00432730
mov ecx, dword [ebp]
add esp, 0x14
cmp byte [ecx + 0x49], 0
je 0x47bb61
push 1
lea eax, [esp + 0x54]
call fcn.0042d400
add esp, 4
jmp 0x47bb88
test eax, eax
jge 0x47bb6c
mov eax, dword [ebp + 0x88]
dec eax
mov ecx, dword [ebp + 0x58]
lea edx, [esp + 0x50]
lea eax, [eax + eax*4]
push edx
lea ecx, [ecx + eax*4]
push ebp
mov eax, 1
call fcn.0042d560
add esp, 8
push 1
push edi
push ebx
call fcn.00425290
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 0x1c]
push edi
push esi
push eax
push 0x81
push ebp
call fcn.00432730
mov ecx, dword [ebp]
add esp, 0x20
cmp byte [ecx + 0x49], 0
jne 0x47bbc6
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
lea eax, [eax + edx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], 1
mov eax, dword [esp + 0x20]
add dword [esp + 0x1c], 0x18
dec eax
mov dword [esp + 0x20], eax
test eax, eax
jg 0x47ba85
mov esi, dword [esp + 0x24]
mov eax, ebx
call fcn.004255e0
mov esi, dword [esp + 0x18]
call fcn.004255e0
cmp dword [esp + 0x10], 0
je 0x47bc4f
mov ecx, dword [ebp]
cmp byte [ecx + 0x49], 0
mov eax, dword [esp + 0x30]
je 0x47bc14
mov eax, dword [esp + 0x10]
push 0xfffffffffffffff7
call fcn.0042d400
add esp, 4
jmp 0x47bc4f
test eax, eax
jge 0x47bc1f
mov eax, dword [ebp + 0x88]
dec eax
mov edx, dword [ebp + 0x58]
lea ecx, [eax + eax*4]
cmp byte [edx + ecx*4 + 1], 0
lea ecx, [edx + ecx*4]
je 0x47bc44
mov eax, dword [esp + 0x10]
push eax
push ebp
mov eax, 0xfffffff7
call fcn.0042d560
add esp, 8
jmp 0x47bc4f
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x10], edx
mov byte [ecx + 1], 0xf7
mov eax, dword [esp + 0x58]
test eax, eax
je 0x47bc6a
push eax
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x1c]
push ecx
mov esi, ebp
call fcn.00433f10
add esp, 8
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x47bc94
mov edx, dword [ebp]
cmp byte [edx + 0x49], 0
mov ecx, dword [ebp + 0x88]
je 0x47bc88
mov eax, 0x4d39f8
jmp 0x47bc91
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov esi, ebx
call fcn.004252e0
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret