Function at 0x401db0
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4165d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x41c028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
cmp esi, ebx
je 0x4021d0
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4021d0
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x401e7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push ebx
push ebx
push eax
call fcn.004148f0
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov edi, edx
add esi, 0x1c00000
adc edi, 0x70
push edi
push esi
push 0x1c1
push str..FilePublic.cpp
push str._S__d_nRet0x_016llX_FilePath:_s_n
call fcn.004019b0
add esp, 0x18
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
mov ecx, esi
mov dword [ebp - 0x2c], ebx
call fcn.00402b60
mov edi, eax
mov esi, edx
movzx eax, dx
mov edx, ebx
add esp, 4
or edx, eax
mov dword [ebp - 0x2c], esi
je 0x401eb7
push esi
push edi
push 0x4c2
push str..FilePublic.cpp
push str._S__d_nRet0x_016llX_n
call fcn.004019b0
add esp, 0x14
movzx eax, word [ebp - 0x2c]
or ebx, eax
je 0x401f1f
push esi
push edi
push 0x1c9
push str..FilePublic.cpp
push str._S__d_nRet0x_016llX_n
call fcn.004019b0
add esp, 0x14
mov edx, dword [ebp - 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
je 0x401ef9
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp - 0x14]
push eax
call ebx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x401f09
push eax
call fcn.00409c49
add esp, 4
mov edx, esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x24], 1
jne 0x401fb6
mov eax, dword [ebp + 8]
push eax
call fcn.00401be0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, edx
add esp, 4
mov edi, eax
mov dword [ebp - 0x2c], esi
call ebx
xor eax, eax
movzx ecx, si
jne 0x401f50
cmp ecx, 0x7f
je 0x401f7e
or eax, ecx
je 0x401f7e
call ebx
push 0x10000
push 0
push 0
push eax
call fcn.004148f0
mov edi, eax
add edi, 0x1d20000
mov esi, edx
adc esi, 0x15
push esi
push edi
push 0x1d3
jmp 0x401ec6
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401fbc
call ebx
push 0x10000
push 0
push 0
push eax
call fcn.004148f0
mov edi, eax
add edi, 0x1d90000
mov esi, edx
adc esi, 0x15
push esi
push edi
push 0x1da
jmp 0x401ec6
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x402020
call ebx
push 0x10000
push 0
push 0
push eax
call fcn.004148f0
mov edi, eax
mov eax, dword [ebp + 8]
push eax
mov esi, edx
add edi, 0x1e90000
adc esi, 0x70
push esi
push edi
push 0x1ea
push str..FilePublic.cpp
push str._S__d_nRet0x_016llX_FilePath:_s_n
call fcn.004019b0
add esp, 0x18
jmp 0x401ed8
push 0x100000
mov dword [ebp - 4], 0
call fcn.00409cd4
xor ecx, ecx
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
cmp eax, ecx
jne 0x40206e
call ebx
push 0x10000
push 0
push 0
push eax
call fcn.004148f0
mov edi, eax
add edi, 0x1fa0000
mov esi, edx
adc esi, 3
push esi
push edi
push 0x1fb
jmp 0x401ec6
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x34], 0
mov dword [ebp - 0x38], eax
jl 0x401ed8
jg 0x4020a0
test eax, eax
jbe 0x401ed8
lea esp, [esp]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x100000
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402105
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40212f
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x28]
jne 0x402159
add dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
adc eax, 0
cmp eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
jl 0x4020a0
jg 0x401ed8
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x38]
jb 0x4020a0
jmp 0x401ed8
call ebx
push 0x10000
push 0
push 0
push eax
call fcn.004148f0
mov edi, eax
add edi, 0x2050000
mov esi, edx
adc esi, 0x72
push esi
push edi
push 0x206
jmp 0x401ec6
call ebx
push 0x10000
push 0
push 0
push eax
call fcn.004148f0
mov edi, eax
add edi, 0x20c0000
mov esi, edx
adc esi, 0x73
push esi
push edi
push 0x20d
jmp 0x401ec6
call ebx
push 0x10000
push 0
push 0
push eax
call fcn.004148f0
mov edi, eax
add edi, 0x2120000
mov esi, edx
adc esi, 0x73
push esi
push edi
push 0x213
jmp 0x401ec6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push ebx
push ebx
push eax
call fcn.004148f0
mov esi, eax
mov edi, edx
add esi, 0x1b10000
adc edi, 0xa
push edi
push esi
push 0x1b2
push str..FilePublic.cpp
push str._S__d_nRet0x_016llX_n
call fcn.004019b0
add esp, 0x14
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret