Function at 0x41e1d7
Capabilities:
Delete file
Get file size
Move file
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [esp + 0x24]
push edi
lea ebx, [ebp + 0xc]
mov ecx, dword [ebx]
test ecx, ecx
je 0x41e1f8
push dword [ebp + 0x18]
mov eax, dword [ecx]
push esi
push 1
call dword [eax + 0xc]
mov ecx, ebx
call fcn.0042311d
test al, al
je 0x41e20d
mov eax, 0xe0000008
jmp 0x41e412
mov edi, dword [esp + 0x2c]
test esi, esi
je 0x41e22f
cmp esi, edi
jne 0x41e22f
mov ecx, dword [ebx]
test ecx, ecx
je 0x41e228
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 0x10]
xor eax, eax
jmp 0x41e412
lea ecx, [ebp + 0x1c]
xor dl, dl
push 0
call fcn.0040b60a
mov esi, eax
pop ecx
test esi, esi
je 0x41e254
push 0
push esi
push ecx
mov ecx, ebx
call fcn.00423101
mov eax, esi
jmp 0x41e412
push edi
mov ecx, ebp
call fcn.0041e5cc
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
jne 0x41e293
mov ecx, ebx
call fcn.0042311d
test al, al
je 0x41e277
mov edi, 0xe0000008
jmp 0x41e28a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov edi, eax
push edi
push ecx
mov ecx, ebx
call fcn.00423101
mov eax, dword [esp + 0x2c]
jmp 0x41e409
mov ecx, dword [ebx]
test edi, edi
je 0x41e2a0
test ecx, ecx
je 0x41e2ab
push edi
jmp 0x41e2a6
test ecx, ecx
je 0x41e2ab
push 0
mov eax, dword [ecx]
call dword [eax + 0x1c]
push 0x43a4f1
push 0xc800
call fcn.00424bbb
pop ecx
pop ecx
mov esi, eax
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
push dword [ebp + 4]
call fcn.0041eab3
and dword [esp + 0x10], 0
mov edi, eax
test edi, edi
jne 0x41e39c
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x41e361
mov edx, 0xc800
cmp ecx, edx
mov eax, edx
cmovb eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push dword [ebp + 4]
mov ecx, ebp
call fcn.0041ea17
mov edi, eax
test edi, edi
jne 0x41e39c
cmp dword [esp + 0x10], eax
je 0x41e361
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
push esi
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41e41c
mov ecx, dword [ebx]
test ecx, ecx
je 0x41e33d
mov eax, dword [ecx]
push dword [esp + 0x18]
call dword [eax + 0x1c]
lea eax, [ebp + 0x38]
mov ecx, ebx
push eax
call fcn.00423134
mov ecx, ebx
call fcn.0042311d
test al, al
je 0x41e2be
mov edi, 0xe0000008
jmp 0x41e3fa
cmp dword [esp + 0x28], 0
mov edi, dword [esp + 0x2c]
jbe 0x41e42d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esp + 0x28]
jae 0x41e42d
cmp byte [ebp + 0x88], 0
je 0x41e426
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
push edi
jmp 0x41e3d2
cmp edi, 0x2ee2
je 0x41e3bc
cmp edi, 0x2efe
je 0x41e3bc
cmp edi, 0x2eff
je 0x41e3bc
cmp edi, 0x2f83
jne 0x41e3e7
cmp byte [ebp + 0x88], 0
je 0x41e3e7
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
push dword [esp + 0x34]
push dword [esp + 0x2c]
mov ecx, ebp
call fcn.0041e96f
mov edi, eax
test edi, edi
je 0x41e2be
cmp edi, 0xe0000008
je 0x41e3fa
push 0
push edi
push ecx
mov ecx, ebx
call fcn.00423101
push esi
call fcn.00424704
mov eax, dword [esp + 0x30]
pop ecx
test eax, eax
je 0x41e410
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41e3ef
mov edi, 0xe000000f
jmp 0x41e3ef
test edi, edi
je 0x41e43d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esp + 0x2c], 0
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x41e41c
mov ecx, dword [ebx]
test ecx, ecx
je 0x41e465
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 0x10]
xor edi, edi
jmp 0x41e3fa