Function at 0x409bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push esi
push edi
movsx eax, word [0x456494]
imul eax, eax, 0x38b48779
mov word [0x456494], ax
mov ecx, dword [ebp + 8]
call fcn.004023c0
cmp eax, 0x8000
jbe 0x409f07
fld dword [str.PeN0]
fsub qword [0x450050]
fstp dword [str.PeN0]
fld dword [str.PeN0]
fsubr qword [0x450640]
fsubr qword [0x456460]
fstp qword [0x456460]
fld dword [0x45634c]
fld dword [0x4562c8]
fsubr qword [0x450638]
fsubrp st(1)
movsx ecx, word [0x4561b8]
add ecx, 0x48353300
mov dword [ebp - 0x444], ecx
fild dword [ebp - 0x444]
fld dword [0x45634c]
fsub qword [0x450050]
fstp dword [0x45634c]
fxch st(1)
fcompi st(1)
fstp st(0)
jb 0x409c86
mov edx, dword [0x4561fc]
mov dword [ebp - 0x448], edx
fild dword [ebp - 0x448]
fadd dword [0x456208]
call fcn.004249a0
mov dword [0x4561fc], eax
fld dword [0x456208]
fsub qword [0x450050]
fstp dword [0x456208]
lea eax, [ebp - 0x130]
push eax
call fcn.00410490
add esp, 4
mov dword [ebp - 0x10], eax
call fcn.0041c7f0
movzx ecx, al
and ecx, 0x80000003
jns 0x409cad
dec ecx
or ecx, 0xfffffffc
inc ecx
add ecx, 7
push ecx
mov edx, dword [ebp - 0x10]
lea eax, [ebp + edx - 0x130]
push eax
call section..text
add esp, 8
push 5
push 0x1639
call fcn.0040ad50
add esp, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x44c], ecx
mov edx, dword [ebp - 0x44c]
mov dword [ebp - 0x450], edx
mov eax, dword [ebp - 0x44c]
mov cl, byte [eax]
mov byte [ebp - 0x451], cl
add dword [ebp - 0x44c], 1
cmp byte [ebp - 0x451], 0
jne 0x409ceb
mov edx, dword [ebp - 0x44c]
sub edx, dword [ebp - 0x450]
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x45c], edx
lea ecx, [ebp - 0x130]
add ecx, 0xffffffff
mov dword [ebp - 0x460], ecx
mov edx, dword [ebp - 0x460]
mov al, byte [edx + 1]
mov byte [ebp - 0x461], al
add dword [ebp - 0x460], 1
cmp byte [ebp - 0x461], 0
jne 0x409d36
mov edi, dword [ebp - 0x460]
mov esi, dword [ebp - 0x458]
mov edx, dword [ebp - 0x45c]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 3
push 0x3b20
call fcn.0040ad50
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push eax
push 5
call fcn.0040a780
add esp, 8
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x130]
push edx
call fcn.0042559e
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push eax
push 3
call fcn.0040a780
add esp, 8
cmp dword [ebp - 0x14], 0
je 0x409ef1
mov ecx, dword [0x456468]
add ecx, 0x5e935da3
mov dword [0x456468], ecx
mov edx, dword [ebp - 0x14]
push edx
push 1
mov ecx, dword [ebp + 8]
call fcn.004023c0
push eax
mov ecx, dword [ebp + 8]
call fcn.00423790
push eax
call fcn.00425468
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042529d
add esp, 4
mov ecx, dword [ebp + 8]
call fcn.00416010
mov byte [ebp - 0x33c], 0
push 0x104
lea ecx, [ebp - 0x440]
push ecx
push 0
call dword [0x457c0c]
mov byte [ebp - 0x131], 0
push 0x15
push 0xa84
call fcn.0040ad50
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [0x457fc0]
push edx
mov eax, dword [0x45801c]
push eax
lea ecx, [ebp - 0x440]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0x207
lea eax, [ebp - 0x338]
push eax
call fcn.00425165
add esp, 0x18
mov ecx, dword [0x4561fc]
add ecx, 0x38debfdf
mov dword [0x4561fc], ecx
mov edx, dword [ebp - 8]
push edx
push 0x15
call fcn.0040a780
add esp, 8
mov eax, dword [0x457fc0]
push eax
call fcn.00415550
add esp, 4
lea ecx, [ebp - 0x338]
push ecx
lea edx, [ebp - 0x130]
push edx
call fcn.0041c990
add esp, 8
push 0x208
push 0
lea eax, [ebp - 0x338]
push eax
call fcn.00424ac0
add esp, 0xc
push 0x105
push 0
lea ecx, [ebp - 0x440]
push ecx
call fcn.00424ac0
add esp, 0xc
push 0x15f90
call dword [0x457c20]
lea edx, [ebp - 0x130]
push edx
call dword [0x458270]
push 0x118
push 0
lea eax, [ebp - 0x130]
push eax
call fcn.00424ac0
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret