Function at 0x401ed0
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559d06
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x468
mov eax, dword [0x5b3940]
xor eax, ebp
mov dword [ebp - 0x30], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402df0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00405840
push eax
call fcn.00535e90
add esp, 4
cmp eax, 0x100000
ja 0x401f43
lea ecx, [ebp - 0x1c]
call fcn.00405840
push eax
call fcn.00536000
add esp, 4
cmp eax, 3
je 0x401f52
lea ecx, [ebp - 0x1c]
call fcn.00405840
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1c]
call fcn.00405840
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x18], eax
xor ecx, ecx
cmp dword [ebp - 0x18], 0
sete cl
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x18], 0
je 0x401f89
mov dword [ebp - 0x468], 0x574194
jmp 0x401f93
mov dword [ebp - 0x468], 0x57419c
mov edx, dword [ebp - 0x468]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00405840
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0050c405
add esp, 0xc
test eax, eax
je 0x401fc7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407f90
jmp 0x402246
mov byte [ebp - 4], 1
cmp dword [ebp - 0x20], 0
je 0x401ff8
mov byte [ebp - 0x454], 0xff
mov byte [ebp - 0x453], 0xfe
mov ecx, dword [ebp - 0x14]
push ecx
push 1
push 2
lea edx, [ebp - 0x454]
push edx
call fcn.0050c5ba
add esp, 0x10
jmp 0x402008
push 2
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.0050c6c6
add esp, 0xc
push 0
lea ecx, [ebp - 0x460]
push ecx
call fcn.00402a20
push eax
lea edx, [ebp - 0x464]
push edx
call fcn.00538800
add esp, 0xc
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x470], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x470]
push ecx
lea ecx, [ebp - 0x450]
call fcn.00401800
mov dword [ebp - 0x474], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x464]
call fcn.00407f90
xor edx, edx
mov word [ebp - 0x448], dx
push 0x206
push 0
lea eax, [ebp - 0x446]
push eax
call fcn.0050bed0
add esp, 0xc
lea ecx, [ebp - 0x450]
call fcn.00405840
push eax
push 0x104
lea ecx, [ebp - 0x448]
push ecx
call fcn.0050bf4a
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
push 1
lea eax, [ebp - 0x448]
push eax
call fcn.0050bba9
add esp, 4
shl eax, 1
push eax
lea ecx, [ebp - 0x448]
push ecx
call fcn.0050c5ba
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x23c], eax
xor edx, edx
mov word [ebp - 0x238], dx
push 0x206
push 0
lea eax, [ebp - 0x236]
push eax
call fcn.0050bed0
add esp, 0xc
mov ecx, dword [ebp - 0x23c]
push ecx
push str.___d_
push 0x104
lea edx, [ebp - 0x238]
push edx
call fcn.0050c74b
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
push 1
lea ecx, [ebp - 0x238]
push ecx
call fcn.0050bba9
add esp, 4
shl eax, 1
push eax
lea edx, [ebp - 0x238]
push edx
call fcn.0050c5ba
add esp, 0x10
mov dword [ebp - 0x24], 0x5741b0
mov eax, dword [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0050bba9
add esp, 4
shl eax, 1
push eax
mov edx, dword [ebp - 0x24]
push edx
call fcn.0050c5ba
add esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402df0
mov dword [ebp - 0x478], eax
mov byte [ebp - 4], 5
push 0x20
push 0xd
lea ecx, [ebp - 0x2c]
call fcn.00402950
push 0x20
push 0xa
lea ecx, [ebp - 0x2c]
call fcn.00402950
lea ecx, [ebp - 0x2c]
call fcn.00405840
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp - 0x44c]
push edx
call fcn.0050bba9
add esp, 4
shl eax, 1
push eax
mov eax, dword [ebp - 0x44c]
push eax
call fcn.0050c5ba
add esp, 0x10
mov dword [ebp - 0x28], 0x5741b8
mov ecx, dword [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp - 0x28]
push edx
call fcn.0050bba9
add esp, 4
shl eax, 1
push eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.0050c5ba
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0050c914
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00407f90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.00407f90
jmp 0x402224
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.0050c9e7
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407f90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0050bb49
mov esp, ebp
pop ebp
ret