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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, edx
xor edx, edx
push ebx
push esi
push edi
mov edi, dword [eax + 0x20]
mov esi, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], edi
mov eax, dword [edi]
dec eax
mov dword [esp + 0x10], edx
test eax, eax
jle 0x480092
lea ebx, [edi + 0x78]
lea ecx, [edi + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], ecx
nop
cmp dword [ecx], 0
mov eax, dword [ebx - 0x18]
mov dword [esp + 0x24], eax
je 0x48003a
test eax, eax
je 0x48003a
mov al, byte [ebx - 4]
and al, 0x20
movzx eax, al
neg eax
sbb eax, eax
add eax, 2
test byte [ebx - 4], 4
mov dword [esp + 0x40], eax
je 0x47fd1b
mov eax, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
test dword [eax], 0x400
jne 0x48005b
cmp dword [eax + 8], ebx
jne 0x48005b
mov eax, dword [esp + 0x24]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x30], edx
cmp cx, word [eax + 0x22]
jge 0x47fd05
mov dword [esp + 0x1c], ecx
jmp 0x47fc44
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
test byte [eax + ecx + 0xe], 2
jne 0x47fcd7
mov eax, dword [eax + ecx]
xor esi, esi
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x10], esi
jl 0x47fcd3
add edi, 0x18
mov ebx, dword [edi]
mov edx, eax
mov ecx, ebx
call fcn.0047f940
test eax, eax
js 0x47fc7f
mov ecx, dword [ebx + 4]
add eax, eax
test byte [ecx + eax*8 + 0xe], 2
je 0x47fc8f
inc esi
add edi, 0x48
cmp esi, dword [esp + 0x10]
jg 0x47fcc7
mov eax, dword [esp + 0x3c]
jmp 0x47fc64
mov esi, dword [esp + 0x14]
mov ecx, esi
mov edx, dword [esp + 0x2c]
push 0
call fcn.0046b160
mov ebx, eax
add esp, 4
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x47fcbd
mov edx, dword [esp + 0x3c]
mov ecx, dword [esi]
call fcn.0041e440
mov ecx, dword [ebx]
mov dword [ebx + ecx*8], eax
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
jmp 0x47fcd7
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
add ecx, 0x10
inc dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
movsx eax, word [eax + 0x22]
cmp dword [esp + 0x30], eax
jl 0x47fc40
test ebx, ebx
je 0x47fd05
mov eax, dword [esp + 0x18]
or dword [eax], 0xc00
mov dword [eax + 8], ebx
cmp dword [esi + 0x24], 0
jne 0x48006b
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
test dword [ebx], 0x400
mov ecx, dword [ebx + 8]
je 0x480004
cmp dword [ecx], 0
mov eax, dword [esi]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], 0
jle 0x48003a
lea eax, [ecx + 8]
mov dword [esp + 0x48], eax
nop dword [eax]
mov ebx, dword [eax]
mov edx, ebx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x2c], ebx
call fcn.0047f940
mov dword [esp + 0x3c], eax
test eax, eax
js 0x480077
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
xor edx, edx
mov ecx, dword [ecx]
shr ecx, 0xb
and ecx, 1
push ecx
push eax
lea eax, [esp + 0x30]
mov ecx, edi
push eax
push ebx
push dword [esp + 0x20]
call fcn.0047f9e0
add esp, 0x14
test eax, eax
je 0x480077
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
push esi
push edi
call fcn.00454220
mov edx, dword [esp + 0x14]
lea ecx, [edi + edi*8]
add esp, 8
mov ebx, eax
mov dword [esp + 0x1c], ebx
test dword [edx + ecx*8 + 0x30], 0x1000
je 0x47fddd
mov ecx, dword [edx + ecx*8 + 0x1c]
lea eax, [esi + esi*4]
mov ecx, dword [ecx + 0x1c]
or dword [ecx + eax*4 + 0x14], 0x40
test byte [edx + 0x2c], 0x40
je 0x47ff67
mov eax, dword [esp + 0x18]
lea edx, [edi + 1]
mov edi, dword [esp + 0xc]
xor esi, esi
mov ecx, edi
mov eax, dword [eax]
shr eax, 0xb
and eax, 1
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x38]
push dword [esp + 0x20]
call fcn.0047f9e0
add esp, 0x14
test eax, eax
je 0x47ff69
mov ebx, dword [esp + 0x28]
lea eax, [ebx + ebx*8]
test dword [edi + eax*8 + 0x30], 0x400
lea edi, [edi + eax*8]
je 0x47ff1b
mov edx, dword [esp + 0x2c]
mov ecx, dword [edi + 0x38]
call fcn.0046b2c0
test eax, eax
js 0x47ff1b
test esi, esi
jne 0x47fe64
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
call fcn.00457ef0
mov esi, eax
jmp 0x47fea9
mov eax, dword [esi]
lea edx, [eax + 1]
cmp dword [esi + 4], edx
jge 0x47fe87
mov eax, dword [esp + 0x1c]
mov edx, esi
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
call fcn.00457f60
add esp, 4
mov esi, eax
jmp 0x47fea9
movups xmm0, xmmword [0x565b04]
lea eax, [eax + eax*4]
mov dword [esi], edx
lea ecx, [esi + eax*4]
mov eax, dword [0x565b14]
movups xmmword [ecx + 8], xmm0
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 8], eax
push dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
push ebx
call fcn.00454220
add esp, 8
mov dword [esp + 0x1c], eax
test dword [edi + 0x30], 0x1000
je 0x47fedd
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 0x20]
lea eax, [eax + eax*4]
or dword [ecx + eax*4 + 0x14], 0x40
mov eax, dword [esp + 0x18]
lea edx, [ebx + 1]
mov edi, dword [esp + 0xc]
mov ecx, edi
mov eax, dword [eax]
shr eax, 0xb
and eax, 1
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x38]
push dword [esp + 0x20]
call fcn.0047f9e0
add esp, 0x14
test eax, eax
jne 0x47fe21
mov ebx, dword [esp + 0x14]
jmp 0x47ff35
push dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
push str.ambiguous_reference_to__s_in_USING__
push ebx
call fcn.00421640
mov edi, dword [esp + 0x18]
add esp, 0xc
test esi, esi
je 0x47ff61
mov eax, dword [esp + 0x1c]
mov edx, esi
push eax
mov ecx, ebx
call fcn.00457ff0
add esp, 4
mov edx, eax
mov ecx, ebx
push 0
push 0x56a2b0
call fcn.00456da0
add esp, 8
mov ebx, eax
jmp 0x47ff69
mov ebx, dword [esp + 0x1c]
jmp 0x47ff69
mov edi, edx
mov eax, dword [esp + 0x10]
mov edx, edi
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
inc eax
push eax
call fcn.00454220
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x18]
test dword [eax], 0x1000
je 0x47ffa1
mov ecx, dword [eax - 0x14]
mov eax, dword [esp + 0x3c]
mov edx, dword [ecx + 0x1c]
lea ecx, [eax + eax*4]
or dword [edx + ecx*4 + 0x14], 0x40
mov ecx, dword [esp + 0x14]
mov edx, 0x35
push esi
push ebx
call fcn.00456af0
add esp, 8
test eax, eax
je 0x47ffc5
mov ecx, dword [esp + 0x40]
or dword [eax + 4], ecx
mov ecx, dword [esi + 0x1c]
mov dword [eax + 0x24], ecx
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
mov ecx, esi
push eax
mov edx, dword [ebx + 0x24]
call fcn.00456ce0
mov ecx, dword [esp + 0x48]
add esp, 4
mov edx, dword [esp + 0x4c]
inc ecx
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x48]
add eax, 8
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
cmp ecx, dword [edx]
jl 0x47fd50
mov ebx, dword [esp + 0x18]
jmp 0x480036
test ecx, ecx
je 0x48003a
mov edx, dword [ebx + 4]
push eax
call fcn.0047fa80
mov eax, dword [esp + 0x38]
add esp, 4
mov ecx, esi
push dword [ebx + 8]
mov edx, dword [eax + 0x24]
call fcn.00456ce0
mov ecx, dword [esp + 0x38]
add esp, 4
mov dword [ecx + 0x24], eax
mov dword [ebx + 8], 0
mov edx, dword [esp + 0x10]
mov eax, dword [edi]
inc edx
add dword [esp + 0x38], 0x48
add ebx, 0x48
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
cmp edx, eax
jge 0x480092
mov ecx, dword [esp + 0x38]
jmp 0x47fbd0
push 0
push str.a_NATURAL_join_may_not_have_an_ON_or_USING_clause
push esi
call fcn.00421640
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push str.cannot_join_using_column__s___column_not_present_in_both_tables
push esi
call fcn.00421640
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret