Function at 0x4d8365
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 + 0x28]
push edi
xor edi, edi
cmp eax, edi
je 0x4d876c
cmp dword [eax + 0x178], edi
je 0x4d876c
push ebx
call fcn.0046e5c1
mov ebx, dword [esi + 0x20]
mov esi, dword [esi + 0x28]
mov eax, dword [esi + 0x3b0]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x3b8]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x2f0]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x2f4]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x2f8]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x2fc]
mov ecx, esi
mov dword [ebp - 0xc], esi
mov dword [ebx + 0x18], eax
call fcn.0040a047
mov dword [ebx + 0x48], eax
push 7
lea eax, [ebx + 0x24]
push eax
mov ecx, esi
call fcn.0040bfed
mov eax, dword [esi + 0x450]
mov dword [ebx + 0x44], eax
mov eax, dword [esi + 0x44c]
mov dword [ebx + 0x40], eax
mov eax, dword [esi + 0x364]
mov ecx, esi
mov dword [ebx + 0x68], eax
call fcn.0040ccd2
mov ecx, esi
mov dword [ebx + 0x3c], eax
call fcn.00409b95
mov dword [ebx + 0x88], eax
mov dword [ebx + 8], edi
call fcn.0047ce6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], edi
cmp dword [eax + 8], edi
jbe 0x4d8538
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
mov edi, dword [ecx + edx*4]
cmp dword [edi + 0xc8], esi
jne 0x4d8527
mov ecx, edi
call fcn.004d77ed
mov ecx, edi
mov dword [ebp - 0x34], eax
call fcn.0040945f
cmp dword [esi + 0x64c], 0
mov dword [ebp - 0x38], eax
je 0x4d8515
mov ecx, edi
call fcn.0047d5a2
mov dword [ebp - 0x30], eax
cmp eax, dword [esi + 0x178]
jb 0x4d8478
and dword [ebp - 0x30], 0
mov ecx, edi
call fcn.00427625
mov dword [ebp - 0x2c], eax
cmp eax, dword [esi + 0x178]
jb 0x4d848e
and dword [ebp - 0x2c], 0
mov ecx, esi
call fcn.00407f2e
test al, al
jne 0x4d850a
push 0xffffffffffffffff
mov ecx, esi
call fcn.004d774e
fstp dword [ebp - 0x14]
mov eax, dword [esi + 0x4c0]
mov ecx, edi
mov dword [ebp - 0x10], eax
call fcn.0047d5a2
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
test eax, eax
jge 0x4d84c5
fadd dword [0x4f2400]
mov eax, dword [ebp - 0x10]
fild dword [ebp - 0x10]
test eax, eax
jge 0x4d84d5
fadd dword [0x4f2400]
fdiv dword [ebp - 0x14]
faddp st(1)
fadd qword [0x4f25e0]
call fcn.00401066
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x178]
cmp dword [ebp - 0x28], eax
jb 0x4d84f7
and dword [ebp - 0x28], 0
mov edi, dword [edi + 0xd8]
mov dword [ebp - 0x24], edi
cmp edi, eax
jb 0x4d8515
and dword [ebp - 0x24], 0
jmp 0x4d8515
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.0048ebd1
mov eax, dword [ebp - 0x18]
inc dword [ebp - 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 8]
jb 0x4d842d
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 + 0x354]
mov dword [ebx + 0x80], eax
mov eax, dword [esi + 0x358]
mov dword [ebx + 0x84], eax
mov eax, dword [esi + 0x3cc]
mov dword [ebx + 0x4c], eax
lea eax, [esi + 0x3c0]
mov ecx, dword [eax]
mov dword [ebx + 0x50], ecx
mov eax, dword [eax]
cmp eax, dword [esi + 0x3d0]
push 0xffffffffffffffff
setne al
mov ecx, esi
mov byte [ebx + 0xb8], al
call fcn.0040b470
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebx + 0x54], eax
call fcn.0040b4c1
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 0x4d85bc
mov ecx, esi
call fcn.00407f1b
mov dword [ebp - 8], eax
cmp edi, dword [ebx + 0x74]
je 0x4d85d8
mov ecx, dword [ebx + 0x78]
mov dl, 1
call fcn.0046b3e9
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 0x4d85fe
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.00409bdc
mov esi, dword [ebx + 0x90]
test esi, esi
je 0x4d8620
mov ecx, dword [ebx + 0x6c]
mov edi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov edi, dword [ebp - 0xc]
je 0x4d8680
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x90], eax
and dword [ebx + 0xfc], 0
test byte [edi + 0x4ac], 1
mov dword [ebp - 0x18], ecx
jne 0x4d8646
mov ecx, edi
call fcn.00409c40
mov eax, dword [edi + 0x4a8]
mov esi, eax
mov dword [ebx + 0x8c], eax
mov ecx, dword [edi + 0x4a4]
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.0040b36d
mov edx, dword [ebp - 0x1c]
lea ecx, [ebx + 0xb4]
call fcn.0048dadd
mov eax, dword [edi + 0x308]
mov dword [ebx + 0xd0], eax
mov eax, dword [edi + 0x30c]
mov dword [ebx + 0xd4], eax
mov eax, dword [edi + 0x32c]
mov dword [ebx + 0xc8], eax
mov eax, dword [edi + 0x330]
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 0x4d8702
xor edx, edx
jmp 0x4d8707
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov eax, dword [eax + 0x1c]
mov ecx, eax
call fcn.004a327a
lea ecx, [ebx + 0xbc]
mov edx, eax
call fcn.0048dadd
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 + 0x368]
mov dword [ebx + 0xe0], eax
mov eax, dword [edi + 0x36c]
mov dword [ebx + 0xe4], eax
mov eax, dword [edi + 0x448]
mov dword [ebx + 0xe8], eax
call fcn.0046e5dd
pop ebx
pop edi
pop esi
leave
ret