Function at 0x40279f
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x417b94
call fcn.004174a4
sub esp, 0x90
mov eax, dword [0x41d3a8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x34], 0x4194b0
mov dword [ebp - 0x2c], 0x1000
push 0x1000
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x40], eax
and dword [ebp - 0x44], 0
and dword [ebp - 0x38], 0
and dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0x58016b48
mov word [ebp - 0x1c], 0x6106
mov word [ebp - 0x1a], 0x4413
mov byte [ebp - 0x18], 0xab
mov byte [ebp - 0x17], 0x35
mov byte [ebp - 0x16], 0x4c
mov byte [ebp - 0x15], 0x9d
mov byte [ebp - 0x14], 0xdb
mov byte [ebp - 0x13], 0x30
mov byte [ebp - 0x12], 6
mov byte [ebp - 0x11], 7
and dword [ebp - 0x3c], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
push eax
push 0x419478
push 1
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402ac6
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x34]
push eax
push 0
push dword [ebp - 0x74]
push dword [ebp - 0x88]
mov eax, dword [ebp - 0x88]
mov eax, dword [eax]
call dword [eax + 0x1c]
test eax, eax
jl 0x402ac6
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x78], eax
and dword [ebp - 0x48], 0
cmp dword [ebp - 0x78], 0
je 0x40289f
lea eax, [ebp - 0x48]
push eax
push 0x419468
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
push dword [ebp - 0x78]
call dword [eax]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x7c], eax
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x7c]
call dword [0x41d3fc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x40292a
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x5c], eax
push dword [ebp - 0x5c]
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, dword [ebp - 0x84]
mov dword [eax + 0x40], 0x80004005
mov dword [ebp - 0x60], 0x80004005
mov byte [ebp - 4], 0
cmp dword [ebp - 0x48], 0
je 0x40290c
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x3c], 0
je 0x402922
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x60]
jmp 0x402afa
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x44]
push eax
push 0x1000
push dword [ebp - 0x40]
push dword [ebp - 0x8c]
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x84]
mov dword [ecx + 0x40], eax
mov eax, dword [ebp - 0x84]
cmp dword [eax + 0x40], 0
jl 0x402a7f
cmp dword [ebp - 0x44], 0
je 0x40297e
mov eax, dword [ebp - 0x84]
movzx eax, byte [eax + 0x2c]
cmp eax, 1
jne 0x402983
jmp 0x402a7f
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x94], eax
and dword [ebp - 0x90], 0
fild qword [ebp - 0x94]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x9c], eax
and dword [ebp - 0x98], 0
fild qword [ebp - 0x9c]
fdivp st(1)
fstp qword [ebp - 0x54]
push 0
fld qword [ebp - 0x54]
fmul qword [0x4194a8]
call fcn.004174cc
push eax
push 0x402
push 0x74
mov eax, dword [ebp - 0x84]
push dword [eax + 0x10]
call dword [0x41d498]
push 0
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x44]
push dword [ebp - 0x40]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402a05
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x44]
je 0x402a7a
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x80], eax
push dword [ebp - 0x80]
call dword [0x41d400]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x64], eax
push dword [ebp - 0x64]
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, dword [ebp - 0x84]
mov dword [eax + 0x40], 0x80004005
mov dword [ebp - 0x68], 0x80004005
mov byte [ebp - 4], 0
cmp dword [ebp - 0x48], 0
je 0x402a5c
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x3c], 0
je 0x402a72
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x68]
jmp 0x402afa
jmp 0x40292a
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x84]
movzx eax, byte [eax + 0x2c]
cmp eax, 1
jne 0x402aa6
mov eax, dword [ebp - 0x84]
mov dword [eax + 0x40], 1
jmp 0x402ab0
mov eax, dword [ebp - 0x84]
and dword [eax + 0x40], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x48], 0
je 0x402ac6
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x6c]
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x70], eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x3c], 0
je 0x402af7
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00417374
leave
ret