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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
mov ebx, ecx
mov eax, edx
push esi
push edi
push 0x40
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x30], eax
movzx eax, word [eax]
mov dword [esp + 0x5c], ecx
pop ecx
mov dword [esp + 0x60], ebx
cmp ax, cx
jle 0x4f1992
push ecx
push str.at_most__d_tables_in_a_join
push ebx
call fcn.004b8dec
add esp, 0xc
jmp 0x4f221c
test byte [ebp + 0x10], 0x80
je 0x4f199d
xor eax, eax
inc eax
jmp 0x4f199e
cwde
mov ecx, dword [ebx]
imul edi, eax, 0x50
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
add edi, 0x37
and edi, 0xfffffff8
lea edx, [edi + 0x264]
call fcn.004b7392
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], esi
cmp byte [eax + 0x1e], 0
je 0x4f19da
push esi
push eax
call fcn.004b71f7
pop ecx
pop ecx
jmp 0x4f221c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x58]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esi], ebx
mov dword [esi + 8], eax
call fcn.004c9daa
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x14], eax
lea eax, [esi + edi]
mov dword [esi + 0x1c], eax
xor edi, edi
push 0x104
mov dword [esp + 0x28], eax
add eax, 0x160
mov word [esi + 4], cx
fld qword [ebx + 0x1c0]
push edi
push eax
fstp qword [esi + 0x20]
mov dword [esp + 0x4c], eax
call sub.MSVCR120.dll_memset
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, ebx
push dword [esp + 0x40]
call fcn.004ee053
add esp, 4
cmp dword [ebx + 0x15c], edi
jne 0x4f1a74
mov eax, dword [ebx]
test byte [eax + 0xc], 0x40
jne 0x4f1a74
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x80]
mov dword [esp + 0x80], 0x4d7373
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], ebx
call fcn.004d3684
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x24]
push 0x45
call fcn.004ee192
pop ecx
cmp dword [ebp + 8], edi
je 0x4f1aae
cmp dword [esp + 0x18], edi
je 0x4f1a9d
mov ecx, dword [ebp + 8]
push 3
pop edx
call fcn.004d5994
test eax, eax
je 0x4f1aae
mov edx, dword [ebp + 8]
mov ecx, ebx
push 8
push dword [esi + 0x14]
call fcn.004d7797
pop ecx
pop ecx
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ax, word [ecx]
jge 0x4f1b25
mov ebx, dword [esp + 0x24]
lea edx, [ecx + 0x14]
mov dword [esp + 0x54], edx
mov esi, edi
mov ecx, dword [ebx + 0x160]
mov eax, dword [edx + 0xc]
mov dword [ebx + ecx*4 + 0x164], eax
inc dword [ebx + 0x160]
mov eax, dword [edx]
test eax, eax
je 0x4f1b0a
test byte [eax + 0x22], 0x10
je 0x4f1b0a
xor ecx, ecx
lea eax, [edi + esi]
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
or dword [ebx + 8], ecx
or dword [ebx + 0xc], edx
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x2c]
inc esi
add edx, 0x38
mov dword [esp + 0x54], edx
movsx eax, word [ecx]
cmp esi, eax
jl 0x4f1ac6
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x14]
dec eax
mov dword [esp + 0x1c], eax
js 0x4f1b51
mov ebx, dword [esp + 0x24]
mov esi, eax
push esi
mov edx, ebx
call fcn.004eebba
dec esi
pop ecx
mov ecx, dword [esp + 0x2c]
jns 0x4f1b39
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x1e], 0
jne 0x4f2206
mov edx, dword [esp + 0x18]
lea eax, [esi + 0x30]
fld1
or ecx, 0xffffffff
mov dword [esp + 0x54], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], eax
test edx, edx
jle 0x4f1f4a
lea eax, [edx - 1]
mov dword [esp + 0x7c], eax
fld qword [0x5a4a60]
lea edi, [esp + 0x90]
xor eax, eax
mov dword [esp + 0x5c], ecx
push 0xa
pop ecx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x48]
xor edi, edi
cmp ecx, dword [esp + 0x7c]
fst qword [esp + 0x80]
setl al
mov dword [esp + 0x6c], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x64], eax
fstp qword [esp + 0xa8]
test eax, eax
js 0x4f1e99
fstp st(0)
fld qword [esp + 0x98]
cmp dword [esp + 0x5c], 0
jge 0x4f1e5a
imul eax, ecx, 0x38
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x2c]
add ecx, 8
add ecx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x44], ecx
cmp eax, edx
jge 0x4f1e4c
imul eax, eax, 0x50
add eax, 0x78
add eax, esi
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
test byte [ecx + 0x15], 0xa
push 0
pop ebx
setne bl
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x60]
cmp eax, dword [esp + 0x48]
je 0x4f1c4c
cmp dword [esp + 0x1c], 0
jne 0x4f1e48
mov edx, dword [ecx + 0x18]
mov ecx, dword [esp + 0x40]
call fcn.004ee1cf
mov ecx, edx
mov dword [esp + 0x70], eax
mov edx, dword [esp + 0x3c]
mov esi, eax
mov dword [esp + 0x68], ecx
and esi, edx
and ecx, dword [esp + 0x30]
or esi, ecx
jne 0x4f1c8c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jne 0x4f1e21
inc ecx
mov dword [esp + 0x48], ecx
jmp 0x4f1e21
cmp dword [esp + 0x64], 0
fstp st(0)
je 0x4f1c9d
mov esi, dword [esp + 0x68]
mov edx, eax
jmp 0x4f1ca1
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x34], 0
jne 0x4f1cb3
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4f1cb3
mov ecx, dword [eax]
jmp 0x4f1cb5
mov ecx, edi
mov eax, dword [esp + 0x44]
cmp dword [eax + 0x34], edi
jne 0x4f1cc2
inc dword [esp + 0x6c]
mov eax, dword [eax + 0xc]
test byte [eax + 0x22], 0x10
lea eax, [esp + 0xb8]
je 0x4f1cf6
push dword [esp + 0x50]
push eax
push ecx
push dword [esp + 0x3c]
mov ecx, ebx
push dword [esp + 0x4c]
push esi
push edx
push dword [esp + 0x60]
mov edx, dword [esp + 0x44]
call fcn.004efc8f
add esp, 0x20
jmp 0x4f1d14
push eax
push ecx
push dword [esp + 0x38]
mov ecx, ebx
push dword [esp + 0x48]
push esi
push edx
push dword [esp + 0x5c]
mov edx, dword [esp + 0x40]
call fcn.004efe5b
add esp, 0x1c
cmp dword [esp + 0x64], 0
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x68]
je 0x4f1d38
test dword [esp + 0xb8], 0x100f3000
jne 0x4f1d38
or dword [esp + 0x78], edx
or dword [esp + 0x74], esi
mov ecx, dword [esp + 0xd8]
mov eax, dword [esp + 0xdc]
and ecx, dword [esp + 0x3c]
and eax, dword [esp + 0x30]
or ecx, eax
jne 0x4f1e0f
mov ecx, dword [esp + 0x5c]
test ecx, ecx
js 0x4f1d88
and edx, dword [esp + 0x78]
and esi, dword [esp + 0x74]
or edx, esi
jne 0x4f1d88
test dword [esp + 0x90], 0x100f3000
je 0x4f1d88
test dword [esp + 0xb8], 0x100f3000
je 0x4f1e0f
cmp dword [esp + 0x6c], 0
je 0x4f1da5
mov eax, dword [esp + 0x44]
cmp dword [eax + 0x34], edi
je 0x4f1da5
test dword [esp + 0xb8], 0x100f3000
je 0x4f1e0f
test ecx, ecx
js 0x4f1ddb
fld qword [esp + 0xd0]
fld qword [esp + 0x80]
fcomi st(1)
ja 0x4f1dd7
fcompi st(1)
fstp st(0)
jb 0x4f1e0f
fld qword [esp + 0xc0]
fld qword [esp + 0x98]
fcomi st(1)
fstp st(1)
jbe 0x4f1e16
jmp 0x4f1dd9
fstp st(1)
fstp st(0)
mov eax, dword [esp + 0x10]
lea esi, [esp + 0xb8]
push 0xa
pop ecx
lea edi, [esp + 0x90]
mov dword [esp + 0x5c], eax
rep movsd dword es:[edi], dword [esi]
fld qword [esp + 0xa8]
xor edi, edi
fstp qword [esp + 0x80]
fld qword [esp + 0x98]
jmp 0x4f1e1a
fld qword [esp + 0x98]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x1c], 0
jne 0x4f1e44
mov ecx, dword [esp + 0x44]
inc eax
add dword [esp + 0x50], 0x50
add ecx, 0x38
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], ecx
cmp eax, edx
jl 0x4f1c29
jmp 0x4f1e48
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
dec dword [esp + 0x64]
mov ecx, dword [esp + 0x48]
jns 0x4f1bee
fld1
fxch st(1)
mov eax, dword [esp + 0x90]
test eax, 0x1000000
je 0x4f1e71
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
mov edx, dword [esp + 0x38]
lea esi, [esp + 0x90]
and dword [esp + 0x20], eax
mov edi, edx
push 6
pop ecx
rep movsd dword es:[edi], dword [esi]
test eax, 0x200f0000
je 0x4f1ea2
mov eax, dword [ebx + 0x44]
mov dword [edx + 0x20], eax
inc dword [ebx + 0x44]
jmp 0x4f1ea8
fld qword [esp + 0x98]
jmp 0x4f1e5e
or eax, 0xffffffff
mov dword [edx + 0x20], eax
imul esi, dword [esp + 0x5c], 0x38
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esi + edi + 0x20]
call fcn.004ee1cf
mov ecx, dword [esp + 0x38]
not eax
and dword [esp + 0x3c], eax
not edx
and dword [esp + 0x30], edx
fcomi st(1)
mov eax, dword [esp + 0x5c]
mov byte [ecx + 0x34], al
jb 0x4f1eeb
fstp st(1)
fmul qword [ebx + 0x1c0]
fstp qword [ebx + 0x1c0]
fld1
jmp 0x4f1eed
fstp st(0)
mov eax, dword [esi + edi + 0x3c]
test eax, eax
je 0x4f1f02
test dword [esp + 0x90], 0xf0000
je 0x4f1f26
mov eax, dword [esp + 0x34]
add ecx, 0x50
mov edx, dword [esp + 0x18]
inc eax
mov esi, dword [esp + 0x28]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
cmp eax, edx
jge 0x4f1f41
or ecx, 0xffffffff
jmp 0x4f1b9a
push dword [eax]
fstp st(0)
push str.cannot_use_index:__s
push ebx
call fcn.004b8dec
add esp, 0xc
mov eax, dword [esp + 0x14]
jmp 0x4f2208
mov eax, dword [esp + 0x4c]
xor edi, edi
or ecx, 0xffffffff
fstp st(0)
cmp dword [ebx + 0x40], edi
jne 0x4f1f38
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x1e], 0
jne 0x4f2206
mov edx, dword [esp + 0x20]
and edx, 0x4000000
je 0x4f1f7e
cmp dword [ebp + 0xc], 0
mov ecx, dword [esp + 0x54]
je 0x4f1f7e
mov ebx, dword [ebp + 0xc]
mov dword [ebx], edi
mov ebx, dword [esp + 0x60]
test byte [ebp + 0x10], 4
je 0x4f1f92
test edx, edx
je 0x4f1f92
mov byte [esi + 6], 1
and dword [eax], 0xff7fffff
mov edx, ecx
mov ecx, ebx
call fcn.004dd332
fld1
or edx, 0xffffffff
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], edx
fstp qword [esi + 0x28]
test ecx, ecx
jle 0x4f2190
mov dword [esp + 0x50], ecx
lea edx, [esi + 0x30]
movzx eax, byte [edx + 0x34]
mov ecx, dword [esp + 0x2c]
fld qword [edx + 8]
add ecx, 8
imul eax, eax, 0x38
add eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov dword [edx + 0x1c], eax
fmul qword [esi + 0x28]
mov dword [esp + 0x1c], ecx
fstp qword [esi + 0x28]
mov edx, dword [ecx + 0x44]
mov ecx, dword [esp + 0x14]
call fcn.004e5d78
mov ecx, dword [esp + 0x1c]
mov edx, eax
mov dword [esp + 0x40], edx
test byte [ecx + 0x22], 2
jne 0x4f20e8
cmp dword [ecx + 0x1c], edi
jne 0x4f20e8
mov eax, dword [esp + 0x4c]
test dword [eax], 0x8000000
je 0x4f2057
mov edx, ecx
mov ecx, dword [esp + 0x14]
call fcn.004ed43e
mov edx, dword [esp + 0x10]
mov esi, eax
mov ecx, dword [esp + 0x58]
push edi
push edi
push dword [edx + 0x18]
push 0x7f
pop edx
call fcn.004c9cd0
mov ecx, dword [esp + 0x64]
add esp, 0xc
mov edx, eax
push 0xfffffffffffffff6
push esi
call fcn.004ca128
pop ecx
pop ecx
jmp 0x4f20e8
test dword [eax], 0x800000
jne 0x4f20d8
test byte [ebp + 0x10], 0x10
jne 0x4f20d8
xor eax, eax
cmp byte [esi + 6], al
setne al
add eax, 0x26
push eax
push ecx
push edx
mov edx, dword [esp + 0x1c]
mov ecx, ebx
mov edx, dword [edx + 0x18]
call fcn.004e103f
add esp, 0xc
cmp byte [esi + 6], 0
mov esi, dword [esp + 0x10]
jne 0x4f20ec
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 8], 0x40
jge 0x4f20ec
mov edx, dword [esi + 0x28]
mov eax, edx
mov ecx, dword [esi + 0x2c]
or eax, ecx
mov dword [esp + 0x20], edi
je 0x4f20bf
mov esi, edi
shrd edx, ecx, 1
shr ecx, 1
mov eax, edx
inc esi
or eax, ecx
jne 0x4f20aa
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x58]
mov ecx, eax
push 0xfffffffffffffff2
push dword [esp + 0x24]
mov edx, dword [eax + 0x1c]
dec edx
call fcn.004ca128
pop ecx
pop ecx
jmp 0x4f20ec
push dword [ecx]
push edi
push dword [ecx + 0x14]
mov ecx, ebx
call fcn.004d9f4c
add esp, 0xc
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
test dword [eax], 0x20000000
je 0x4f2112
mov edx, dword [esp + 0x24]
mov ecx, ebx
push eax
push dword [esp + 0x38]
push dword [esp + 0x40]
push esi
call fcn.004ef6be
add esp, 0x10
jmp 0x4f2146
test dword [eax], 0xf0000
je 0x4f2146
mov esi, dword [eax + 0x10]
mov ecx, ebx
mov edx, esi
call fcn.004dd69b
mov ecx, dword [esp + 0x58]
push 0xfffffffffffffff0
push eax
push dword [esp + 0x48]
mov eax, dword [esp + 0x58]
push dword [esi + 0x14]
push dword [eax + 0x20]
push 0x26
pop edx
call fcn.004c9d47
add esp, 0x14
mov edx, dword [esp + 0x40]
mov ecx, ebx
call fcn.004dd332
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov edx, dword [edx + 0x18]
mov ecx, dword [eax + 4]
call fcn.004ee1cf
mov esi, dword [esp + 0x28]
not edx
and dword [esp + 0x34], edx
not eax
mov edx, dword [esp + 0x4c]
and dword [esp + 0x38], eax
add edx, 0x50
dec dword [esp + 0x50]
mov dword [esp + 0x4c], edx
jne 0x4f1fbe
mov ecx, dword [esp + 0x18]
or edx, 0xffffffff
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x1e], 0
jne 0x4f2208
mov dword [esp + 0x1c], edx
test ecx, ecx
jle 0x4f2202
lea edx, [esi + 0x5c]
mov dword [esp + 0x20], edx
push dword [ebp + 0x10]
movzx eax, byte [edx + 8]
mov ecx, ebx
push eax
lea eax, [edx - 0x2c]
mov edx, dword [esp + 0x34]
push edi
push eax
call fcn.004f09dc
push dword [esp + 0x2c]
mov eax, dword [esp + 0x68]
mov edx, edi
push eax
push dword [ebp + 0x10]
mov ecx, esi
call fcn.004f0c33
mov dword [esp + 0x38], edx
add esp, 0x1c
mov edx, dword [esp + 0x20]
inc edi
mov dword [esp + 0x54], eax
mov ecx, dword [edx]
add edx, 0x50
mov dword [esi + 0x10], ecx
mov dword [esp + 0x20], edx
cmp edi, dword [esp + 0x18]
jl 0x4f21b3
mov eax, esi
jmp 0x4f221e
mov eax, edx
mov edx, dword [esp + 0x28]
mov ecx, eax
fld qword [edx + 0x20]
fstp qword [ebx + 0x1c0]
call fcn.004f18b8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret