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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
mov ebx, edx
push 0x40
movzx ecx, word [ebx]
mov dword [esp + 0x28], eax
pop eax
mov dword [esp + 0x14], esi
cmp cx, ax
jle 0x4399a5
push eax
push str.at_most__d_tables_in_a_join
push esi
call fcn.004090e9
add esp, 0xc
jmp 0x439e52
mov eax, dword [esi]
movsx edi, cx
shl edi, 6
add edi, 0x27
and edi, 0xfffffff8
mov ecx, eax
lea edx, [edi + 0x264]
mov dword [esp + 0x10], eax
call fcn.0040784b
mov ecx, dword [esp + 0x10]
mov edx, eax
cmp byte [ecx + 0x1e], 0
mov dword [esp + 0x1c], edx
jne 0x439e4d
movsx ecx, word [ebx]
mov dword [edx + 0x18], ecx
mov ecx, dword [esp + 0x24]
mov dword [edx], esi
mov dword [edx + 8], ebx
call fcn.004162ae
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x14], eax
lea eax, [ecx + edi]
push 0x104
mov dword [esp + 0x34], eax
mov dword [ecx + 0x1c], eax
add eax, 0x160
xor edi, edi
push edi
push eax
mov word [ecx + 4], dx
mov dword [esp + 0x48], eax
call fcn.00558fd0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov edx, esi
push dword [esp + 0x3c]
call fcn.00436ab6
mov edx, dword [ebp + 8]
add esp, 4
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], 0x4227b1
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], esi
call fcn.0041ed87
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x30]
push 0x43
call fcn.00436bf7
pop ecx
cmp dword [ebp + 8], edi
je 0x439a89
cmp word [ebx], di
je 0x439a74
mov ecx, dword [ebp + 8]
push 3
pop edx
call fcn.00420fb5
test eax, eax
je 0x439a89
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
push 8
push dword [ecx + 0x14]
mov ecx, esi
call fcn.00422b3d
pop ecx
pop ecx
xor eax, eax
cmp ax, word [ebx]
jge 0x439af7
lea edx, [ebx + 0x14]
mov dword [esp + 0xc], edx
mov esi, edi
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov eax, dword [edx + 0xc]
mov edx, dword [esp + 0x3c]
mov dword [edx + ecx*4 + 4], eax
mov eax, edx
mov edx, dword [esp + 0xc]
inc dword [eax]
mov eax, dword [edx]
test eax, eax
je 0x439ae4
test byte [eax + 0x22], 0x10
je 0x439ae4
xor ecx, ecx
lea eax, [edi + esi]
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [esp + 0x30]
cmovae edx, ecx
or dword [eax + 8], ecx
or dword [eax + 0xc], edx
mov edx, dword [esp + 0xc]
movsx eax, word [ebx]
inc esi
add edx, 0x38
mov dword [esp + 0xc], edx
cmp esi, eax
jl 0x439a99
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x14]
dec eax
js 0x439b19
mov esi, eax
mov edx, ecx
push esi
mov ecx, ebx
call fcn.004375a8
dec esi
pop ecx
mov ecx, dword [esp + 0x30]
jns 0x439b03
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
cmp byte [edx + 0x1e], 0
mov edx, dword [esp + 0x1c]
jne 0x439e49
movsx ecx, word [ebx]
or eax, 0xffffffff
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], eax
lea eax, [edx + 0x20]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
test ecx, ecx
jle 0x439d61
movsd xmm0, qword [0x5b5be8]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x50], edi
xor eax, eax
push 8
pop ecx
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x4c]
mov eax, ecx
imul eax, eax, 0x38
lea edi, [ebx + 8]
add edi, eax
movsx eax, word [ebx]
movsd qword [esp + 0x68], xmm0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], edi
cmp ecx, eax
jge 0x439cba
mov eax, ecx
shl eax, 6
add eax, 0x5c
add eax, edx
mov dword [esp + 0x54], eax
test byte [edi + 0x15], 0xa
push 0
pop eax
setne al
cmp dword [esp + 0x50], 0
mov dword [esp + 0x44], eax
je 0x439bc5
test eax, eax
jne 0x439cb2
mov edx, dword [edi + 0x18]
mov ecx, dword [esp + 0x3c]
call fcn.00436c34
and eax, dword [esp + 0x40]
and edx, dword [esp + 0x48]
or eax, edx
jne 0x439bf7
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x4c]
cmp ecx, eax
jne 0x439c96
inc eax
mov dword [esp + 0x4c], eax
jmp 0x439c96
cmp dword [esp + 0x34], 0
jne 0x439c09
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x439c09
mov ecx, dword [eax]
jmp 0x439c0b
xor ecx, ecx
mov eax, dword [edi + 0xc]
mov edx, dword [esp + 0x30]
test byte [eax + 0x22], 0x10
lea eax, [esp + 0x78]
je 0x439c37
push dword [esp + 0x54]
push eax
push ecx
push dword [esp + 0x54]
mov ecx, esi
push dword [esp + 0x50]
push edi
call fcn.00438162
add esp, 0x18
jmp 0x439c4c
push eax
push ecx
push dword [esp + 0x50]
mov ecx, esi
push dword [esp + 0x4c]
push edi
call fcn.004382c3
add esp, 0x14
cmp dword [esp + 0x50], 0
je 0x439c64
movsd xmm0, qword [esp + 0x68]
comisd xmm0, xmmword [esp + 0x88]
jbe 0x439c8b
push 8
pop ecx
lea esi, [esp + 0x78]
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x50], 1
mov dword [esp + 0x2c], ecx
jmp 0x439c8f
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0x44], 0
jne 0x439cb2
movsx eax, word [ebx]
add dword [esp + 0x54], 0x40
inc ecx
add edi, 0x38
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], edi
cmp ecx, eax
jl 0x439ba8
movsd xmm0, qword [0x5b5be8]
mov eax, dword [esp + 0x58]
test eax, 0x1000000
je 0x439ccb
mov ecx, dword [ebp + 0xc]
and dword [ecx], 0
mov ecx, dword [esp + 0x28]
and dword [esp + 0x38], eax
lea esi, [esp + 0x58]
mov edi, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and eax, 0xf0000
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x44], eax
je 0x439cf6
mov eax, dword [edi + 0x44]
mov dword [ecx + 0x14], eax
inc dword [edi + 0x44]
jmp 0x439cfa
or dword [ecx + 0x14], 0xffffffff
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
imul esi, esi, 0x38
mov edx, dword [esi + ebx + 0x20]
call fcn.00436c34
mov ecx, dword [esp + 0x28]
not eax
and dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
not edx
and dword [esp + 0x48], edx
mov byte [ecx + 0x28], al
mov eax, dword [esi + ebx + 0x3c]
test eax, eax
je 0x439d38
cmp dword [esp + 0x44], 0
je 0x439e35
mov edx, dword [esp + 0x34]
movsx eax, word [ebx]
mov esi, dword [esp + 0x14]
inc edx
add ecx, 0x40
xor edi, edi
mov dword [esp + 0x34], edx
cmp edx, eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
jl 0x439b60
mov eax, dword [esp + 0x20]
cmp dword [esi + 0x40], edi
jne 0x439e49
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x1e], 0
jne 0x439e4d
mov ecx, dword [esp + 0x38]
and ecx, 0x4000000
mov dword [esp + 0x38], ecx
je 0x439d95
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x439d91
mov dword [ecx], edi
mov ecx, dword [esp + 0x38]
test byte [ebp + 0x10], 4
je 0x439da9
test ecx, ecx
je 0x439da9
mov byte [edx + 6], 1
and dword [eax], 0xff7fffff
or edx, 0xffffffff
mov ecx, esi
call fcn.00427ed1
xor eax, eax
mov dword [esp + 0x2c], edi
cmp ax, word [ebx]
jge 0x43a083
cmp byte [esi + 0x1bc], 2
jne 0x439eeb
mov eax, dword [esp + 0x20]
movzx esi, byte [eax + 0x28]
imul esi, esi, 0x38
push dword [esi + ebx + 0xc]
push str.TABLE__s
push dword [esp + 0x18]
call fcn.00408819
mov ecx, eax
mov eax, dword [esi + ebx + 0x10]
add esp, 0xc
test eax, eax
je 0x439e0f
push eax
push ecx
push str._s_AS__s
push ecx
push dword [esp + 0x20]
call fcn.0040882e
add esp, 0x14
mov ecx, eax
mov esi, dword [esp + 0x20]
test dword [esi], 0xf0000
je 0x439e5b
mov eax, dword [esi + 8]
push dword [eax]
push ecx
push str._s_WITH_INDEX__s
push ecx
push dword [esp + 0x20]
call fcn.0040882e
add esp, 0x14
jmp 0x439eac
push dword [eax]
push str.cannot_use_index:__s
push edi
call fcn.004090e9
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x10]
call fcn.00439903
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [esi], 0x10000000
je 0x439e78
push ecx
push str._s_VIA_MULTI_INDEX_UNION
push ecx
push dword [esp + 0x1c]
call fcn.0040882e
add esp, 0x10
jmp 0x439eac
test dword [esi], 0x3000
je 0x439e88
push ecx
push str._s_USING_PRIMARY_KEY
jmp 0x439e69
test dword [esi], 0x8000000
je 0x439eae
mov eax, dword [esi + 8]
push dword [eax + 0x18]
push dword [eax + 0x14]
push ecx
push str._s_VIRTUAL_TABLE_INDEX__d:_s
push ecx
push dword [esp + 0x24]
call fcn.0040882e
add esp, 0x18
mov ecx, eax
test dword [esi], 0x1000000
je 0x439ecb
push ecx
push str._s_ORDER_BY
push ecx
push dword [esp + 0x1c]
call fcn.0040882e
add esp, 0x10
mov ecx, eax
movzx eax, byte [esi + 0x28]
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x2c]
push edi
push eax
push dword [esp + 0x3c]
push 0x73
pop edx
call fcn.0041627b
mov esi, dword [esp + 0x28]
add esp, 0x14
mov eax, dword [esp + 0x20]
mov ecx, dword [esi]
movzx eax, byte [eax + 0x28]
imul eax, eax, 0x38
mov dword [esp + 0xc], eax
mov eax, dword [eax + ebx + 0x14]
mov dword [esp + 0x18], eax
mov edx, dword [eax + 0x48]
call fcn.0042f0f8
mov edx, dword [esp + 0x18]
mov ecx, eax
test byte [edx + 0x22], 2
mov dword [esp + 0x34], ecx
jne 0x43a06a
cmp dword [edx + 0x1c], edi
jne 0x43a06a
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
test eax, 0x8000000
je 0x439f6b
mov esi, dword [edx + 0x38]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
push edi
push edi
push dword [edx + ebx + 0x20]
push 0x20
pop edx
call fcn.00416227
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, eax
push 0xfffffffffffffff6
push esi
call fcn.00416610
mov esi, dword [esp + 0x1c]
pop ecx
pop ecx
jmp 0x43a016
test eax, 0x800000
jne 0x43a003
test byte [ebp + 0x10], 0x10
jne 0x43a003
mov ecx, dword [esp + 0x1c]
push 0xd
cmp byte [ecx + 6], 0
pop eax
push 0xa
pop ecx
cmovne eax, ecx
push eax
push edx
mov edx, dword [esp + 0x14]
push dword [esp + 0x3c]
mov edx, dword [edx + ebx + 0x20]
mov ecx, esi
call fcn.0042a84d
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp byte [eax + 6], 0
jne 0x43a016
mov eax, dword [esp + 0x18]
cmp dword [eax + 0xc], 0x40
jge 0x43a016
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], edi
mov edx, dword [eax + ebx + 0x30]
mov ecx, dword [eax + ebx + 0x34]
mov eax, edx
or eax, ecx
je 0x439fea
mov esi, edi
shrd edx, ecx, 1
shr ecx, 1
mov eax, edx
inc esi
or eax, ecx
jne 0x439fd5
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push 0xfffffffffffffff2
mov edx, dword [eax + 0xc]
push dword [esp + 0x2c]
dec edx
mov ecx, eax
call fcn.00416610
pop ecx
pop ecx
jmp 0x43a016
push dword [edx + 4]
push edi
push dword [edx + 0x18]
mov edx, ecx
mov ecx, esi
call fcn.00424ca2
add esp, 0xc
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + ebx + 0x20]
test dword [ecx], 0xf0000
mov dword [ecx + 0x10], eax
je 0x43a05f
mov esi, dword [ecx + 8]
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.004281ae
mov ecx, dword [esp + 0x24]
push 0xfffffffffffffff0
push eax
push dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
push dword [esi + 0x14]
push dword [eax + 0x14]
push 0xd
pop edx
call fcn.0041627b
mov esi, dword [esp + 0x28]
add esp, 0x14
mov edx, dword [esp + 0x34]
mov ecx, esi
call fcn.00427ed1
mov ecx, dword [esp + 0x2c]
movsx eax, word [ebx]
add dword [esp + 0x20], 0x40
inc ecx
mov dword [esp + 0x2c], ecx
cmp ecx, eax
jl 0x439dc2
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
or ecx, 0xffffffff
xor eax, eax
mov edx, ecx
cmp ax, word [ebx]
jge 0x43a0d5
lea eax, [esi + 0x40]
mov dword [esp + 0x18], eax
push edx
push ecx
push dword [ebp + 0x10]
mov edx, edi
mov ecx, esi
call fcn.00438cb0
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
movsx ecx, word [ebx]
inc edi
add eax, 0x40
cmp edi, ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x18], eax
jl 0x43a0a4
mov eax, esi
jmp 0x439e54