Function at 0x4048f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
push ecx
sub esp, 0x34
mov edx, dword [ecx]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x1c], edi
mov ebx, dword [ecx + 0xc]
mov esi, dword [edx + 4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], esi
fild qword [ebp - 0x20]
fmul qword [ecx + 4]
fnstcw word [ebp - 0x12]
mov ecx, dword fs:[0x18]
movzx eax, word [ebp - 0x12]
or ah, 0xc
mov word [ebp - 0x14], ax
movzx eax, word [edx + 0xc]
fldcw word [ebp - 0x14]
fistp dword [ebp - 0x20]
fldcw word [ebp - 0x12]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x20], edx
imul eax, esi
mov dword [ebp - 0x18], esi
mov dword [ebx], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test esi, esi
jle 0x404a2b
mov edx, dword [ebp - 0x20]
xor ebx, ebx
mov dword [ebp - 0x34], eax
mov esi, eax
mov dword [ebp - 0x1c], ebx
xor ebx, ebx
mov ecx, dword [edx + 4]
movzx edi, word [edx + 0xe]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], ecx
fild qword [ebp - 0x20]
fstp qword [ebp - 0x28]
jmp 0x4049c8
cmp di, 0x10
je 0x404a40
cmp di, 0x18
je 0x404a80
cmp di, 0x20
je 0x404ae0
fstp st(0)
add ebx, 1
cmp dword [ebp - 0x18], ebx
je 0x404a28
mov dword [ebp - 0x20], ebx
fild dword [ebp - 0x20]
fmul qword [0x42e168]
fdiv qword [ebp - 0x28]
fstp qword [esp]
call dword [sym.imp.msvcrt.dll_sin]
cmp di, 8
jne 0x4049a0
fnstcw word [ebp - 0x12]
fadd dword [0x42e170]
mov eax, dword [ebp - 0x2c]
fmul dword [0x42e174]
movzx edx, word [ebp - 0x12]
or dh, 0xc
mov word [ebp - 0x14], dx
cmp word [eax + 2], 2
fldcw word [ebp - 0x14]
fistp word [ebp - 0x20]
fldcw word [ebp - 0x12]
movzx edx, word [ebp - 0x20]
mov byte [esi], dl
je 0x404ad0
add esi, 1
add ebx, 1
cmp dword [ebp - 0x18], ebx
jne 0x4049c8
mov eax, dword [ebp - 0x34]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
fnstcw word [ebp - 0x12]
fmul dword [0x42e178]
fsub dword [0x42e17c]
mov eax, dword [ebp - 0x2c]
movzx edx, word [ebp - 0x12]
or dh, 0xc
mov word [ebp - 0x14], dx
cmp word [eax + 2], 2
fldcw word [ebp - 0x14]
fistp word [ebp - 0x20]
fldcw word [ebp - 0x12]
movzx edx, word [ebp - 0x20]
mov word [esi], dx
je 0x404b30
add esi, 2
jmp 0x4049c0
fnstcw word [ebp - 0x12]
fmul dword [0x42e180]
fsub dword [0x42e17c]
mov eax, dword [ebp - 0x2c]
movzx edx, word [ebp - 0x12]
or dh, 0xc
mov word [ebp - 0x14], dx
fldcw word [ebp - 0x14]
fistp dword [ebp - 0x20]
fldcw word [ebp - 0x12]
mov edx, dword [ebp - 0x20]
mov ecx, edx
mov word [esi], dx
sar ecx, 0x10
cmp word [eax + 2], 2
mov byte [esi + 2], cl
je 0x404b60
add esi, 3
jmp 0x4049c0
mov byte [esi + 1], dl
add esi, 2
jmp 0x4049c0
mov eax, dword [ebp - 0x2c]
movzx edx, word [eax + 2]
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x404b40
fnstcw word [ebp - 0x12]
fmul qword [0x42e188]
fsub dword [0x42e17c]
movzx ecx, word [ebp - 0x12]
or ch, 0xc
mov word [ebp - 0x14], cx
fldcw word [ebp - 0x14]
fistp dword [ebp - 0x20]
fldcw word [ebp - 0x12]
mov ecx, dword [ebp - 0x20]
mov dword [esi], ecx
cmp dx, 2
je 0x404b70
jmp 0x404b22
fstp st(0)
add esi, 4
jmp 0x4049c0
mov word [esi + 2], dx
add esi, 4
jmp 0x4049c0
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fst dword [esi]
cmp dx, 2
jne 0x404b20
fstp dword [esi + 4]
add esi, 8
jmp 0x4049c0
mov word [esi + 3], dx
add esi, 6
mov byte [esi - 1], cl
jmp 0x4049c0
mov dword [esi + 4], ecx
add esi, 8
jmp 0x4049c0