Function at 0x4111c0
Capabilities:
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cac39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x100
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, edx
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov edi, ecx
mov dword [ebp - 0x70], ebx
push ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x44], esi
cmp esi, 0xffffffff
je 0x4118eb
lea eax, [ebp - 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [ebp - 0x4c], 0
jg 0x4112a3
jl 0x41123c
cmp dword [ebp - 0x50], 5
ja 0x4112a3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x44], 0xffffffff
call fcn.00413100
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x868]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x3c]
call fcn.004159d0
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [ebp - 0x28], 8
jb 0x4118eb
push dword [ebp - 0x3c]
call fcn.00422587
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
push 0x1000
push 0x25815
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [ebp - 0x74], edi
test edi, edi
je 0x41131a
push 0x25800
push 0
push edi
call fcn.0042b420
mov edx, dword [ebp - 0x4c]
add esp, 0xc
test edx, edx
jl 0x4113b1
mov ecx, dword [ebp - 0x50]
jg 0x4112e9
cmp ecx, 0x26
jbe 0x4113b1
push 0
mov dword [ebp - 0x80], ecx
sub ecx, 0x26
push 0
mov dword [ebp - 0x7c], edx
sbb edx, 0
push edx
mov eax, edx
push ecx
sar eax, 0x1f
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp eax, 0xffffffff
jne 0x411332
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x18]
push 0
push eax
push 0x26
push edi
push esi
mov dword [ebp - 0x18], 0
call ebx
test eax, eax
je 0x41130c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41130c
cmp eax, 0x26
jne 0x4113b7
push edi
lea ecx, [ebp - 0x3c]
call fcn.00412c40
mov edx, str.36A698B9_D67C_4E07_BE82_0EC5B14B4DF5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.00417060
test al, al
je 0x4113a7
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x3c]
call fcn.00412d50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x3c]
call fcn.00412d50
jmp 0x4113b7
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x84], 0xf
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x98], 0
xor eax, eax
mov byte [ebp - 4], 3
push eax
push eax
push eax
push esi
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4115bf
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0x25805
push edi
push esi
call ebx
test eax, eax
jne 0x411440
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x98]
call fcn.00412d50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4115bf
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
mov ebx, dword [ebp - 0x24]
add ebx, 0x20
mov byte [ebp - 4], 4
push ebx
cmp eax, 5
jbe 0x411718
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 5
push eax
call fcn.00420be4
mov ecx, dword [edi]
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], ecx
mov cl, byte [edi + 4]
push ebx
mov byte [eax + 4], cl
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp - 0x14]
add eax, 5
push ebx
push eax
call fcn.0042d8d0
add esp, 0xc
mov dword [ebp - 0x9c], 0xf
mov dword [ebp - 0xa0], 0
mov byte [ebp - 0xb0], 0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 5
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x14]
lea edx, [eax + 5]
call fcn.0040eaa0
add esp, 4
push dword [ebp - 0x14]
call fcn.00422110
add esp, 4
lea ecx, [ebp - 0x3c]
call fcn.0040c5c0
push eax
lea ecx, [ebp - 0xb0]
call fcn.00412d10
lea ecx, [ebp - 0x3c]
call fcn.00412d50
cmp dword [ebp - 0x9c], 0x10
lea eax, [ebp - 0xb0]
lea ecx, [ebp - 0x108]
cmovae eax, dword [ebp - 0xb0]
push eax
call fcn.0040bbd0
cmp dword [ebp - 0x9c], 0x10
lea eax, [ebp - 0xb0]
lea ecx, [ebp - 0x108]
cmovae eax, dword [ebp - 0xb0]
push eax
call fcn.0040bd50
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x98]
call fcn.00413ff0
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x6c]
add eax, 0xfffffffb
push eax
call fcn.00412f70
cmp dword [ebp - 0x58], 0x10
lea ecx, [ebp - 0x6c]
mov eax, dword [ebp - 0x20]
cmovae ecx, dword [ebp - 0x6c]
add eax, 0xfffffffb
push eax
push ecx
lea eax, [edi + 5]
push eax
lea ecx, [ebp - 0x108]
call fcn.0040c070
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 5
push esi
call eax
lea ecx, [ebp - 0xb0]
cmp eax, 0xffffffff
jne 0x4117e1
call fcn.00412d50
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.00412d50
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp eax, 0xffffffff
je 0x41140f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], 0
test eax, eax
je 0x41160e
push 0
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x54]
push eax
push esi
call ebx
test eax, eax
je 0x41140f
mov eax, dword [ebp - 0x18]
push eax
call fcn.00422110
add esp, 4
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 0x19], 0
push eax
mov eax, dword [ebp - 0x24]
push dword [eax + 0x860]
add eax, 0x850
sub esp, 0x18
mov ecx, esp
push eax
call fcn.004130b0
mov dl, byte [ebp - 0x19]
lea ecx, [ebp - 0x6c]
call fcn.00412840
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x411647
mov eax, dword [eax]
push eax
push esi
call ebx
test eax, eax
lea ecx, [ebp - 0x6c]
sete bl
call fcn.00412d50
test bl, bl
jne 0x41140f
push 0
lea eax, [ebp - 0x40]
push eax
push str.36A698B9_D67C_4E07_BE82_0EC5B14B4DF5
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.36A698B9_D67C_4E07_BE82_0EC5B14B4DF5
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41140f
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
push dword [ebp - 0x70]
or esi, 0xffffffff
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x44], esi
call fcn.00413100
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0xc8]
push esi
push 0
add eax, 0x868
mov byte [ebp - 4], 8
push eax
call fcn.004159d0
cmp dword [ebp - 0xb4], 8
lea eax, [ebp - 0xc8]
cmovae eax, dword [ebp - 0xc8]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4118a7
push 0x8000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [ebp - 0xc8]
call fcn.00413210
lea ecx, [ebp - 0x98]
call fcn.00412d50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call fcn.00420be4
add esp, 4
mov dword [ebp - 0x14], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push dword [ebp - 0x14]
call fcn.0042d8d0
add esp, 0xc
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x14]
mov edx, eax
call fcn.0040eaa0
add esp, 4
push dword [ebp - 0x14]
call fcn.00422110
add esp, 4
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0x10
lea ecx, [ebp - 0x108]
cmovae eax, dword [ebp - 0x3c]
push eax
call fcn.0040bbd0
cmp dword [ebp - 0x28], 0x10
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x108]
cmovae eax, dword [ebp - 0x3c]
push eax
call fcn.0040bd50
push dword [ebp - 0x20]
lea ecx, [ebp - 0x6c]
call fcn.00412f70
cmp dword [ebp - 0x58], 0x10
lea eax, [ebp - 0x6c]
push dword [ebp - 0x20]
cmovae eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x108]
push eax
push edi
call fcn.0040c070
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call eax
lea ecx, [ebp - 0x3c]
jmp 0x4115a5
mov byte [ebp - 4], 4
call fcn.00412d50
sub esp, 0x18
mov dword [ebp - 0x14], 0
mov ecx, esp
mov dword [ebp - 0x54], esp
push ebx
call fcn.00412c40
sub esp, 0x18
mov byte [ebp - 4], 7
lea eax, [ebp - 0x98]
mov ecx, esp
push eax
call fcn.00412bf0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0040cba0
mov ecx, dword [ebp - 0x14]
add esp, 0x30
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x54], ecx
test ecx, ecx
je 0x41186e
test eax, eax
je 0x41186e
cmp dword [ebp - 0x58], 0x10
lea ecx, [ebp - 0x7c]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
push 0
push ecx
push dword [ebp - 0x5c]
mov dword [ebp - 0x7c], 0
push eax
push esi
call ebx
test eax, eax
je 0x41186e
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.00412d50
jmp 0x4115c5
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x6c]
call fcn.00412d50
lea ecx, [ebp - 0x98]
call fcn.00412d50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xc8]
call fcn.00413210
lea ecx, [ebp - 0x98]
call fcn.00412d50
jmp 0x4118d1
test edi, edi
je 0x4118e3
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp esi, 0xffffffff
je 0x4118eb
push esi
call ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret