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

Disassembly:
sub esp, 0x48
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1f8]
xor ebp, ebp
cmp dword [esi + 0x10], ebp
mov dword [esp + 0x14], eax
je 0x4af045
call fcn.0041de20
cmp dword [esi + 0x2d4], ebp
je 0x4ae904
mov ecx, dword [esi + 0x200]
fldz
imul ecx, dword [esi + 0x1fc]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
shl edx, 0x18
or edx, dword [esi + 0x1f8]
push edx
lea edx, [esi + 0x204]
push edx
push ecx
fstp dword [esp]
push ebp
push ebp
lea ecx, [esi + 0x2d0]
call fcn.0041ff10
cmp dword [esi + 0x2f4], ebp
je 0x4ae965
mov ecx, dword [esi + 0x200]
fld dword [esi + 0x204]
imul ecx, dword [esi + 0x1fc]
fadd qword [0x5641c8]
fstp dword [esp + 0xc]
fld dword [esi + 0x208]
fadd qword [0x56cae8]
mov eax, 0x51eb851f
fstp dword [esp + 0x10]
fldz
mul ecx
shr edx, 5
shl edx, 0x18
or edx, dword [esi + 0x1f8]
push edx
lea edx, [esp + 0x10]
push edx
push ecx
fstp dword [esp]
push ebp
push ebp
lea ecx, [esi + 0x2f0]
call fcn.0041ff10
mov ecx, dword [esi + 0x330]
cmp ecx, ebp
push ebx
mov ebx, 1
je 0x4aec3b
mov eax, dword [ecx]
mov edx, dword [eax + 0x78]
call edx
push eax
call fcn.00509880
add esp, 4
cmp eax, ebx
je 0x4aea49
mov ecx, dword [esi + 0x330]
mov eax, dword [ecx]
mov edx, dword [eax + 0x78]
call edx
push eax
mov ecx, 0x649790
call fcn.004976b0
test eax, eax
je 0x4aea49
mov eax, dword [esi + 0x338]
push eax
push 0x564720
push 0x649ab4
call dword [sym.imp.USER32.dll_wsprintfA]
fld dword [esi + 0x204]
add esp, 0xc
call fcn.00551860
fld dword [esi + 0x208]
add eax, 0xd
mov dword [esp + 0x24], eax
call fcn.00551860
add eax, 0x1d
mov dword [esp + 0x28], eax
mov eax, 0x649ab4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4aea00
mov edx, dword [esi + 0x200]
imul edx, dword [esi + 0x1fc]
sub eax, ecx
mov ecx, eax
mov eax, 0x51eb851f
mul edx
shr edx, 5
push 0xb4191919
shl edx, 0x18
or edx, dword [esi + 0x1f8]
lea eax, [esp + 0x28]
push edx
push eax
push ecx
push 0x649ab4
push ebp
mov ecx, 0x647ca8
call fcn.0041d060
mov ecx, dword [esi + 0x330]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
call eax
push eax
call fcn.00509880
add esp, 4
cmp eax, 3
jne 0x4aea76
lea ecx, [esi + 0x204]
push ecx
mov ecx, dword [esi + 0x330]
call fcn.00525150
mov ecx, dword [esi + 0x330]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
push edi
call eax
push eax
call fcn.00509880
add esp, 4
cmp eax, 2
jne 0x4aec3a
mov ecx, dword [esi + 0x330]
mov edx, dword [ecx]
mov eax, dword [edx + 0x74]
call eax
push eax
mov ecx, 0x649790
call fcn.00497140
mov edi, eax
cmp edi, ebp
je 0x4aec3a
test dword [edi + 0x2e8], 0x1000
je 0x4aee46
mov ecx, esi
call fcn.0041bf30
fld dword [esi + 0x204]
call fcn.00551860
fld dword [esi + 0x208]
add eax, 9
mov dword [esp + 0x38], eax
call fcn.00551860
push 0xfffafa80
lea ecx, [esp + 0x3c]
push ecx
push 4
add eax, 0xf
push 0x5eb
mov ecx, 0x64aa48
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.004bcff0
push eax
push ebp
mov ecx, 0x647ca8
call fcn.0041cf20
mov eax, dword [edi]
lea edx, [esp + 0x10]
push edx
mov edx, dword [eax + 0x78]
mov dword [esp + 0x14], ebp
mov ebp, dword [0x648a5c]
mov ecx, edi
call edx
push eax
push 2
lea ecx, [ebp + 0x694]
call fcn.005131a0
fstp dword [esp + 0x14]
fldz
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x4aec38
mov eax, 0x10624dd3
mul dword [esp + 0x10]
shr edx, 6
add edx, ebx
push edx
push 0x564720
push 0x649aac
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
fld dword [esi + 0x204]
call fcn.00551860
fld dword [esi + 0x208]
add eax, 0xd
mov dword [esp + 0x48], eax
call fcn.00551860
add eax, 2
mov dword [esp + 0x4c], eax
mov eax, 0x649aac
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4aebb3
push 0xffb9b9b9
sub eax, ecx
push 0xd2fafafa
lea ecx, [esp + 0x50]
push ecx
push eax
push 0x649aac
push 0xe
mov ecx, 0x647ca8
call fcn.0041d060
fld1
movzx edx, word [esi + 0x22e]
fstp dword [esp + 0x28]
fld dword [esp + 0x14]
mov dword [esp + 0x14], edx
fst dword [esp + 0x2c]
push 0xff000000
fld dword [esi + 0x204]
lea eax, [esp + 0x24]
fstp dword [esp + 0x24]
push eax
fld1
push ecx
fsubrp st(1)
lea ecx, [esp + 0x34]
fild dword [esp + 0x20]
fmulp st(1)
fadd dword [esi + 0x208]
fstp dword [esp + 0x30]
fldz
fstp dword [esp]
push 0
push ecx
lea ecx, [esi + 0x310]
call fcn.0041ff10
xor ebp, ebp
pop edi
mov ecx, dword [esi + 0x330]
mov eax, dword [ecx]
mov edx, dword [eax + 0x78]
call edx
push eax
call fcn.00509880
add esp, 4
cmp eax, ebx
jne 0x4af03a
mov ecx, dword [esi + 0x330]
mov eax, dword [ecx]
mov edx, dword [eax + 0xbc]
call edx
test ax, ax
je 0x4aeca9
mov ecx, dword [esi + 0x200]
fldz
imul ecx, dword [esi + 0x1fc]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
shl edx, 0x18
or edx, dword [esi + 0x1f8]
push edx
lea edx, [esi + 0x204]
push edx
push ecx
fstp dword [esp]
push ebp
push ebp
lea ecx, [esi + 0x344]
call fcn.0041ff10
mov eax, dword [0x648a5c]
mov ecx, dword [esi + 0x330]
mov dword [esp + 0xc], ebp
mov edx, dword [ecx]
cmp dword [eax + 0x434], ebp
mov eax, dword [edx + 0x78]
call eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [0x648a5c]
movzx edx, ax
push edx
push ebx
add ecx, 0x694
call fcn.005131a0
fstp dword [esp + 0x10]
fldz
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x4aedd4
mov eax, 0x10624dd3
mul dword [esp + 0xc]
shr edx, 6
add edx, ebx
push edx
push 0x564720
push 0x649aa4
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
fld dword [esi + 0x204]
call fcn.00551860
fld dword [esi + 0x208]
add eax, 0xd
mov dword [esp + 0x44], eax
call fcn.00551860
add eax, 2
mov dword [esp + 0x48], eax
mov eax, 0x649aa4
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
lea ecx, [eax + 1]
jmp 0x4aed50
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4aed50
push 0xffb9b9b9
sub eax, ecx
push 0xd2fafafa
lea ecx, [esp + 0x4c]
push ecx
push eax
push 0x649aa4
push 0xe
mov ecx, 0x647ca8
call fcn.0041d060
fld1
movzx edx, word [esi + 0x22e]
fstp dword [esp + 0x1c]
fld dword [esp + 0x10]
mov dword [esp + 0x10], edx
fst dword [esp + 0x20]
push 0xff000000
fld dword [esi + 0x204]
lea eax, [esp + 0x28]
fstp dword [esp + 0x28]
push eax
fld1
push ecx
fsubrp st(1)
lea ecx, [esp + 0x28]
fild dword [esp + 0x1c]
fmulp st(1)
fadd dword [esi + 0x208]
fstp dword [esp + 0x34]
fldz
fstp dword [esp]
push ebp
push ecx
lea ecx, [esi + 0x310]
call fcn.0041ff10
cmp dword [0x62ae00], ebp
je 0x4af03a
mov ecx, dword [0x650624]
mov eax, dword [0x650620]
push ecx
push eax
mov ecx, esi
call fcn.00431fb0
cmp eax, ebx
jne 0x4af03a
mov ecx, dword [esp + 0xc]
cmp ecx, ebp
je 0x4af008
mov eax, 0x10624dd3
mul ecx
shr edx, 6
lea eax, [edx + 1]
cmp dword [esi + 0x340], eax
je 0x4af03a
push ecx
mov ecx, esi
mov dword [esi + 0x340], eax
call fcn.004ae2b0
mov edx, dword [esp + 0x18]
mov dword [esi + 0x33c], ebx
pop ebx
mov dword [esi + 0x1f8], edx
pop esi
pop ebp
add esp, 0x48
ret
mov ecx, edi
call fcn.004928c0
cmp eax, 0x22b
jne 0x4aef69
mov ecx, dword [0x648a5c]
lea edx, [esp + 0x14]
push edx
add ecx, 0x694
mov dword [esp + 0x18], ebp
call fcn.00513280
fstp dword [esp + 0x10]
fldz
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x4aec3a
mov eax, 0x10624dd3
mul dword [esp + 0x14]
shr edx, 6
add edx, ebx
push edx
push 0x564720
push 0x649a9c
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
fld dword [esi + 0x204]
call fcn.00551860
fld dword [esi + 0x208]
add eax, 0xd
mov dword [esp + 0x48], eax
call fcn.00551860
add eax, 2
mov dword [esp + 0x4c], eax
mov eax, 0x649a9c
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4aeee0
push 0xffb9b9b9
sub eax, ecx
push 0xd2fafafa
lea ecx, [esp + 0x50]
push ecx
push eax
push 0x649a9c
push 0xe
mov ecx, 0x647ca8
call fcn.0041d060
fld1
movzx edx, word [esi + 0x22e]
fstp dword [esp + 0x20]
fld dword [esp + 0x10]
mov dword [esp + 0x10], edx
fst dword [esp + 0x24]
push 0xff000000
fld dword [esi + 0x204]
lea eax, [esp + 0x2c]
fstp dword [esp + 0x2c]
push eax
fld1
push ecx
fsubrp st(1)
lea ecx, [esp + 0x2c]
fild dword [esp + 0x1c]
fmulp st(1)
fadd dword [esi + 0x208]
fstp dword [esp + 0x38]
fldz
fstp dword [esp]
push ebp
push ecx
lea ecx, [esi + 0x310]
call fcn.0041ff10
jmp 0x4aec3a
mov ecx, edi
call fcn.004928c0
cmp eax, 0x200
jne 0x4aec3a
mov ecx, dword [0x648a5c]
lea edx, [esp + 0x14]
push edx
add ecx, 0x694
mov dword [esp + 0x18], ebp
call fcn.00513320
fstp dword [esp + 0x10]
fldz
fld dword [esp + 0x10]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4aefff
fld1
movzx eax, word [esi + 0x22e]
fstp dword [esp + 0x20]
mov dword [esp + 0x10], eax
push 0xff000000
lea ecx, [esp + 0x2c]
fst dword [esp + 0x28]
push ecx
fld dword [esi + 0x204]
push ecx
fstp dword [esp + 0x34]
lea edx, [esp + 0x2c]
fld1
lea ecx, [esi + 0x310]
fsubrp st(1)
fild dword [esp + 0x1c]
fmulp st(1)
fadd dword [esi + 0x208]
fstp dword [esp + 0x38]
fstp dword [esp]
push ebp
push edx
call fcn.0041ff10
jmp 0x4aec3a
fstp st(0)
fstp st(0)
jmp 0x4aec3a
cmp dword [esi + 0x33c], ebx
push ebp
mov ecx, esi
jne 0x4af035
call fcn.004ae2b0
mov edx, dword [esp + 0x18]
pop ebx
mov dword [esi + 0x33c], ebp
mov dword [esi + 0x340], ebp
mov dword [esi + 0x1f8], edx
pop esi
pop ebp
add esp, 0x48
ret
call fcn.004ae2b0
mov edx, dword [esp + 0x18]
mov dword [esi + 0x1f8], edx
pop ebx
pop esi
pop ebp
add esp, 0x48
ret