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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
mov esi, ecx
mov eax, dword [esi + 0x30]
push edi
xor edi, edi
cmp eax, edi
je 0x4f136d
cmp dword [eax + 0x178], edi
je 0x4f136d
push ebx
call fcn.0047cfd9
mov ebx, dword [esi + 0x28]
mov esi, dword [esi + 0x30]
mov eax, dword [esi + 0x3c0]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x3c8]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x300]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x304]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x308]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x30c]
mov ecx, esi
mov dword [ebp - 0xc], esi
mov dword [ebx + 0x18], eax
call fcn.0040f3e2
mov dword [ebx + 0x48], eax
push 7
lea eax, [ebx + 0x24]
push eax
mov ecx, esi
call fcn.00411738
mov eax, dword [esi + 0x460]
mov dword [ebx + 0x44], eax
mov eax, dword [esi + 0x45c]
mov dword [ebx + 0x40], eax
mov eax, dword [esi + 0x374]
mov ecx, esi
mov dword [ebx + 0x68], eax
call fcn.004124b5
mov ecx, esi
mov dword [ebx + 0x3c], eax
call fcn.0040ef38
mov dword [ebx + 0x88], eax
mov dword [ebx + 8], edi
call fcn.0048e518
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], edi
cmp dword [eax + 8], edi
jbe 0x4f1139
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
mov edi, dword [ecx + edx*4]
cmp dword [edi + 0xc8], esi
jne 0x4f1128
mov ecx, edi
call fcn.004f03b9
mov ecx, edi
mov dword [ebp - 0x34], eax
call fcn.0040e68f
cmp dword [esi + 0x668], 0
mov dword [ebp - 0x38], eax
je 0x4f1116
mov ecx, edi
call fcn.0048ec8f
mov dword [ebp - 0x30], eax
cmp eax, dword [esi + 0x178]
jb 0x4f1079
and dword [ebp - 0x30], 0
mov ecx, edi
call fcn.0042e05e
mov dword [ebp - 0x2c], eax
cmp eax, dword [esi + 0x178]
jb 0x4f108f
and dword [ebp - 0x2c], 0
mov ecx, esi
call fcn.0040d0e2
test al, al
jne 0x4f110b
push 0xffffffffffffffff
mov ecx, esi
call fcn.004f031a
fstp dword [ebp - 0x14]
mov eax, dword [esi + 0x4d0]
mov ecx, edi
mov dword [ebp - 0x10], eax
call fcn.0048ec8f
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
test eax, eax
jge 0x4f10c6
fadd dword [0x511520]
mov eax, dword [ebp - 0x10]
fild dword [ebp - 0x10]
test eax, eax
jge 0x4f10d6
fadd dword [0x511520]
fdiv dword [ebp - 0x14]
faddp st(1)
fadd qword [0x511758]
call fcn.00401066
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x178]
cmp dword [ebp - 0x28], eax
jb 0x4f10f8
and dword [ebp - 0x28], 0
mov edi, dword [edi + 0xd8]
mov dword [ebp - 0x24], edi
cmp edi, eax
jb 0x4f1116
and dword [ebp - 0x24], 0
jmp 0x4f1116
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], eax
push 0x18
push 1
lea eax, [ebp - 0x38]
push eax
mov ecx, ebx
call fcn.004a117a
mov eax, dword [ebp - 0x18]
inc dword [ebp - 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 8]
jb 0x4f102e
xor edi, edi
mov eax, dword [esi + 0x178]
mov dword [ebx + 0x6c], eax
mov eax, dword [esi + 0x17c]
mov dword [ebx + 0x70], eax
mov eax, dword [esi + 0x364]
mov dword [ebx + 0x80], eax
mov eax, dword [esi + 0x368]
mov dword [ebx + 0x84], eax
mov eax, dword [esi + 0x3dc]
mov dword [ebx + 0x4c], eax
lea eax, [esi + 0x3d0]
mov ecx, dword [eax]
mov dword [ebx + 0x50], ecx
mov eax, dword [eax]
cmp eax, dword [esi + 0x3e0]
push 0xffffffffffffffff
setne al
mov ecx, esi
mov byte [ebx + 0xb8], al
call fcn.00410b3e
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebx + 0x54], eax
call fcn.00410b8f
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x6c]
mov dword [ebp - 8], edi
lea edi, [eax + 7]
shr edi, 3
mov dword [ebp - 0x18], edi
test eax, eax
jbe 0x4f11bd
mov ecx, esi
call fcn.0040d0cf
mov dword [ebp - 8], eax
cmp edi, dword [ebx + 0x74]
je 0x4f11d9
mov ecx, dword [ebx + 0x78]
mov dl, 1
call fcn.00479b79
push edi
mov dword [ebx + 0x74], edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x78]
mov ecx, edi
mov edi, dword [ebp - 8]
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4f11ff
push dword [ebp - 0x18]
push dword [ebp - 8]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
and dword [ebx + 0xf4], 0
mov edi, dword [ebp - 0xc]
mov ecx, edi
call fcn.0040ef7f
mov esi, dword [ebx + 0x90]
test esi, esi
je 0x4f1221
mov ecx, dword [ebx + 0x6c]
mov edi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov edi, dword [ebp - 0xc]
je 0x4f1281
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x90], eax
and dword [ebx + 0xfc], 0
test byte [edi + 0x4bc], 1
mov dword [ebp - 0x18], ecx
jne 0x4f1247
mov ecx, edi
call fcn.0040efe3
mov eax, dword [edi + 0x4b8]
mov esi, eax
mov dword [ebx + 0x8c], eax
mov ecx, dword [edi + 0x4b4]
xor eax, eax
shr esi, 0x10
cmp ecx, esi
sete al
xor edx, edx
sub esi, eax
sub ecx, esi
mov eax, 0x100000
div ecx
mov dword [ebx + 0xb0], esi
mov dword [ebx + 0xac], eax
mov eax, dword [ebp - 0x18]
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 1]
push eax
mov ecx, edi
mov dword [ebx + 0xd8], edi
call fcn.0041099f
mov edx, dword [ebp - 0x1c]
lea ecx, [ebx + 0xb4]
call fcn.0049ff22
mov eax, dword [edi + 0x318]
mov dword [ebx + 0xd0], eax
mov eax, dword [edi + 0x31c]
mov dword [ebx + 0xd4], eax
mov eax, dword [edi + 0x33c]
mov dword [ebx + 0xc8], eax
mov eax, dword [edi + 0x340]
mov dword [ebx + 0xcc], eax
lea eax, [edi + 0x168]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
mov dword [ebx + 0xc0], edx
mov ecx, dword [ecx + 0x18]
mov dword [ebx + 0xc4], ecx
mov eax, dword [eax]
cmp byte [eax + 0x28], 0
je 0x4f1303
xor edx, edx
jmp 0x4f1308
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
mov eax, dword [eax + 0x1c]
mov ecx, eax
call fcn.004b7a3f
lea ecx, [ebx + 0xbc]
mov edx, eax
call fcn.0049ff22
mov eax, dword [edi + 0x178]
mov dword [ebx + 0x6c], eax
mov eax, dword [edi + 0x174]
mov dword [ebx + 0xdc], eax
mov eax, dword [edi + 0x17c]
mov dword [ebx + 0x70], eax
mov dword [ebx + 0xd8], edi
mov eax, dword [edi + 0x378]
mov dword [ebx + 0xe0], eax
mov eax, dword [edi + 0x37c]
mov dword [ebx + 0xe4], eax
mov eax, dword [edi + 0x458]
mov dword [ebx + 0xe8], eax
call fcn.0047cff8
pop ebx
pop edi
pop esi
leave
ret