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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
mov eax, dword [ecx + 0xc]
push esi
push edi
mov edi, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], ecx
movzx eax, word [edi]
cmp ax, 0x40
jle 0x501ff0
push 0x40
push str.at_most__d_tables_in_a_join
push ecx
call fcn.004d6390
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx]
movsx esi, ax
shl esi, 6
add esi, 0x27
mov dword [esp + 0x2c], ecx
and esi, 0xfffffff8
lea edx, [esi + 0x264]
call fcn.004d4720
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
cmp byte [ecx + 0x1e], 0
jne 0x502422
movsx ecx, word [edi]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], edi
call fcn.004e2670
mov ecx, dword [esp + 0x10]
add esi, ecx
push 0x104
push 0
mov dword [esp + 0x3c], esi
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0x10]
mov word [ecx + 4], ax
lea eax, [esi + 0x160]
push eax
mov dword [ecx + 0x1c], esi
mov dword [esp + 0x60], eax
call fcn.005205e0
mov edx, dword [esp + 0x20]
lea eax, [esi + 0x160]
add esp, 0xc
mov ecx, esi
push eax
call fcn.004ff090
mov esi, dword [ebp + 8]
add esp, 4
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.004ee5a0
mov ecx, dword [esp + 0x34]
mov edx, esi
push 0x45
call fcn.004ff230
add esp, 4
test esi, esi
je 0x5020c7
cmp word [edi], 0
je 0x5020b0
mov ecx, esi
call fcn.004ec5e0
test eax, eax
je 0x5020c7
mov eax, dword [esp + 0x10]
mov edx, esi
mov ecx, dword [esp + 0x14]
push 8
push dword [eax + 0x14]
call fcn.004ee990
add esp, 8
xor eax, eax
xor esi, esi
cmp ax, word [edi]
jge 0x50211f
add edi, 0x14
mov edx, dword [edi + 0xc]
mov ecx, dword [esp + 0x54]
call fcn.004ff2c0
mov eax, dword [edi]
test eax, eax
je 0x50210c
test byte [eax + 0x22], 0x10
je 0x50210c
xor ecx, ecx
mov eax, esi
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [esp + 0x34]
cmovae edx, ecx
or dword [eax + 8], ecx
or dword [eax + 0xc], edx
mov eax, dword [esp + 0xc]
inc esi
add edi, 0x38
movsx eax, word [eax]
cmp esi, eax
jl 0x5020d3
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x34]
mov ecx, edi
call fcn.004ff670
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x1e], 0
jne 0x50241e
mov edx, dword [esp + 0xc]
xor ecx, ecx
mov edi, dword [esp + 0x10]
or eax, 0xffffffff
add edi, 0x20
mov dword [esp + 0x20], eax
or esi, 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x24], esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x44], edi
cmp cx, word [edx]
jge 0x502439
xorps xmm0, xmm0
mov dword [esp + 0x50], 1
movlpd qword [esp + 0x70], xmm0
or edi, 0xffffffff
movlpd qword [esp + 0x78], xmm0
movsd xmm0, qword [0x575b38]
mov dword [esp + 0x40], edi
movsd qword [esp + 0x60], xmm0
jmp 0x5021aa
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
test edi, edi
jns 0x502358
cmp dword [esp + 0x50], 0
je 0x5021d0
xorps xmm0, xmm0
movlpd qword [esp + 0x58], xmm0
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x58]
jmp 0x5021d4
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], eax
mov esi, ecx
lea eax, [ecx*8]
sub eax, ecx
inc eax
lea edi, [edx + eax*8]
movsx eax, word [edx]
cmp ecx, eax
jge 0x502349
mov edx, dword [esp + 0x10]
mov eax, ecx
add edx, 0x5c
shl eax, 6
add eax, edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x58], eax
nop dword [eax + eax]
mov al, byte [edi + 0x15]
and al, 0xa
mov byte [esp + 0x1f], al
cmp esi, ecx
je 0x502225
test al, al
jne 0x502349
mov edx, dword [edi + 0x18]
mov ecx, dword [esp + 0x54]
call fcn.004ff280
and eax, dword [esp + 0x20]
and edx, dword [esp + 0x24]
or eax, edx
jne 0x502253
mov ecx, dword [esp + 0x38]
cmp esi, ecx
jne 0x50232b
inc ecx
mov dword [esp + 0x38], ecx
jmp 0x50232b
cmp dword [esp + 0x30], 0
jne 0x502265
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x502265
mov ecx, dword [eax]
jmp 0x502267
xor ecx, ecx
mov eax, dword [edi + 0xc]
mov edx, dword [esp + 0x34]
test byte [eax + 0x22], 0x10
lea eax, [esp + 0xa0]
je 0x502298
push dword [esp + 0x58]
push eax
push ecx
push dword [esp + 0x54]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x5c]
push edi
call fcn.005008c0
add esp, 0x18
jmp 0x5022af
push eax
push ecx
push dword [esp + 0x50]
mov ecx, dword [esp + 0x20]
push dword [esp + 0x58]
push edi
call fcn.00500ad0
add esp, 0x14
mov ecx, dword [esp + 0xc0]
mov eax, dword [esp + 0xc4]
and ecx, dword [esp + 0x20]
and eax, dword [esp + 0x24]
or ecx, eax
mov ecx, dword [esp + 0x38]
jne 0x502324
cmp esi, ecx
je 0x5022e2
movsd xmm1, qword [esp + 0x60]
comisd xmm1, xmmword [esp + 0xb0]
jbe 0x502324
movaps xmm0, xmmword [esp + 0xa0]
movaps xmmword [esp + 0x70], xmm0
movaps xmm0, xmmword [esp + 0xb0]
movaps xmmword [esp + 0x80], xmm0
movq xmm0, qword [esp + 0xc0]
movq qword [esp + 0x90], xmm0
movsd xmm0, qword [esp + 0x80]
mov dword [esp + 0x40], esi
movsd qword [esp + 0x60], xmm0
cmp byte [esp + 0x1f], 0
jne 0x502345
mov edx, dword [esp + 0xc]
inc esi
add dword [esp + 0x58], 0x40
add edi, 0x38
movsx eax, word [edx]
cmp esi, eax
jl 0x502210
jmp 0x502349
mov edx, dword [esp + 0xc]
sub dword [esp + 0x50], 1
mov edi, dword [esp + 0x40]
jns 0x5021a2
mov edi, dword [esp + 0x70]
test edi, 0x1000000
je 0x50236d
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov esi, dword [esp + 0x44]
movq xmm0, qword [esp + 0x70]
and dword [esp + 0x18], edi
mov eax, dword [esp + 0x78]
movq qword [esi], xmm0
mov dword [esi + 8], eax
and edi, 0xf0000
je 0x50239d
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x44]
mov dword [esi + 0x14], eax
inc dword [ecx + 0x44]
jmp 0x5023a4
mov dword [esi + 0x14], 0xffffffff
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x54]
lea esi, [eax*8]
sub esi, eax
mov edx, dword [edx + esi*8 + 0x20]
call fcn.004ff280
not edx
not eax
and dword [esp + 0x24], edx
mov edx, dword [esp + 0x44]
and dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
mov byte [edx + 0x28], al
mov edx, dword [esp + 0xc]
mov eax, dword [edx + esi*8 + 0x3c]
test eax, eax
je 0x5023e5
test edi, edi
je 0x50240b
mov ecx, dword [esp + 0x30]
movsx eax, word [edx]
inc ecx
add dword [esp + 0x44], 0x40
mov dword [esp + 0x30], ecx
cmp ecx, eax
jge 0x502435
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
jmp 0x502174
push dword [eax]
push str.cannot_use_index:__s
push dword [esp + 0x1c]
call fcn.004d6390
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov edx, eax
call fcn.00501f40
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x40], 0
jne 0x50241e
mov ecx, dword [esp + 0x2c]
cmp byte [ecx + 0x1e], 0
jne 0x50241e
mov ecx, dword [esp + 0x18]
and ecx, 0x4000000
je 0x50246a
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x502466
mov dword [eax], 0
mov eax, dword [esp + 0x14]
test byte [ebp + 0x10], 4
je 0x502482
test ecx, ecx
je 0x502482
mov ecx, dword [esp + 0x10]
mov byte [ecx + 6], 1
and dword [edi], 0xff7fffff
or edx, 0xffffffff
mov ecx, eax
call fcn.004f2cf0
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0x30], 0
cmp ax, word [ecx]
jge 0x502620
jmp 0x5024b4
mov ecx, dword [esp + 0xc]
movzx eax, byte [edi + 0x28]
lea edi, [eax*8]
sub edi, eax
mov esi, dword [ecx + edi*8 + 0x14]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 0x40]
call fcn.004f8d20
test byte [esi + 0x22], 2
mov edx, eax
mov dword [esp + 0x18], edx
jne 0x5025fd
cmp dword [esi + 0x1c], 0
jne 0x5025fd
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
test ecx, 0x8000000
je 0x502526
mov ecx, dword [esp + 0x2c]
mov edx, esi
call fcn.004fe3c0
mov ecx, dword [esp + 0x3c]
mov edx, 0x7c
push 0xfffffffffffffff6
push eax
mov eax, dword [esp + 0x14]
push 0
push 0
push dword [eax + edi*8 + 0x20]
call fcn.004e2630
add esp, 0x14
jmp 0x5025a4
test ecx, 0x800000
jne 0x5025a4
test byte [ebp + 0x10], 0x10
jne 0x5025a4
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp byte [ecx + 6], al
mov ecx, dword [esp + 0x14]
setne al
add eax, 0x26
push eax
mov eax, dword [esp + 0x10]
push esi
push edx
mov edx, dword [eax + edi*8 + 0x20]
call fcn.004f5610
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp byte [eax + 6], 0
jne 0x5025a4
cmp dword [esi + 0xc], 0x40
jge 0x5025a4
mov eax, dword [esp + 0xc]
xor esi, esi
mov edx, dword [eax + edi*8 + 0x30]
mov ecx, dword [eax + edi*8 + 0x34]
mov eax, edx
or eax, ecx
je 0x50258d
nop
shrd edx, ecx, 1
inc esi
shr ecx, 1
mov eax, edx
or eax, ecx
jne 0x502580
mov ecx, dword [esp + 0x3c]
push 0xfffffffffffffff2
push esi
call fcn.004d8fe0
lea edx, [eax - 1]
call fcn.004e2af0
add esp, 8
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
test dword [ecx], 0xf0000
mov eax, dword [eax + edi*8 + 0x20]
mov dword [ecx + 0x10], eax
je 0x5025ee
mov esi, dword [ecx + 8]
mov edx, esi
mov ecx, dword [esp + 0x14]
call fcn.004f2df0
mov edi, dword [esp + 0x18]
mov edx, 0x26
mov ecx, dword [esp + 0x3c]
push 0xfffffffffffffff0
push eax
mov eax, dword [esp + 0x30]
push edi
push dword [esi + 0x14]
push dword [eax + 0x14]
call fcn.004e2630
add esp, 0x14
jmp 0x5025f2
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, edi
call fcn.004f2cf0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
inc ecx
add edi, 0x40
mov dword [esp + 0x30], ecx
movsx eax, word [eax]
mov dword [esp + 0x28], edi
cmp ecx, eax
jl 0x5024b0
mov ecx, dword [esp + 0x3c]
call fcn.004d8fe0
mov ecx, dword [esp + 0x10]
xor edi, edi
or edx, 0xffffffff
xor esi, esi
mov dword [ecx + 0xc], eax
or eax, 0xffffffff
mov ecx, dword [esp + 0xc]
cmp di, word [ecx]
jge 0x502683
mov ecx, dword [esp + 0x10]
lea edi, [ecx + 0x40]
jmp 0x502654
mov ecx, dword [esp + 0x10]
push edx
push eax
push dword [ebp + 0x10]
mov edx, esi
call fcn.005013d0
mov ecx, dword [edi]
lea edi, [edi + 0x40]
mov dword [esp + 0x24], eax
inc esi
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
movsx ecx, word [ecx]
cmp esi, ecx
jl 0x502650
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret