Function at 0x4179f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x53c
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x100
xor eax, eax
mov edx, dword [ebx + 0x34]
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x30]
mov dword [esp + 0x2c], eax
mov eax, 1
mov edi, 4
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov dword [esp + 0x62], eax
mov dword [esp + 0x66], eax
mov dword [esp + 0x6e], eax
mov dword [esp + 0x7a], eax
mov dword [esp + 0x86], eax
mov dword [esp + 0x92], eax
mov dword [esp + 0x96], eax
mov dword [esp + 0x9e], eax
mov dword [esp + 0xaa], eax
mov dword [esp + 0xae], eax
mov dword [esp + 0xb6], eax
mov dword [esp + 0xba], eax
mov dword [esp + 0xc2], eax
mov dword [esp + 0xce], eax
mov dword [esp + 0xda], eax
mov eax, edx
imul eax, ecx
shl eax, 2
mov dword [esp + 0xde], eax
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x18]
push eax
mov eax, dword [ebx + 0x24]
mov word [esp + 0x74], di
mov word [esp + 0x80], di
mov word [esp + 0xc8], di
mov word [esp + 0xd4], di
mov word [esp + 0xe0], di
mov esi, 3
xor edi, edi
push eax
mov eax, dword [ebx + 0x20]
mov word [esp + 0x54], 0x4949
mov word [esp + 0x56], 0x2a
mov dword [esp + 0x58], 8
mov word [esp + 0x5c], 0xd
mov word [esp + 0x5e], 0xfe
mov word [esp + 0x60], si
mov word [esp + 0x6a], 0x103
mov word [esp + 0x6c], si
mov word [esp + 0x76], 0x100
mov dword [esp + 0x7e], ecx
mov word [esp + 0x82], 0x101
mov dword [esp + 0x8a], edx
mov word [esp + 0x8e], 0x102
mov word [esp + 0x90], si
mov dword [esp + 0x96], 0x20
mov word [esp + 0x9a], 0x115
mov word [esp + 0x9c], si
mov word [esp + 0xa6], 0x153
mov word [esp + 0xa8], si
mov dword [esp + 0xae], esi
mov word [esp + 0xb2], 0x106
mov word [esp + 0xb4], si
mov word [esp + 0xbe], 0x112
mov word [esp + 0xc0], si
mov word [esp + 0xca], 0x116
mov dword [esp + 0xd2], 0xffffffff
mov word [esp + 0xd6], 0x111
mov dword [esp + 0xde], 0x400
mov word [esp + 0xe2], 0x117
mov word [esp + 0xee], di
mov word [esp + 0xf0], di
mov dword [esp + 0xf2], edi
mov dword [esp + 0xf6], edi
push eax
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebx + 8]
push eax
push edx
push ecx
lea ecx, [esp + 0x126]
push str.C:_d_R:_d_X0:_.9lf_Y0:_.9lf_Gsd:_.6lf_Kap:_.9lf
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [ebp + 8]
push 0xc0000000
push edx
call fcn.00415ce0
mov esi, eax
add esp, 0x38
cmp esi, edi
je 0x417e54
cmp esi, 0xffffffff
je 0x417e54
lea eax, [esp + 0x2c]
push edi
push eax
lea ecx, [esp + 0x50]
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x30]
mov edi, dword [ebx + 0x38]
lea edx, [eax - 1]
imul edx, ecx
shl ecx, 2
lea edx, [edi + edx*4]
xor edi, edi
test eax, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
jle 0x417c92
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x34]
inc edi
sub ecx, edx
cmp edi, eax
mov dword [esp + 0x18], ecx
jl 0x417c64
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x448]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2e
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x44c]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
mov edi, str..tfw
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x44cc1c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x454]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417e54
fld qword [ebx + 0x18]
fld st(0)
fcos
mov ecx, dword [ebx + 0x34]
fstp qword [esp + 0x20]
fsin
fld qword [esp + 0x20]
fmul qword [ebx + 0x20]
fstp qword [esp + 0x30]
fld st(0)
fmul qword [ebx + 0x20]
fstp qword [esp + 0x40]
fld st(0)
fmul qword [ebx + 0x28]
fstp qword [esp + 0x38]
fld qword [esp + 0x20]
fmul qword [ebx + 0x28]
fchs
fst qword [esp + 0x18]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
jne 0x417d6a
fstp st(0)
fld qword [ebx + 8]
jmp 0x417d7d
lea edx, [ecx - 1]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmul qword [ebx + 0x28]
fmulp st(1)
fsubr qword [ebx + 8]
fld qword [esp + 0x18]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
jne 0x417d93
fld qword [ebx + 0x10]
jmp 0x417da6
dec ecx
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fmul qword [ebx + 0x28]
fmul qword [esp + 0x20]
fadd qword [ebx + 0x10]
fld qword [esp + 0x30]
fmul qword [0x442540]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
fsubr st(2)
mov edi, dword [sym.imp.MSVCRT.dll_fprintf]
push eax
push ecx
push str._t_.12lf_n
fstp qword [esp + 0x2c]
fld qword [esp + 0x24]
fmul qword [0x442540]
push esi
fsubr st(1)
fstp qword [esp + 0x20]
fstp st(0)
fstp st(0)
call edi
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
push edx
push eax
push str._t_.12lf_n
push esi
call edi
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push ecx
push edx
push str._t_.12lf_n
push esi
call edi
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push eax
push ecx
push str._t_.12lf_n
push esi
call edi
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
add esp, 0x40
push edx
push eax
push str._t_.12lf_n
push esi
call edi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
push str._t_.12lf_n
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x24
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8