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

Disassembly:
sub esp, 0x38
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x23c]
xor ebx, ebx
mov dword [esp + 0x14], eax
cmp dword [esi + 0x10], ebx
je 0x4c901b
call fcn.00427490
cmp dword [esi + 0x310], ebx
je 0x4c8b04
mov ecx, dword [esi + 0x244]
fldz
imul ecx, dword [esi + 0x240]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
shl edx, 0x18
or edx, dword [esi + 0x23c]
push edx
lea edx, [esi + 0x248]
push edx
push ecx
fstp dword [esp]
push ebx
push ebx
lea ecx, [esi + 0x30c]
call fcn.00429930
cmp dword [esi + 0x330], ebx
je 0x4c8b65
mov ecx, dword [esi + 0x244]
fld dword [esi + 0x248]
imul ecx, dword [esi + 0x240]
fadd qword [0x5af4e8]
fstp dword [esp + 0xc]
fld dword [esi + 0x24c]
fadd qword [0x5bb480]
mov eax, 0x51eb851f
fstp dword [esp + 0x10]
fldz
mul ecx
shr edx, 5
shl edx, 0x18
or edx, dword [esi + 0x23c]
push edx
lea edx, [esp + 0x10]
push edx
push ecx
fstp dword [esp]
push ebx
push ebx
lea ecx, [esi + 0x32c]
call fcn.00429930
mov ecx, dword [esi + 0x36c]
push ebp
cmp ecx, ebx
je 0x4c8e54
mov eax, dword [ecx]
mov edx, dword [eax + 0x78]
call edx
movzx eax, ax
push eax
call fcn.00525ec0
mov ebp, 1
add esp, 4
cmp eax, ebp
je 0x4c8c47
mov ecx, dword [esi + 0x36c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
call eax
movzx ecx, ax
push ecx
mov ecx, 0x69fe70
call fcn.004aeea0
test eax, eax
je 0x4c8c47
mov edx, dword [esi + 0x374]
push edx
push 0x5b61a0
push 0x6a01c4
call dword [sym.imp.USER32.dll_wsprintfA]
fld dword [esi + 0x248]
add esp, 0xc
call fcn.00599920
fld dword [esi + 0x24c]
add eax, 0x15
mov dword [esp + 0x24], eax
call fcn.00599920
add eax, 0x1d
mov dword [esp + 0x28], eax
mov eax, 0x6a01c4
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4c8c05
sub eax, edx
mov edx, dword [esi + 0x244]
imul edx, dword [esi + 0x240]
mov ecx, eax
mov eax, 0x51eb851f
mul edx
shr edx, 5
shl edx, 0x18
or edx, dword [esi + 0x23c]
lea eax, [esp + 0x24]
push edx
push eax
push ecx
push 0x6a01c4
push ebx
mov ecx, 0x682a58
call fcn.004264c0
mov ecx, dword [esi + 0x36c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
call eax
movzx ecx, ax
push ecx
call fcn.00525ec0
add esp, 4
cmp eax, 3
jne 0x4c8c77
mov ecx, dword [esi + 0x36c]
lea edx, [esi + 0x248]
push edx
call fcn.00551830
mov ecx, dword [esi + 0x36c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x78]
push edi
call edx
movzx eax, ax
push eax
call fcn.00525ec0
add esp, 4
cmp eax, 2
jne 0x4c8e64
mov ecx, dword [esi + 0x36c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x74]
call eax
push eax
mov ecx, 0x69fe70
call fcn.004ae4d0
mov edi, eax
cmp edi, ebx
je 0x4c8e64
test dword [edi + 0x322], 0x1000
je 0x4c8dbd
mov ecx, esi
call fcn.004253a0
fld dword [esi + 0x248]
call fcn.00599920
fld dword [esi + 0x24c]
add eax, 9
mov dword [esp + 0x38], eax
call fcn.00599920
push 0xfffafa80
lea ecx, [esp + 0x3c]
push ecx
push 4
add eax, 0xf
push 0x5eb
mov ecx, 0x6a0f60
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
call fcn.004d6bc0
push eax
push ebx
mov ecx, 0x682a58
call fcn.004264c0
mov eax, dword [edi]
mov ebp, dword [0x69e254]
lea edx, [esp + 0x10]
push edx
mov edx, dword [eax + 0x78]
mov ecx, edi
mov dword [esp + 0x14], ebx
call edx
movzx eax, ax
push eax
push 2
lea ecx, [ebp + 0x680]
call fcn.0053a420
fstp dword [esp + 0x14]
fldz
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4c8e5b
fld1
movzx ecx, word [esi + 0x272]
fstp dword [esp + 0x28]
mov dword [esp + 0x14], ecx
push 0xff000000
lea edx, [esp + 0x24]
fst dword [esp + 0x30]
push edx
fld dword [esi + 0x248]
push ecx
fstp dword [esp + 0x2c]
lea eax, [esp + 0x34]
fld1
lea ecx, [esi + 0x34c]
fsubrp st(1)
fild dword [esp + 0x20]
fmulp st(1)
fadd dword [esi + 0x24c]
fstp dword [esp + 0x30]
fstp dword [esp]
push ebx
push eax
call fcn.00429930
jmp 0x4c8e5f
cmp dword [edi + 0x378], 0x22b
jne 0x4c8e64
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [0x69e254]
add ecx, 0x680
mov dword [esp + 0x18], ebx
call fcn.0053a500
fstp dword [esp + 0x10]
fldz
fld dword [esp + 0x10]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4c8e4e
fld1
movzx edx, word [esi + 0x272]
fstp dword [esp + 0x20]
mov dword [esp + 0x10], edx
push 0xff000000
lea eax, [esp + 0x2c]
fst dword [esp + 0x28]
push eax
fld dword [esi + 0x248]
push ecx
fstp dword [esp + 0x34]
lea ecx, [esp + 0x2c]
fld1
fsubrp st(1)
fild dword [esp + 0x1c]
fmulp st(1)
fadd dword [esi + 0x24c]
fstp dword [esp + 0x38]
fstp dword [esp]
push ebx
push ecx
lea ecx, [esi + 0x34c]
call fcn.00429930
jmp 0x4c8e64
fstp st(0)
fstp st(0)
jmp 0x4c8e64
mov ebp, 1
jmp 0x4c8e65
fstp st(0)
fstp st(0)
mov ebp, 1
pop edi
mov ecx, dword [esi + 0x36c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
call eax
movzx ecx, ax
push ecx
call fcn.00525ec0
add esp, 4
cmp eax, ebp
jne 0x4c9010
mov ecx, dword [esi + 0x36c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xbc]
call eax
test ax, ax
je 0x4c8ed6
mov ecx, dword [esi + 0x244]
fldz
imul ecx, dword [esi + 0x240]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
shl edx, 0x18
or edx, dword [esi + 0x23c]
push edx
lea edx, [esi + 0x248]
push edx
push ecx
fstp dword [esp]
push ebx
push ebx
lea ecx, [esi + 0x380]
call fcn.00429930
mov eax, dword [0x69e254]
mov ecx, dword [esi + 0x36c]
mov dword [esp + 0xc], ebx
mov edx, dword [ecx]
cmp dword [eax + 0x404], ebx
mov eax, dword [edx + 0x78]
call eax
movzx eax, ax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [0x69e254]
push eax
push ebp
add ecx, 0x680
call fcn.0053a420
fstp dword [esp + 0x10]
fldz
fld dword [esp + 0x10]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4c8f74
fld1
movzx edx, word [esi + 0x272]
fstp dword [esp + 0x1c]
mov dword [esp + 0x10], edx
push 0xff000000
lea eax, [esp + 0x28]
fst dword [esp + 0x24]
push eax
fld dword [esi + 0x248]
push ecx
fstp dword [esp + 0x30]
lea ecx, [esp + 0x28]
fld1
fsubrp st(1)
fild dword [esp + 0x1c]
fmulp st(1)
fadd dword [esi + 0x24c]
fstp dword [esp + 0x34]
fstp dword [esp]
push ebx
push ecx
lea ecx, [esi + 0x34c]
call fcn.00429930
jmp 0x4c8f78
fstp st(0)
fstp st(0)
cmp dword [0x683144], ebx
je 0x4c9010
mov ecx, dword [0x6a4ef0]
mov eax, dword [0x6a4eec]
push ecx
push eax
mov ecx, esi
call fcn.0043bec0
cmp eax, ebp
jne 0x4c9010
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x4c8fde
mov eax, 0x10624dd3
mul ecx
shr edx, 6
lea eax, [edx + 1]
cmp dword [esi + 0x37c], eax
je 0x4c9010
push ecx
mov ecx, esi
mov dword [esi + 0x37c], eax
call fcn.004c8560
mov edx, dword [esp + 0x18]
mov dword [esi + 0x378], ebp
pop ebp
mov dword [esi + 0x23c], edx
pop esi
pop ebx
add esp, 0x38
ret
push ebx
mov ecx, esi
cmp dword [esi + 0x378], ebp
jne 0x4c900b
call fcn.004c8560
mov edx, dword [esp + 0x18]
pop ebp
mov dword [esi + 0x378], ebx
mov dword [esi + 0x37c], ebx
mov dword [esi + 0x23c], edx
pop esi
pop ebx
add esp, 0x38
ret
call fcn.004c8560
mov edx, dword [esp + 0x18]
mov dword [esi + 0x23c], edx
pop ebp
pop esi
pop ebx
add esp, 0x38
ret