Function at 0x403550
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x44cc68
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x4584e4]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov esi, ecx
fldz
fcomp qword [ebp + 8]
fnstsw ax
test ah, 1
jne 0x4035ab
mov eax, 0xffffffff
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCR90.dll_remove]
mov ebx, dword [sym.imp.MSVCR90.dll_printf]
push esi
push str._Input_____:__s_n
call ebx
fld qword [ebp + 8]
add esp, 4
fstp qword [esp]
push str._Radius____:__.3lf_n
call ebx
push 0x44f3d8
call ebx
mov edi, dword [sym.imp.MSVCR90.dll_fopen]
push 0x44f39c
push esi
call edi
mov esi, eax
add esp, 0x18
mov dword [esp + 0x28], esi
test esi, esi
je 0x40377b
mov ecx, dword [ebp + 0x10]
push 0x44f3d4
push ecx
call edi
mov edi, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x30], edi
cmp edi, eax
je 0x40377b
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov byte [esp + 0xc0], 2
call dword [sym.imp.MSVCR90.dll_clock]
mov dword [esp + 0x3c], eax
push esi
push 1
lea edx, [esp + 0x34]
push 4
push edx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x403794
push esi
push eax
lea eax, [esp + 0x4c]
push 8
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
sete al
test al, al
je 0x403794
fld qword [esp + 0x44]
sub esp, 8
fstp qword [esp]
push str._Offseting_level_z___.3lf_..._n
call ebx
xor esi, esi
add esp, 0xc
cmp dword [esp + 0x2c], esi
jle 0x4036f1
nop
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x44]
push edx
lea edi, [esp + 0x6c]
call fcn.00402cc0
fld qword [ebp + 8]
add esp, 8
lea eax, [esp + 0x54]
push eax
sub esp, 8
mov ecx, edi
fstp qword [esp]
call fcn.00403080
add esp, 0xc
test eax, eax
jne 0x403759
inc esi
cmp esi, dword [esp + 0x2c]
jl 0x4036b0
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x5c]
fld qword [esp + 0x44]
sub ecx, dword [esp + 0x58]
test ecx, 0xfffffffc
je 0x403723
lea edx, [esp + 0x54]
push edx
sub esp, 8
mov eax, edi
fstp qword [esp]
call fcn.00402860
mov esi, dword [esp + 0x34]
add esp, 0xc
jmp 0x403657
mov esi, dword [sym.imp.MSVCR90.dll_fwrite]
fstp qword [esp + 0x4c]
push edi
push 1
lea eax, [esp + 0x3c]
push 4
push eax
mov dword [esp + 0x44], 0
call esi
push edi
push 1
lea ecx, [esp + 0x64]
push 8
push ecx
call esi
mov esi, dword [esp + 0x48]
add esp, 0x20
jmp 0x403657
mov eax, dword [esp + 0x58]
test eax, eax
je 0x40376a
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x68]
test eax, eax
je 0x40377b
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCR90.dll_clock]
lea edx, [esp + 0x38]
mov dword [esp + 0x38], eax
push edx
lea eax, [esp + 0x40]
push eax
call fcn.004061d0
push esi
mov esi, dword [sym.imp.MSVCR90.dll_fclose]
call esi
push edi
call esi
push 0x44f3d8
call ebx
mov ecx, dword [ebp + 0x10]
push ecx
push str._Output__s_n
call ebx
push 0x44f3d8
call ebx
mov eax, dword [esp + 0x78]
add esp, 0x20
test eax, eax
je 0x4037e6
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4037f7
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret