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

Disassembly:
sub esp, 0xa8
mov ecx, dword [0x682794]
mov eax, dword [0x682790]
push ebp
mov ebp, dword [esp + 0xb0]
mov dword [esp + 0xc], ecx
push edi
mov ecx, 0x2a
push ecx
push eax
mov dword [esp + 0x14], eax
mov eax, dword [0x6bec7c]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0x1d4]
mov eax, dword [eax + 0x1d0]
mov ecx, dword [esp + 0xc4]
push edx
mov edx, dword [esp + 0xc4]
push eax
push ecx
push edx
call fcn.00488b70
add esp, 0x18
push 1
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.0043faa0
add esp, 4
push eax
push ebx
call fcn.00486200
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xd0]
and eax, 0xfffffffe
push eax
mov dword [esp + 0x24], eax
mov eax, dword [0x6bec7c]
mov edx, dword [eax + 0x1b4]
mov eax, dword [eax + 0x1b0]
push edx
mov edx, dword [esp + 0xd4]
push eax
push ecx
push edx
call fcn.00488b70
mov eax, dword [0x69793c]
xor edi, edi
add esp, 0x28
cmp eax, edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
je 0x4c6663
mov eax, dword [eax + 0xc]
cmp eax, edi
je 0x4c6663
mov edx, dword [esp + 0xc0]
lea ecx, [esp + 0x2c]
push ecx
push edx
call eax
add esp, 8
test eax, eax
jne 0x4c6697
mov eax, dword [esi + 0x10]
push edi
push edi
push esi
call dword [eax + 0x28]
lea ecx, [esp + 0x38]
push ecx
push esi
call fcn.004bfe60
add esp, 0x14
test eax, eax
jne 0x4c673c
cmp ebp, edi
je 0x4c6697
lea edx, [esp + 0x2c]
push edx
mov eax, edx
push ebx
push eax
call fcn.004bff60
add esp, 0xc
movzx eax, byte [esp + 0x2c]
movzx ecx, byte [esp + 0x2d]
movzx edx, byte [esp + 0x2e]
shl eax, 0x18
shl ecx, 0x10
add eax, ecx
movzx ecx, byte [esp + 0x2f]
shl edx, 8
add eax, edx
movzx edx, byte [esp + 0x31]
add eax, ecx
movzx ecx, byte [esp + 0x32]
mov dword [esp + 0x64], eax
movzx eax, byte [esp + 0x30]
shl eax, 0x18
shl edx, 0x10
add eax, edx
movzx edx, byte [esp + 0x33]
shl ecx, 8
add eax, ecx
movzx ecx, byte [esp + 0x35]
add eax, edx
movzx edx, byte [esp + 0x36]
mov dword [esp + 0x68], eax
movzx eax, byte [esp + 0x34]
shl eax, 0x18
shl ecx, 0x10
add eax, ecx
movzx ecx, byte [esp + 0x37]
shl edx, 8
add eax, edx
add eax, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x6c], eax
movzx eax, cl
movzx edx, ch
mov cx, word [esp + 0x3a]
shl edx, 0x10
shl eax, 0x18
add eax, edx
movzx edx, cl
shl edx, 8
movzx ecx, ch
add eax, edx
add eax, ecx
mov dword [esp + 0x60], 0x2a
mov dword [esp + 0x70], eax
push edi
push 5
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0xc4]
push 0x77
push eax
call fcn.005d57a0
mov ecx, dword [esi + 0x10]
push edi
push ebp
push esi
call dword [ecx + 0x28]
add esp, 0x20
test eax, eax
je 0x4c6768
call fcn.004856b0
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x2c]
push eax
push str.head
push esi
call fcn.004c0090
add esp, 0x10
test eax, eax
jne 0x4c6789
call fcn.004856b0
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0x10]
push edi
add edx, 0x12
push edx
push esi
call dword [ecx + 0x28]
add esp, 0xc
test eax, eax
je 0x4c67a5
call fcn.004856b0
mov ecx, dword [esi + 0x10]
push esi
lea eax, [esp + 0x7c]
push 2
mov edx, eax
push 1
push edx
mov dword [esp + 0x18], eax
call dword [ecx + 8]
add esp, 0x10
cmp eax, 2
je 0x4c67c8
call fcn.004856b0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xc]
push 2
push ecx
call fcn.004bf4c0
mov eax, dword [esp + 0x34]
mov edx, dword [esi + 0x10]
push edi
add eax, 0x24
push eax
push esi
call dword [edx + 0x28]
add esp, 0x18
test eax, eax
je 0x4c67f5
call fcn.004856b0
mov edx, dword [esi + 0x10]
push esi
lea ecx, [esp + 0x7c]
push 8
mov eax, ecx
push 1
push eax
mov dword [esp + 0x18], ecx
call dword [edx + 8]
add esp, 0x10
cmp eax, 8
je 0x4c6818
call fcn.004856b0
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0xc]
push 2
push edx
call fcn.004bf4c0
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x18]
push 2
push ecx
call fcn.004bf4c0
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x24]
push 2
push eax
call fcn.004bf4c0
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x30]
push 2
push edx
call fcn.004bf4c0
movsx ecx, word [esp + 0x78]
movsx eax, word [esp + 0x70]
movsx edx, word [esp + 0x80]
shl eax, 0x10
shl ecx, 0x10
push 2
mov dword [esp + 0xbc], eax
movsx eax, word [esp + 0x78]
mov dword [esp + 0xc0], ecx
push 4
shl edx, 0x10
lea ecx, [esp + 0xc0]
push ecx
mov dword [esp + 0xcc], edx
lea edx, [esp + 0xf4]
shl eax, 0x10
push 0x31
push edx
mov dword [esp + 0xd8], eax
call fcn.005d57a0
add esp, 0x44
mov eax, 0x3f800000
push 1
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa8], eax
push 6
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0xc4]
push 0x35
push ecx
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], edi
call fcn.005d57a0
mov eax, dword [0x682790]
mov edx, dword [0x682794]
xor ecx, ecx
push ecx
push eax
mov dword [esp + 0x28], eax
mov eax, dword [0x6bec7c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x294]
mov edx, dword [eax + 0x290]
mov eax, dword [esp + 0xd8]
push ecx
mov ecx, dword [esp + 0xd8]
push edx
push eax
push ecx
call fcn.00488b70
mov eax, dword [0x682790]
mov edx, dword [0x682794]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0xf0]
push ecx
push eax
mov eax, dword [0x6bec7c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x4e4]
mov edx, dword [eax + 0x4e0]
mov eax, dword [esp + 0xf0]
push ecx
mov ecx, dword [esp + 0xf0]
push edx
push eax
push ecx
call fcn.00488b70
add esp, 0x44
lea edx, [esp + 0x20]
push edx
push 2
call fcn.004869e0
mov eax, dword [esi + 0x10]
push edi
push ebp
push esi
call dword [eax + 0x28]
add esp, 0x14
test eax, eax
je 0x4c69b2
call fcn.004856b0
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x2c]
push edx
push str.post
push esi
call fcn.004c0090
add esp, 0x10
test eax, eax
jne 0x4c69d3
call fcn.004856b0
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 0x10]
push edi
push ecx
push esi
call dword [eax + 0x28]
add esp, 0xc
test eax, eax
je 0x4c69ec
call fcn.004856b0
mov eax, dword [esi + 0x10]
push esi
lea edx, [esp + 0x7c]
push 0x10
mov ecx, edx
push 1
push ecx
mov dword [esp + 0x18], edx
call dword [eax + 8]
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x1c]
push 4
add edi, 4
push eax
mov dword [esp + 0x24], edi
call fcn.004bf4c0
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x74]
push ecx
push edx
call fcn.005c68c0
mov ecx, dword [0x68279c]
mov eax, dword [0x682798]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x7c]
push ecx
push eax
mov dword [esp + 0x38], eax
mov eax, dword [0x6bec7c]
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 0x22c]
mov eax, dword [eax + 0x228]
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x50]
push eax
push ecx
push edx
call fcn.00488b70
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x48]
push 2
push ecx
call fcn.004bf4c0
movsx ecx, word [esp + 0x94]
mov edx, dword [0x68279c]
mov dword [esp + 0x58], edx
movzx edx, word [esp + 0x64]
mov dword [esp + 0x5c], ecx
mov eax, dword [0x682798]
add esp, 0x48
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
fstp dword [esp + 0x18]
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fdiv dword [esp + 0x14]
fstp dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [0x6bec7c]
mov edx, dword [eax + 0x384]
mov eax, dword [eax + 0x380]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call fcn.00488b70
lea eax, [esp + 0x54]
push eax
push 2
lea ecx, [esp + 0x28]
push ecx
call fcn.004bf4c0
movsx ecx, word [esp + 0x60]
mov edx, dword [0x68279c]
mov dword [esp + 0x34], edx
movzx edx, word [esp + 0x40]
mov dword [esp + 0x3c], ecx
mov eax, dword [0x682798]
mov dword [esp + 0x30], eax
fild dword [esp + 0x3c]
mov dword [esp + 0x3c], edx
fstp dword [esp + 0x38]
fild dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x38]
fdiv dword [esp + 0x3c]
fstp dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x4c]
push eax
mov eax, dword [0x6bec7c]
mov edx, dword [eax + 0x38c]
mov eax, dword [eax + 0x388]
push edx
mov edx, dword [esp + 0x50]
push eax
push ecx
push edx
call fcn.00488b70
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x48]
push 4
push ecx
call fcn.004bf4c0
mov ecx, dword [esp + 0xa4]
mov eax, dword [0x6827b0]
mov edx, dword [0x6827b4]
add esp, 0x48
push ecx
push eax
mov dword [esp + 0x14], eax
mov eax, dword [0x6bec7c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x494]
mov edx, dword [eax + 0x490]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
call fcn.00488b70
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
mov eax, dword [0x6bec7c]
mov ecx, dword [eax + 0x1a4]
mov edx, dword [eax + 0x1a0]
mov eax, dword [esp + 0xdc]
push ecx
mov ecx, dword [esp + 0xdc]
push edx
push eax
push ecx
call fcn.00488b70
add esp, 0x30
pop edi
pop ebp
add esp, 0xa8
ret