Function at 0x4020a0
Capabilities:
Delete file
Move file
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x406bcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
mov eax, dword [0x40c380]
push ebx
push ebp
mov ebp, dword [esp + 0x16c]
push esi
mov dword [esp + 0x15c], eax
mov esi, ecx
xor eax, eax
push edi
mov edi, dword [sym.imp.MSVCR71.dll_wcscpy]
mov dword [esi + 0x408], eax
mov dword [esi + 0x404], eax
lea eax, [esi + 4]
push ebp
push eax
mov dword [esp + 0x30], eax
call edi
lea ebx, [esi + 0x204]
push ebp
push ebx
mov dword [esp + 0x34], ebx
call edi
push str..enc
push ebx
call edi
mov eax, dword [esp + 0x190]
lea ecx, [esi + 0x49c]
add esp, 0x18
sub ecx, eax
jmp 0x402120
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x402120
mov edx, dword [esp + 0x17c]
xor eax, eax
lea ecx, [esi + 0x40c]
lea esp, [esp]
mov edi, dword [edx + eax*4]
mov dword [ecx], edi
inc eax
add ecx, 4
cmp eax, 0x13
jl 0x402140
mov eax, dword [esp + 0x28]
mov ebx, dword [sym.imp.MSVCR71.dll__wfopen]
push 0x407270
push eax
call ebx
push 2
mov edi, eax
push 0
push edi
call dword [sym.imp.MSVCR71.dll_fseek]
push edi
call dword [sym.imp.MSVCR71.dll_ftell]
push edi
mov edi, dword [sym.imp.MSVCR71.dll_fclose]
mov ebp, eax
call edi
add esp, 0x1c
mov ecx, esi
mov dword [esi + 0x404], ebp
call fcn.00401360
cmp eax, 5
jne 0x40241a
mov ecx, dword [esp + 0x28]
push 0x407288
push ecx
call ebx
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x18], ebp
jne 0x4021bb
mov eax, 1
jmp 0x40241a
mov edx, dword [esp + 0x24]
push 0x407274
push edx
call ebx
add esp, 8
test eax, eax
mov dword [esp + 0x1c], eax
push ebp
jne 0x4021e2
call edi
add esp, 4
mov eax, 2
jmp 0x40241a
push 1
lea eax, [esp + 0x3c]
push 0x19
push eax
call dword [sym.imp.MSVCR71.dll_fread]
mov eax, dword [esi + 0x458]
mov edx, dword [esi + 0x45c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*2]
mov dword [esp + 0x40], eax
add esp, 0x10
lea eax, [esi + 0x49c]
push eax
mov ecx, esi
call fcn.00402030
lea ebx, [esi + 0x4bd]
mov ecx, ebx
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x402220
mov ecx, dword [esi + 0x404]
add ecx, 0xffffffc7
mov eax, ecx
mov dword [esi + 0x404], ecx
mov esi, dword [esi + 0x4e0]
cdq
idiv esi
mov dword [esp + 0x14], 0
mov ebp, esi
cmp edx, 1
mov dword [esp + 0x2c], edx
mov dword [esp + 0x10], eax
jb 0x402260
inc eax
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.MSVCR71.dll_malloc]
lea ecx, [esi + 0x10]
push ecx
mov edi, eax
call dword [sym.imp.MSVCR71.dll_malloc]
add esp, 8
test edi, edi
mov dword [esp + 0x20], eax
je 0x4023fe
test eax, eax
je 0x4023fe
lea ecx, [esp + 0x50]
call fcn.00404870
push 0
push 2
push ebx
push 1
push 1
lea ecx, [esp + 0x64]
mov dword [esp + 0x180], 0
call fcn.00405310
mov edx, dword [esp + 0x180]
push 0
push 0x39
push 0x730
push edx
call dword [0x40c408]
cmp eax, 0xffffffff
jne 0x4022e6
lea ecx, [esp + 0x50]
mov dword [esp + 0x16c], eax
call fcn.00404880
mov eax, 7
jmp 0x40241a
mov eax, dword [esp + 0x10]
mov ebx, 1
cmp eax, ebx
jl 0x40238c
cmp ebx, eax
jne 0x40230c
mov eax, dword [esp + 0x2c]
cmp eax, 1
jb 0x40230c
mov ebp, eax
mov esi, eax
sub ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
push eax
push esi
push 1
push edi
call dword [sym.imp.MSVCR71.dll_fread]
mov ecx, dword [esp + 0x190]
add esp, 0x10
push 0
push esi
push 0x730
push ecx
call dword [0x40c408]
cmp eax, 0xffffffff
je 0x402384
cmp eax, 1
je 0x40237a
mov edx, dword [esp + 0x20]
push edx
lea eax, [esi*8]
push eax
push edi
lea ecx, [esp + 0x5c]
call fcn.00405470
test eax, eax
jl 0x402384
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
push ebp
push 1
push ecx
call dword [sym.imp.MSVCR71.dll_fwrite]
mov eax, dword [esp + 0x20]
add esp, 0x10
inc ebx
cmp ebx, eax
jle 0x4022f9
jmp 0x40238c
mov dword [esp + 0x14], 0xb
jmp 0x40238c
mov dword [esp + 0x14], 7
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.MSVCR71.dll_fclose]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
mov esi, dword [sym.imp.MSVCR71.dll_free]
push edi
call esi
mov ecx, dword [esp + 0x2c]
push ecx
call esi
mov edi, dword [esp + 0x24]
add esp, 0x10
cmp edi, 0xb
jne 0x4023cc
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.MSVCR71.dll__wremove]
add esp, 4
jmp 0x4023e6
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.MSVCR71.dll__wremove]
mov eax, dword [esp + 0x28]
push esi
push eax
call dword [sym.imp.MSVCR71.dll__wrename]
add esp, 0xc
lea ecx, [esp + 0x50]
mov dword [esp + 0x16c], 0xffffffff
call fcn.00404880
mov eax, edi
jmp 0x40241a
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.MSVCR71.dll_fclose]
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
add esp, 8
mov eax, 8
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x154]
pop ebx
call fcn.00406674
add esp, 0x160
ret 0x10