Function at 0x40c7d0
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x457380
mov eax, dword fs:[0]
push eax
sub esp, 0x268
push ebx
push esi
push edi
mov eax, dword [0x461b6c]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x24]
push edi
call dword [sym.imp.MSVCR90.dll_remove]
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCR90.dll_fopen]
push 0x4595bc
push eax
call esi
xor ebx, ebx
add esp, 0xc
mov dword [esp + 0x48], eax
cmp eax, ebx
jne 0x40c843
or eax, 0xffffffff
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
push 0x4595bc
push ecx
call esi
add esp, 8
mov dword [esp + 0x60], eax
cmp eax, ebx
je 0x40c82a
mov edx, dword [ebp + 0x10]
push 0x4595bc
push edx
call esi
mov esi, eax
add esp, 8
mov dword [esp + 0x44], esi
cmp esi, ebx
je 0x40c82a
push 0x459470
push edi
call fcn.004135b0
add esp, 8
mov dword [esp + 0x5c], eax
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0x280], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
lea ecx, [esp + 0xe4]
mov byte [esp + 0x280], 3
call fcn.00409df0
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], 0x64
mov byte [esp + 0x280], 6
call dword [sym.imp.MSVCR90.dll_clock]
mov dword [esp + 0xc4], eax
jmp 0x40c917
mov esi, dword [esp + 0x44]
xor ebx, ebx
mov eax, dword [esp + 0x48]
mov edi, dword [sym.imp.MSVCR90.dll_fread]
push eax
push 1
lea ecx, [esp + 0x90]
push 4
push ecx
call edi
add esp, 0x10
cmp eax, 1
jne 0x40ccc0
mov edx, dword [esp + 0x48]
push edx
push eax
lea eax, [esp + 0xbc]
push 8
push eax
call edi
add esp, 0x10
cmp eax, 1
sete al
cmp al, bl
je 0x40ccc0
fld qword [esp + 0xb4]
sub esp, 8
fstp qword [esp]
push str._Computing_mid_path_of_level_z___.3lf_..._n
call dword [sym.imp.MSVCR90.dll_printf]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x88]
add esp, 0xc
cmp ecx, eax
je 0x40c99b
push ecx
push eax
push eax
call fcn.004020f0
add esp, 0xc
mov dword [esp + 0x7c], eax
push esi
push 1
lea ecx, [esp + 0x94]
push 4
push ecx
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c9c3
push esi
push eax
lea edx, [esp + 0xe4]
push 8
push edx
call edi
add esp, 0x10
xor esi, esi
cmp dword [esp + 0x8c], ebx
jle 0x40c9fa
mov edi, edi
lea eax, [esp + 0xdc]
push eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x78]
push ecx
lea ebx, [esp + 0xd0]
call fcn.0040bee0
inc esi
add esp, 8
cmp esi, dword [esp + 0x8c]
jl 0x40c9d0
mov esi, dword [esp + 0x60]
push esi
push 1
lea edx, [esp + 0x8c]
push 4
push edx
call edi
add esp, 0x10
cmp eax, 1
jne 0x40ca26
push esi
push eax
lea eax, [esp + 0xd4]
push 8
push eax
call edi
add esp, 0x10
lea ebx, [esp + 0x64]
call fcn.0040bd60
xor esi, esi
xor edi, edi
cmp dword [esp + 0x84], esi
jle 0x40cb13
push 0x10
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, esi
je 0x40ca59
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
jmp 0x40ca5b
xor eax, eax
mov ebx, dword [esp + 0x68]
mov byte [esp + 0x280], 6
mov dword [esp + 0xb0], eax
cmp ebx, esi
jne 0x40ca76
xor ecx, ecx
jmp 0x40ca7f
mov ecx, dword [esp + 0x70]
sub ecx, ebx
sar ecx, 2
mov edx, dword [esp + 0x6c]
mov esi, edx
sub esi, ebx
sar esi, 2
cmp esi, ecx
jae 0x40ca99
mov dword [edx], eax
add edx, 4
mov dword [esp + 0x6c], edx
jmp 0x40cab1
lea ecx, [esp + 0xb0]
push ecx
push 1
push edx
lea ecx, [esp + 0x70]
call fcn.00404c50
mov edx, dword [esp + 0x6c]
mov esi, dword [edx - 4]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
cmp ecx, edx
je 0x40cae7
mov eax, edx
cmp edx, edx
je 0x40cae4
mov ebx, dword [eax]
mov dword [ecx], ebx
mov ebx, dword [eax + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [eax + 8]
mov dword [ecx + 8], ebx
mov ebx, dword [eax + 0xc]
mov dword [ecx + 0xc], ebx
add eax, 0x10
add ecx, 0x10
cmp eax, edx
jne 0x40cac4
mov dword [esi + 8], ecx
mov eax, dword [esp + 0x60]
lea edx, [esp + 0xcc]
push edx
push esi
lea ebx, [esp + 0xdc]
call fcn.0040bee0
inc edi
add esp, 8
xor esi, esi
cmp edi, dword [esp + 0x84]
jl 0x40ca40
xor edi, edi
cmp dword [esp + 0x88], esi
jle 0x40c911
jmp 0x40cb30
mov eax, dword [esp + 0xa4]
cmp eax, dword [esp + 0xa8]
je 0x40cb47
mov dword [esp + 0xa8], eax
lea eax, [esp + 0xb4]
push eax
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0xdc]
push ecx
lea ebx, [esp + 0xa8]
call fcn.0040c720
mov eax, dword [esp + 0x58]
add esp, 8
cmp eax, dword [esp + 0x54]
je 0x40cb78
mov dword [esp + 0x54], eax
mov edx, dword [ebp + 0x1c]
fld qword [ebp + 0x14]
push edx
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0xf8]
call fcn.0040af10
test eax, eax
jne 0x40cc8f
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov esi, ecx
sub esi, edx
test esi, 0xfffffff0
je 0x40cc29
mov esi, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
cmp esi, ebx
je 0x40cbee
mov ecx, dword [esi]
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x78]
push eax
push ecx
call fcn.0040bf70
add esp, 0xc
test eax, eax
jne 0x40cbe6
add esi, 4
cmp esi, ebx
jne 0x40cbc6
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
cmp byte [ebp + 0x20], 0
je 0x40cc25
test eax, eax
jne 0x40cc8f
mov eax, ecx
sub eax, edx
test eax, 0xfffffff0
je 0x40cc29
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x98]
call fcn.004088e0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
test eax, eax
jne 0x40cc8f
sub ecx, edx
mov eax, ecx
sar eax, 4
test eax, eax
je 0x40cc8f
fld qword [esp + 0xb4]
push 6
push 0xfffffc15
sub esp, 8
fstp qword [esp]
push eax
mov eax, dword [esp + 0x70]
push edx
push eax
call fcn.004137b0
fld qword [0x459468]
mov ecx, dword [esp + 0x78]
add esp, 0x1c
push 0x270f
sub esp, 8
fst qword [esp]
push 4
sub esp, 8
fst qword [esp]
push 4
sub esp, 8
fstp qword [esp]
push 4
push 0x459318
push ecx
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x30
jmp 0x40ccad
mov esi, dword [sym.imp.MSVCR90.dll_printf]
push 0x459588
call esi
push str._WARNING_:_nothing_is_done___n
call esi
push 0x459588
call esi
add esp, 0xc
inc edi
cmp edi, dword [esp + 0x88]
jl 0x40cb30
jmp 0x40c911
lea ebx, [esp + 0x64]
call fcn.0040bd60
call dword [sym.imp.MSVCR90.dll_clock]
lea edx, [esp + 0xc0]
mov dword [esp + 0xc0], eax
push edx
lea eax, [esp + 0xc8]
push eax
call fcn.004137e0
mov ecx, dword [esp + 0x50]
mov esi, dword [sym.imp.MSVCR90.dll_fclose]
push ecx
call esi
mov edx, dword [esp + 0x6c]
push edx
call esi
mov eax, dword [esp + 0x54]
push eax
call esi
lea ecx, [esp + 0x70]
push ecx
call fcn.004136c0
mov esi, dword [sym.imp.MSVCR90.dll_printf]
push 0x459588
call esi
mov edx, dword [ebp + 0x24]
push edx
push str._Output__s_n
call esi
push 0x459588
call esi
mov eax, dword [esp + 0xc4]
xor esi, esi
add esp, 0x28
mov byte [esp + 0x280], 4
cmp eax, esi
je 0x40cd64
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push 0x401170
push ecx
push 0x18
push eax
call fcn.004406c2
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0xe4]
mov dword [esp + 0x9c], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], esi
mov byte [esp + 0x280], 3
call fcn.004080d0
mov eax, dword [esp + 0x50]
cmp eax, esi
je 0x40cd9e
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x68]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
cmp eax, esi
je 0x40cdbb
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x78]
cmp eax, esi
je 0x40cdcc
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
cmp eax, esi
je 0x40cdef
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret