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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0xc], 0
xor eax, eax
mov word [ebp - 4], ax
xor ecx, ecx
mov word [ebp - 8], cx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [edx + 0x28], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp + 0xc]
fld dword [edx + 0x2c]
mov eax, dword [ebp + 0xc]
fdiv dword [eax + 0x3c]
fadd qword [0x5e8688]
fnstcw word [ebp - 0xe]
movzx eax, word [ebp - 0xe]
or eax, 0xc00
mov dword [ebp - 0x14], eax
fldcw word [ebp - 0x14]
fistp qword [ebp - 0x1c]
fldcw word [ebp - 0xe]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
fld dword [eax + 0x3c]
fstp dword [edx + 0x34]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
fld dword [edx + 0x2c]
fstp dword [ecx + 0x38]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
fld dword [ecx + 0x30]
fstp dword [eax + 0x3c]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
fld dword [eax + 0x34]
fstp dword [edx + 0x40]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
fld dword [edx + 0x38]
fstp dword [ecx + 0x44]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x70], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x74], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
fild qword [ebp - 0x24]
mov edx, dword [ebp + 0xc]
fdivr dword [edx + 0x2c]
mov eax, dword [ebp + 8]
fstp dword [eax + 0x60]
mov ecx, dword [ebp + 0xc]
fld dword [ecx + 0x30]
mov edx, dword [ebp + 0xc]
fsub dword [edx + 0x34]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0
fild qword [ebp - 0x2c]
fdivp st(1)
mov edx, dword [ebp + 8]
fstp dword [edx + 0x64]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
xor edx, edx
div dword [ecx + 0x14]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
fild qword [ebp - 0x34]
mov edx, dword [ebp + 8]
fstp dword [edx + 0x68]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x20]
xor edx, edx
div dword [ecx + 0x18]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
fild qword [ebp - 0x3c]
mov edx, dword [ebp + 8]
fstp dword [edx + 0x6c]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0xc]
add ecx, dword [edx + 0x1c]
mov eax, dword [ebp + 8]
mov dword [eax + 0x50], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x4c], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
sub eax, dword [edx + 0x20]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x24], 0
je 0x414f08
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x78
push edx
call fcn.00407770
add esp, 8
push 2
mov eax, dword [0x6208e4]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x78
push ecx
call fcn.00410630
add esp, 0xc
mov word [ebp - 4], ax
movzx edx, word [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [eax + 0x58], edx
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x28], 0
je 0x414f71
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x28]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x8a
push ecx
call fcn.00407770
add esp, 8
push 2
mov edx, dword [0x6208e4]
push edx
mov eax, dword [ebp + 8]
add eax, 0x8a
push eax
call fcn.00410630
add esp, 0xc
mov word [ebp - 8], ax
movzx eax, word [ebp - 8]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x1e
jge 0x414f62
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5c], 0x1e
jmp 0x414f71
movzx eax, word [ebp - 8]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x5c], eax
mov esp, ebp
pop ebp
ret