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

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0xc0
push ebx
mov ebx, dword [ebp + 0x70]
push edi
mov edi, dword [ebp + 0x6c]
mov eax, dword [edi + 0xc]
mov dword [ebp + 0x30], eax
movzx eax, word [ebx]
cmp ax, 0x40
jle 0x4f5887
push 0x40
push str.at_most__d_tables_in_a_join
call fcn.004cfc96
pop ecx
pop ecx
xor eax, eax
jmp 0x4f5df2
test byte [ebp + 0x7c], 0x80
je 0x4f5896
mov dword [ebp + 0x50], 1
jmp 0x4f589a
cwde
mov dword [ebp + 0x50], eax
mov eax, edi
mov edi, dword [ebp + 0x50]
mov eax, dword [eax]
imul edi, edi, 0x50
add edi, 0x37
and edi, 0xfffffff8
lea ecx, [edi + 0x264]
push esi
push ecx
mov dword [ebp + 0x44], eax
call fcn.004cef19
mov esi, eax
mov eax, dword [ebp + 0x44]
cmp byte [eax + 0x1e], 0
pop ecx
mov dword [ebp + 0x54], esi
je 0x4f58d6
push esi
push eax
call fcn.004bc8f7
pop ecx
jmp 0x4f5dee
mov eax, dword [ebp + 0x50]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x6c]
mov dword [esi], eax
mov eax, dword [ebp + 0x30]
mov dword [esi + 8], ebx
call fcn.004cb23f
mov dword [esi + 0x14], eax
mov ax, word [ebp + 0x7c]
mov word [esi + 4], ax
mov eax, dword [ebp + 0x6c]
add edi, esi
mov dword [esi + 0x1c], edi
fld qword [eax + 0x1c0]
push 0x104
fstp qword [esi + 0x20]
lea eax, [edi + 0x160]
push 0
push eax
mov dword [ebp + 0x28], edi
mov dword [ebp + 0x4c], eax
call fcn.0049d740
push dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x6c]
mov eax, edi
call fcn.004c2cd3
mov eax, dword [ebp + 0x6c]
add esp, 0x10
cmp dword [eax + 0x15c], 0
jne 0x4f5964
mov eax, dword [eax]
test byte [eax + 0xc], 0x40
jne 0x4f5964
mov eax, dword [ebp + 0x6c]
push dword [ebp + 0x74]
and dword [ebp], 0
mov dword [ebp + 4], eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0x4efe26
call fcn.004cbb3c
pop ecx
pop ecx
push 0x45
push dword [ebp + 0x74]
push edi
call fcn.004cd2b2
add esp, 0xc
cmp dword [ebp + 0x74], 0
je 0x4f59a1
cmp dword [ebp + 0x50], 0
je 0x4f598e
push dword [ebp + 0x74]
push 3
pop eax
call fcn.004cbfbd
pop ecx
test eax, eax
je 0x4f59a1
push 8
push dword [esi + 0x14]
push dword [ebp + 0x74]
push dword [ebp + 0x6c]
call fcn.004edefc
add esp, 0x10
and dword [ebp + 0x48], 0
xor eax, eax
cmp ax, word [ebx]
jge 0x4f59f7
lea eax, [ebx + 0x14]
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x4c]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x60]
mov edx, dword [edx + 0xc]
mov dword [eax + ecx*4 + 4], edx
inc dword [eax]
mov ecx, dword [ebp + 0x60]
mov ecx, dword [ecx]
test ecx, ecx
je 0x4f59e8
test byte [ecx + 0x22], 0x10
je 0x4f59e8
mov ecx, dword [ebp + 0x48]
xor eax, eax
inc eax
xor edx, edx
call fcn.004b56f0
or dword [edi + 8], eax
or dword [edi + 0xc], edx
mov eax, dword [ebp + 0x4c]
movsx ecx, word [ebx]
inc dword [ebp + 0x48]
add dword [ebp + 0x60], 0x38
cmp dword [ebp + 0x48], ecx
jl 0x4f59b5
push ebx
call fcn.004f5837
mov eax, dword [ebp + 0x44]
cmp byte [eax + 0x1e], 0
pop ecx
jne 0x4f5dd8
mov eax, dword [ebp + 0x50]
or dword [ebp + 0x58], 0xffffffff
or dword [ebp + 0x5c], 0xffffffff
or dword [ebp + 0x14], 0xffffffff
and dword [ebp + 0x40], 0
and dword [ebp + 0x48], 0
lea ebx, [esi + 0x30]
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0x3c], ebx
test eax, eax
jle 0x4f5ce1
dec eax
mov dword [ebp - 8], eax
or dword [ebp + 0x34], 0xffffffff
fld qword [0x532080]
xor eax, eax
push 0xa
pop ecx
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
fstp qword [ebp - 0x1c]
mov eax, dword [ebp + 0x40]
xor ecx, ecx
xor edx, edx
cmp eax, dword [ebp - 8]
mov dword [ebp + 0x18], ecx
setl dl
mov dword [ebp + 0x1c], ecx
mov dword [ebp + 0x20], ecx
cmp edx, ecx
mov dword [ebp + 0x60], edx
jl 0x4f5c33
jmp 0x4f5a74
mov eax, dword [ebp + 0x40]
cmp dword [ebp + 0x34], 0
jge 0x4f5c33
mov edx, dword [ebp + 0x70]
mov ecx, eax
imul ecx, ecx, 0x38
cmp eax, dword [ebp + 0x50]
mov dword [ebp + 0x38], eax
lea ebx, [ecx + edx + 8]
jge 0x4f5c2a
mov eax, dword [ebp + 0x40]
imul eax, eax, 0x50
lea eax, [eax + esi + 0x78]
mov dword [ebp + 0x24], eax
test byte [ebx + 0x15], 0xa
push 0
pop eax
setne al
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp + 0x40]
cmp dword [ebp + 0x38], eax
je 0x4f5ac2
cmp dword [ebp + 0x2c], 0
jne 0x4f5c2a
push dword [ebx + 0x18]
mov eax, dword [ebp + 0x4c]
call fcn.004c2cf5
pop ecx
mov ecx, edx
mov edi, eax
and eax, dword [ebp + 0x58]
mov dword [ebp + 8], ecx
and ecx, dword [ebp + 0x5c]
or eax, ecx
jne 0x4f5af3
mov eax, dword [ebp + 0x38]
cmp eax, dword [ebp + 0x40]
jne 0x4f5c14
inc dword [ebp + 0x40]
jmp 0x4f5c14
xor edx, edx
cmp dword [ebp + 0x60], edx
je 0x4f5b01
mov eax, dword [ebp + 8]
mov ecx, edi
jmp 0x4f5b07
mov ecx, dword [ebp + 0x58]
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x48], edx
jne 0x4f5b1a
mov eax, dword [ebp + 0x78]
cmp eax, edx
je 0x4f5b1a
mov eax, dword [eax]
jmp 0x4f5b1c
xor eax, eax
cmp dword [ebx + 0x34], edx
jne 0x4f5b24
inc dword [ebp + 0x18]
mov edx, dword [ebx + 0xc]
test byte [edx + 0x22], 0x10
lea edx, [ebp - 0x5c]
je 0x4f5b50
push dword [ebp + 0x24]
push edx
push eax
push dword [ebp + 0x5c]
push dword [ebp + 0x58]
push dword [ebp + 0x10]
push ecx
push ebx
push dword [ebp + 0x28]
push dword [ebp + 0x6c]
call fcn.004e1925
add esp, 0x28
jmp 0x4f5b6b
push edx
push eax
push dword [ebp + 0x5c]
push dword [ebp + 0x58]
push dword [ebp + 0x10]
push ecx
push ebx
push dword [ebp + 0x28]
push dword [ebp + 0x6c]
call fcn.004de885
add esp, 0x24
cmp dword [ebp + 0x60], 0
je 0x4f5b83
test dword [ebp - 0x5c], 0x100f3000
jne 0x4f5b83
mov eax, dword [ebp + 8]
or dword [ebp + 0x1c], edi
or dword [ebp + 0x20], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
and eax, dword [ebp + 0x58]
and ecx, dword [ebp + 0x5c]
or eax, ecx
jne 0x4f5c0e
xor edx, edx
cmp dword [ebp + 0x34], edx
jl 0x4f5bba
and edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
and ecx, dword [ebp + 0x20]
mov eax, edi
or eax, ecx
jne 0x4f5bba
mov eax, 0x100f3000
test dword [ebp - 0x34], eax
je 0x4f5bbf
test dword [ebp - 0x5c], eax
je 0x4f5c0e
jmp 0x4f5bbf
mov eax, 0x100f3000
cmp dword [ebp + 0x18], edx
je 0x4f5bce
cmp dword [ebx + 0x34], edx
je 0x4f5bce
test dword [ebp - 0x5c], eax
je 0x4f5c0e
cmp dword [ebp + 0x34], edx
jl 0x4f5bfa
fld qword [ebp - 0x1c]
fcomp qword [ebp - 0x44]
fnstsw ax
test ah, 0x41
je 0x4f5bfa
fld qword [ebp - 0x1c]
fcomp qword [ebp - 0x44]
fnstsw ax
test ah, 1
jne 0x4f5c0e
fld qword [ebp - 0x2c]
fcomp qword [ebp - 0x54]
fnstsw ax
test ah, 0x41
jne 0x4f5c0e
mov eax, dword [ebp + 0x38]
push 0xa
pop ecx
lea esi, [ebp - 0x5c]
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x54]
mov dword [ebp + 0x34], eax
cmp dword [ebp + 0x2c], 0
jne 0x4f5c2a
inc dword [ebp + 0x38]
mov eax, dword [ebp + 0x38]
add dword [ebp + 0x24], 0x50
add ebx, 0x38
cmp eax, dword [ebp + 0x50]
jl 0x4f5aa3
dec dword [ebp + 0x60]
jns 0x4f5a71
mov edx, dword [ebp - 0x34]
test edx, 0x1000000
je 0x4f5c44
mov eax, dword [ebp + 0x78]
and dword [eax], 0
mov eax, dword [ebp + 0x3c]
and dword [ebp + 0x14], edx
push 6
pop ecx
lea esi, [ebp - 0x34]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x6c]
test edx, 0x200f0000
je 0x4f5c6a
mov ecx, dword [edi + 0x44]
mov dword [eax + 0x20], ecx
inc dword [edi + 0x44]
jmp 0x4f5c6e
or dword [eax + 0x20], 0xffffffff
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x70]
imul eax, eax, 0x38
lea esi, [eax + ecx]
push dword [esi + 0x20]
mov eax, dword [ebp + 0x4c]
call fcn.004c2cf5
not eax
fld1
and dword [ebp + 0x58], eax
fcomp qword [ebp - 0x2c]
mov al, byte [ebp + 0x34]
pop ecx
mov ecx, dword [ebp + 0x3c]
mov byte [ecx + 0x34], al
not edx
and dword [ebp + 0x5c], edx
fnstsw ax
test ah, 0x41
jp 0x4f5cb4
fld qword [edi + 0x1c0]
fmul qword [ebp - 0x2c]
fstp qword [edi + 0x1c0]
mov esi, dword [esi + 0x3c]
test esi, esi
je 0x4f5cc8
test dword [ebp - 0x34], 0xf0000
je 0x4f5dc7
inc dword [ebp + 0x48]
mov eax, dword [ebp + 0x48]
add dword [ebp + 0x3c], 0x50
cmp eax, dword [ebp + 0x50]
mov esi, dword [ebp + 0x54]
jl 0x4f5a37
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x6c]
cmp dword [eax + 0x40], 0
jne 0x4f5dd8
mov eax, dword [ebp + 0x44]
cmp byte [eax + 0x1e], 0
jne 0x4f5dd8
mov eax, dword [ebp + 0x14]
and eax, 0x4000000
je 0x4f5d0f
mov ecx, dword [ebp + 0x78]
test ecx, ecx
je 0x4f5d0f
and dword [ecx], 0
test byte [ebp + 0x7c], 4
je 0x4f5d23
test eax, eax
je 0x4f5d23
and dword [ebx], 0xff7fffff
mov byte [esi + 6], 1
mov eax, dword [ebp + 0x6c]
or esi, 0xffffffff
call fcn.004ec85b
fld1
mov eax, dword [ebp + 0x54]
fstp qword [eax + 0x28]
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x58], esi
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x3c], ebx
test eax, eax
jle 0x4f5efc
mov dword [ebp + 0x2c], eax
movzx eax, byte [ebx + 0x34]
fld qword [ebx + 8]
mov ecx, dword [ebp + 0x70]
imul eax, eax, 0x38
lea edi, [eax + ecx + 8]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x18]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [ebp + 0x54]
mov dword [ebp + 0x4c], eax
fmul qword [ecx + 0x28]
fstp qword [ecx + 0x28]
mov esi, dword [eax + 0x44]
mov ecx, dword [ebp + 0x44]
call fcn.004c24d9
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x4c]
test byte [eax + 0x22], 2
jne 0x4f5e7b
xor edx, edx
cmp dword [eax + 0x1c], edx
jne 0x4f5e7b
mov ecx, dword [ebx]
test ecx, 0x8000000
je 0x4f5df9
push 0xfffffffffffffff6
push dword [ebp + 0x44]
call fcn.004c2b82
pop ecx
push eax
push edx
push edx
push dword [edi + 0x18]
push dword [ebp + 0x30]
push 0x7f
pop eax
call fcn.004d0fda
add esp, 0x18
jmp 0x4f5e7b
push dword [esi]
push str.cannot_use_index:__s
call fcn.004cfc96
pop ecx
pop ecx
mov esi, dword [ebp + 0x54]
fld qword [esi + 0x20]
mov eax, dword [ebp + 0x6c]
push dword [ebp + 0x44]
fstp qword [eax + 0x1c0]
mov ebx, esi
call fcn.004cd6e2
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
add ebp, 0x64
leave
ret
test ecx, 0x800000
jne 0x4f5e64
test byte [ebp + 0x7c], 0x10
jne 0x4f5e64
mov ecx, dword [ebp + 0x54]
mov esi, dword [ebp + 0x4c]
xor eax, eax
cmp byte [ecx + 6], al
setne al
add eax, 0x26
push eax
push dword [ebp + 0x60]
push dword [edi + 0x18]
push dword [ebp + 0x6c]
call fcn.004d89d9
mov eax, dword [ebp + 0x54]
add esp, 0x10
cmp byte [eax + 6], 0
jne 0x4f5e7b
mov eax, esi
cmp dword [eax + 8], 0x40
jge 0x4f5e7b
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
xor edx, edx
jmp 0x4f5e4c
shrd eax, ecx, 1
shr ecx, 1
inc edx
mov esi, eax
or esi, ecx
jne 0x4f5e45
mov ecx, dword [ebp + 0x30]
mov eax, dword [ecx + 0x1c]
push 0xfffffffffffffff2
push edx
dec eax
push ecx
call fcn.004cb480
jmp 0x4f5e78
push dword [eax]
mov ebx, dword [eax + 0x14]
mov eax, dword [ebp + 0x6c]
push edx
push dword [ebp + 0x60]
call fcn.004cc46a
mov ebx, dword [ebp + 0x3c]
add esp, 0xc
mov eax, dword [ebx]
test eax, 0x20000000
je 0x4f5e9c
push ebx
push dword [ebp + 0x5c]
push dword [ebp + 0x58]
push edi
push dword [ebp + 0x28]
push dword [ebp + 0x6c]
call fcn.004e1593
add esp, 0x18
jmp 0x4f5ec9
test eax, 0xf0000
je 0x4f5ec9
mov esi, dword [ebx + 0x10]
push esi
push dword [ebp + 0x6c]
call fcn.004dc856
push 0xfffffffffffffff0
push eax
push dword [ebp + 0x60]
push dword [esi + 0x14]
push dword [ebx + 0x20]
push dword [ebp + 0x30]
push 0x26
pop eax
call fcn.004d0fda
add esp, 0x20
mov esi, dword [ebp + 0x60]
mov eax, dword [ebp + 0x6c]
call fcn.004ec85b
mov eax, dword [ebp + 0x28]
push dword [edi + 0x18]
mov eax, dword [eax + 4]
call fcn.004c2cf5
not eax
and dword [ebp + 0x58], eax
not edx
and dword [ebp + 0x5c], edx
add ebx, 0x50
dec dword [ebp + 0x2c]
pop ecx
mov dword [ebp + 0x3c], ebx
jne 0x4f5d4d
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp + 0x54]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0x44]
cmp byte [eax + 0x1e], 0
jne 0x4f5dd5
or dword [ebp + 0x58], 0xffffffff
or dword [ebp + 0x5c], 0xffffffff
xor edi, edi
cmp dword [ebp + 0x50], edi
mov ebx, ecx
jle 0x4f5f68
lea esi, [ebx + 0x5c]
push dword [ebp + 0x7c]
movzx eax, byte [esi + 8]
push eax
push edi
lea eax, [esi - 0x2c]
push eax
push dword [ebp + 0x70]
mov eax, dword [ebp + 0x6c]
call fcn.004d4a7a
push dword [ebp + 0x5c]
push dword [ebp + 0x58]
push dword [ebp + 0x7c]
push edi
push ebx
call fcn.004f098e
add esp, 0x28
mov dword [ebp + 0x58], eax
mov eax, dword [esi]
inc edi
add esi, 0x50
cmp edi, dword [ebp + 0x50]
mov dword [ebp + 0x5c], edx
mov dword [ebx + 0x10], eax
jl 0x4f5f29
mov eax, ebx
jmp 0x4f5df1