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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2b88
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x601018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, edx
mov eax, dword [esi + 0x148c]
fld dword [eax + 0x1620]
fstp dword [ebp - 0x30]
fld dword [eax + 0x1620]
fld dword [0x5ed4e8]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4bfd6c
fild dword [esi + 0x38]
fdiv qword [0x5ed468]
fstp dword [ebp - 0x30]
fldz
fcomp dword [ebp - 0x30]
fnstsw ax
test ah, 1
je 0x4c04d8
mov eax, dword [esi + 0x34]
cmp eax, 1
jne 0x4bfe42
mov eax, dword [esi]
mov dword [eax + 0x19dd30], 0x120
mov ecx, dword [esi]
mov eax, dword [ecx + 0x19dd30]
lea edx, [eax + eax*4]
add edx, edx
mov dword [esi + 0x2c], edx
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi]
mov edi, dword [esi + 0xc]
push edx
call fcn.004a5600
mov ecx, dword [esi + 0xc]
call fcn.004a5110
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x148c]
mov eax, dword [eax + 0x1618]
lea ecx, [ebx + ebx + 2]
mov dword [ebp - 0x44], ecx
cmp eax, 5
jne 0x4bfe6f
cmp dword [esi + 0x14], 0
mov edx, dword [esi]
mov eax, dword [edx + 0x311f40]
mov dword [ebp - 0x14], eax
je 0x4bfdfb
cmp dword [esi + 0x18], 1
je 0x4bfe79
add ecx, 2
push 0x6073b0
push ecx
call fcn.005965b7
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4c04d8
mov edi, dword [esi + 0xc]
mov eax, dword [edi + 0xb0]
xor edx, edx
mov dword [ebp - 0x2c], edx
cmp eax, edx
je 0x4bfee4
cmp eax, 2
jne 0x4bfeb9
mov dword [ebp - 0x2c], 1
jmp 0x4bfee4
cmp eax, 2
jne 0x4bfda4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.004c04f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
je 0x4bfe79
cmp eax, 6
jmp 0x4bfdf9
lea eax, [ecx + 2]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push 0x6073b0
neg ecx
or ecx, eax
push ecx
call fcn.005965b7
add esp, 8
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x4bfe17
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, 3
jne 0x4bfec7
mov dword [ebp - 0x2c], 0xffffffff
jmp 0x4bfee4
mov ecx, dword [ebp + 8]
push ebx
call fcn.00401770
xor ecx, ecx
add esp, 4
cmp eax, 2
setne cl
xor edx, edx
lea ecx, [ecx + ecx - 1]
mov dword [ebp - 0x2c], ecx
mov edi, dword [edi + 0x48]
add edi, dword [esi + 0x20]
mov ecx, dword [ebp + 8]
and edi, 3
lea eax, [ecx + ebx]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x34], edi
cmp edi, 1
jne 0x4bff0d
mov dword [ebp - 0x34], 3
jmp 0x4bff19
cmp edi, 3
jne 0x4bff19
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 4], edx
fldz
fst dword [ebp - 0x18]
fstp dword [ebp - 0x1c]
cmp ecx, eax
ja 0x4c049b
mov edx, dword [ebp - 0x20]
xor ebx, ebx
mov dword [ebp - 0x38], ebx
cmp edx, dword [ebp - 0x3c]
jne 0x4bff61
mov eax, 1
add dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], eax
mov dword [esi + 0x1498], ebx
mov dword [esi + 0x149c], ebx
jmp 0x4c018f
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x40]
lea eax, [eax + ecx*4 + 0x68]
mov edi, 1
add dword [eax], edi
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.004c40f0
call fcn.004c4160
cmp dword [esi + 0x34], edi
jne 0x4bffa3
mov edx, dword [esi]
mov eax, dword [edx + 0x19dd30]
mov edi, dword [esi + 0x1490]
push eax
mov ebx, esi
call fcn.004bd2a0
mov edi, 1
xor ebx, ebx
mov edx, dword [esi + 0x1490]
mov ecx, dword [esi + edx*4 + 0x874]
mov eax, dword [ecx + 0x84c]
cmp eax, 0x1e
je 0x4bffc0
cmp eax, 0x1f
jne 0x4bffe7
mov eax, dword [esi + 0x148c]
mov eax, dword [eax + 0x1618]
cmp eax, edi
je 0x4bffe7
cmp eax, 2
je 0x4bffe7
cmp eax, 6
je 0x4bffe7
cmp eax, 7
je 0x4bffe7
mov eax, dword [esi + 0x1494]
jmp 0x4bfff4
mov eax, dword [esi + 0x14a4]
cmp eax, ebx
je 0x4c0021
mov eax, dword [eax + 0x34]
mov dword [ebp + 8], eax
cmp eax, ebx
jge 0x4c0028
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jle 0x4c000d
mov eax, dword [esi + 0x1494]
mov dword [ebp + 8], eax
jmp 0x4c0028
jge 0x4c0021
mov eax, dword [esi + 0x1494]
movzx eax, byte [eax + 0x60d628]
mov dword [ebp + 8], eax
jmp 0x4c0028
mov dword [ebp + 8], 0x3f
mov eax, dword [esi + 0x1494]
cmp eax, dword [esi + 0x3c]
jne 0x4c00c2
cmp dword [esi + 0x14], ebx
je 0x4c0045
cmp edx, dword [esi + 0x40]
jne 0x4c00c2
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0xc4], ebx
je 0x4c0079
mov eax, dword [ecx + 0xc8]
imul eax, dword [ecx + 0x38]
cdq
idiv dword [ecx + 0x34]
mov dword [ebp - 0x14], edi
mov dword [esi + 0x149c], ebx
mov dword [ebp - 0x38], 1
mov dword [esi + 0x1498], eax
jmp 0x4c018c
mov eax, dword [esi + 0x14a4]
cmp eax, ebx
je 0x4c00a3
cmp dword [esi + 0x34], edi
jne 0x4c00a3
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
push ecx
push edx
mov ebx, esi
call fcn.004bfc90
mov dword [ebp - 0x38], 1
jmp 0x4c018c
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + eax*4 + 0x44]
mov dword [esi + 0x1498], ecx
mov dword [esi + 0x149c], ebx
mov dword [ebp - 0x38], 1
jmp 0x4c018c
cmp dword [esi + 0x34], ebx
je 0x4c0149
mov edx, dword [esi + 0x14a0]
cmp byte [edx + 7], 0
jne 0x4c00f5
mov eax, dword [esi + 0x14a4]
cmp eax, ebx
je 0x4c00f5
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
push ecx
push edx
mov ebx, esi
call fcn.004bfc90
jmp 0x4c018c
mov eax, dword [esi + 0x20]
mov ecx, dword [ecx + eax*4 + 0x89c]
mov ecx, dword [ecx + 0x1c]
mov edx, dword [esi]
imul ecx, dword [edx + 0x19dd24]
imul ecx, dword [esi + 0x38]
mov eax, 0xb60b60b7
imul ecx
add edx, ecx
sar edx, 0xa
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esi + 0x1498], eax
imul eax, eax, 0x3e8
sub ecx, eax
mov dword [esi + 0x149c], ecx
jmp 0x4c018c
mov eax, dword [esi + 0x14a0]
cmp byte [eax + 7], 0
jne 0x4c0173
mov eax, dword [esi + 0x14a4]
cmp eax, ebx
je 0x4c0173
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x1498], ecx
mov edx, dword [eax + 0x14]
mov dword [esi + 0x149c], edx
jmp 0x4c018c
mov eax, dword [esi + 0x20]
mov ecx, dword [ecx + eax*4 + 0x89c]
mov edx, dword [ecx + 0x1c]
mov dword [esi + 0x1498], edx
mov dword [esi + 0x149c], ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x149c]
add dword [ecx + 0x80], eax
mov edi, dword [ecx + 0x80]
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x4c01c9
mov edx, eax
imul edx, edx, 0x3e8
sub edi, edx
mov dword [ecx + 0x80], edi
mov edx, dword [ecx + 0x48]
test edx, edx
jne 0x4c01d5
add dword [ecx + 0x78], eax
jmp 0x4c01f1
cmp edx, 1
jne 0x4c01df
add dword [ecx + 0x7c], eax
jmp 0x4c01f1
cmp edx, 2
jne 0x4c01e9
sub dword [ecx + 0x78], eax
jmp 0x4c01f1
cmp edx, 3
jne 0x4c01f1
sub dword [ecx + 0x7c], eax
cmp dword [ebp - 0x14], 0
je 0x4c0323
cmp dword [ebp - 0x38], 0
je 0x4c0323
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
test ebx, ebx
jle 0x4c0317
cmp dword [edi + 0xc5d80], 0
je 0x4c0245
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x20]
sub ecx, dword [eax + 0x88]
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
fld dword [ebp - 0x1c]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [ebp - 0x4c]
fld dword [ebp - 0x4c]
fadd dword [ebp - 0x18]
faddp st(1)
fstp dword [ebp - 0x48]
mov edx, dword [ebp - 0x28]
fld dword [ebp - 0x30]
mov eax, dword [esi + 0xc]
sub esp, 8
mov dword [ebp + 8], esp
mov ecx, esp
test edx, edx
je 0x4c02c0
mov bl, byte [eax + 0x58]
mov byte [ecx], bl
mov eax, dword [eax + 0x5c]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0xc5d80]
mov ecx, dword [esi + 0xc]
neg eax
sbb eax, eax
lea ebx, [ebp - 0x5c]
and eax, ebx
mov ebx, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x10]
push ecx
fstp dword [esp]
push ebx
mov ebx, dword [ecx + 0x20]
sub ebx, dword [ecx + 0x88]
sub esp, 8
mov dword [ebp + 8], ebx
fild dword [ebp + 8]
lea eax, [edx + eax*2]
fstp dword [esp + 4]
fild dword [ecx + 0x84]
mov ecx, dword [esi + 0x148c]
fstp dword [esp]
push ecx
push edi
mov ecx, edx
call fcn.00482900
mov dword [ebp - 0x10], 0
jmp 0x4c040d
mov dl, byte [eax + 0x58]
mov byte [ecx], dl
mov eax, dword [eax + 0x5c]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0xc5d80]
mov ecx, dword [esi + 0xc]
neg eax
sbb eax, eax
lea edx, [ebp - 0x5c]
and eax, edx
mov edx, dword [ecx + 0x20]
sub edx, dword [ecx + 0x88]
push eax
mov eax, dword [ebp - 0x24]
add ebx, eax
push ebx
sub esp, 0xc
fstp dword [esp + 8]
mov dword [ebp + 8], edx
fild dword [ebp + 8]
fstp dword [esp + 4]
fild dword [ecx + 0x84]
mov ecx, dword [esi + 0x148c]
fstp dword [esp]
push ecx
mov ecx, dword [ebp - 0x34]
push edi
call fcn.00482a40
mov dword [ebp - 0x10], 0
jmp 0x4c040d
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4c037e
cmp ebx, 0xffff
ja 0x4c033b
mov eax, dword [ebp - 0x10]
mov word [ecx + eax*2], bx
jmp 0x4c0387
mov edx, dword [ebp - 0x10]
cmp ebx, 0x10ffff
ja 0x4c036f
lea eax, [edx + 1]
cmp eax, dword [ebp - 0x44]
jge 0x4c036f
mov edi, ebx
sar edi, 0xa
sub edi, 0x2840
and ebx, 0x3ff
or ebx, 0xdc00
mov word [ecx + edx*2], di
mov word [ecx + eax*2], bx
jmp 0x4c0387
mov eax, 0x3f
mov word [ecx + edx*2], ax
inc edx
mov dword [ebp - 0x10], edx
jmp 0x4c038b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
mov byte [eax + ecx], bl
inc eax
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x14a4]
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x4c040d
cmp dword [edi + 0xc5d80], 0
je 0x4c040d
mov edx, dword [ebp - 0x58]
fild dword [ecx + 0x1c]
sub edx, dword [ebp - 0x5c]
test edx, 0xfffffffc
jne 0x4c03bd
fstp dword [ebp - 0x18]
fild dword [ecx + 0x20]
fstp dword [ebp - 0x1c]
jmp 0x4c03f6
fstp dword [ebp + 8]
fld dword [ebp - 0x18]
fld dword [ebp + 8]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4c03d6
fstp dword [ebp - 0x18]
jmp 0x4c03d8
fstp st(0)
fild dword [ecx + 0x20]
fstp dword [ebp + 8]
fld dword [ebp - 0x1c]
fld dword [ebp + 8]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4c03f4
fstp dword [ebp - 0x1c]
jmp 0x4c03f6
fstp st(0)
mov eax, dword [esi + 0xc]
fild dword [eax + 0x78]
lea eax, [ebp + 8]
lea edi, [ebp - 0x5c]
fstp dword [ebp + 8]
call fcn.004c41c0
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x48]
mov edx, dword [esi + 0x1498]
test ecx, ecx
jne 0x4c0422
add dword [eax + 0x78], edx
jmp 0x4c043e
cmp ecx, 1
jne 0x4c042c
add dword [eax + 0x7c], edx
jmp 0x4c043e
cmp ecx, 2
jne 0x4c0436
sub dword [eax + 0x78], edx
jmp 0x4c043e
cmp ecx, 3
jne 0x4c043e
sub dword [eax + 0x7c], edx
cmp dword [ebp - 0x14], 0
je 0x4c048f
cmp dword [ebp - 0x38], 0
je 0x4c048f
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x78]
mov dword [eax + 0x84], ecx
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x7c]
mov dword [eax + 0x88], edx
cmp dword [edi + 0xc5d80], 0
je 0x4c048f
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
cmp eax, ecx
je 0x4c0487
push 0
push ecx
push eax
mov edi, eax
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
mov dword [ebp - 0x58], edi
fldz
fst dword [ebp - 0x18]
fstp dword [ebp - 0x1c]
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x20], eax
jbe 0x4bff35
mov eax, dword [esi]
add eax, 0x10
mov ecx, esi
call fcn.004bed40
mov ecx, dword [esi + 0xc]
call fcn.004a5260
mov ecx, dword [ebp - 0x24]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
push ecx
call esi
mov edx, dword [ebp - 0x28]
add esp, 4
push edx
call esi
mov eax, dword [ebp - 0x5c]
add esp, 4
test eax, eax
je 0x4c04d8
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8