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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c65dd
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x516344]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push dword [ebp + 0xc]
lea esi, [esp + 0x20]
call fcn.0040314b
xor esi, esi
mov dword [esp + 0x78], esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call dword [eax + 0x38]
mov ecx, dword [ebx + 0xa8]
mov dword [esp + 0x10], esi
cmp ecx, esi
jbe 0x4c46a9
mov edi, dword [ebx + 0xa4]
cmp edi, esi
jbe 0x4c46a9
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
xor edx, edx
imul eax, ecx
div edi
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x78], esi
jne 0x4c47e6
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x18], 0xff000000
call fcn.004202e2
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00486074
mov byte [esp + 0x78], 1
mov eax, dword [ebx]
lea esi, [esp + 0x3c]
lea edi, [esp + 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call dword [eax + 0x2c]
mov dword [esp + 0x14], eax
and dword [esp + 0x14], 1
je 0x4c4704
lea esi, [esp + 0x5c]
mov ecx, ebx
call fcn.004c5285
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x5c]
push eax
push ecx
push dword [esp + 0x68]
push dword [esp + 0x68]
push dword [esp + 0x44]
push dword [esp + 0x30]
call fcn.004c206f
test eax, eax
je 0x4c4733
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 0x70]
mov dword [esp + 0x1c], 0xff000000
call fcn.004202e2
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00486074
mov byte [esp + 0x78], 2
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
lea esi, [esp + 0x3c]
lea edi, [esp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub eax, ecx
movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x10], eax
jae 0x4c477c
mov eax, dword [esp + 0x10]
add ecx, eax
cmp dword [esp + 0x14], 0
mov dword [esp + 0x54], ecx
je 0x4c4798
lea esi, [esp + 0x4c]
mov ecx, ebx
call fcn.004c5285
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
sub ecx, dword [esp + 0x4c]
push eax
push ecx
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x38]
push dword [esp + 0x30]
call fcn.004c206f
test eax, eax
je 0x4c47c3
mov dword [esp + 0x20], eax
mov byte [esp + 0x78], 1
lea eax, [esp + 0x24]
push eax
call fcn.00485f95
mov byte [esp + 0x78], 0
lea eax, [esp + 0x30]
push eax
call fcn.00485f95
jmp 0x4c4898
lea eax, [esp + 0x1c]
push eax
push ebx
lea edi, [esp + 0x44]
call fcn.004c454f
cmp byte [ebx + 0xac], 0
je 0x4c4885
cmp byte [ebx + 0x60], 0
je 0x4c4885
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov edx, dword [ebx + 0x5c]
mov esi, dword [ebx + 0x58]
sub eax, ecx
imul eax, edx
cdq
idiv esi
mov esi, edi
lea edi, [esp + 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x84]
mov dword [esp + 0x18], 5
add ecx, eax
and dword [esp + 0x14], 0
mov dword [esp + 0x5c], ecx
jmp 0x4c4846
mov ebx, dword [ebp + 8]
mov esi, dword [edi]
call fcn.004030d2
mov dword [esp + 0x10], eax
call fcn.004030f2
mov ecx, dword [esp + 0x14]
push eax
push dword [esp + 0x64]
mov eax, dword [esp + 0x64]
push esi
mov esi, dword [esp + 0x1c]
push ebx
add ecx, eax
mov edx, esi
lea ebx, [esp + 0x2c]
call fcn.004c4309
add dword [esp + 0x14], esi
add edi, 4
dec dword [esp + 0x18]
jne 0x4c4843
jmp 0x4c4898
push dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ebx
lea eax, [esp + 0x48]
call fcn.004c43c2
or dword [esp + 0x78], 0xffffffff
push dword [esp + 0x1c]
call fcn.004a72ea
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8