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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab5c1
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4c75d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x268], ecx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0x104
lea eax, [ebp - 0x25c]
push esi
push eax
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x260], esi
call fcn.0042e03c
add esp, 0xc
lea ecx, [ebp - 0x284]
call fcn.004741d0
xor eax, eax
mov dword [ebp - 4], esi
or esi, 0xffffffff
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x26c], eax
cmp ebx, eax
je 0x41090e
cmp edi, eax
je 0x41090e
push 1
lea ecx, [ebp - 0x284]
call fcn.00474430
mov ebx, eax
test ebx, ebx
js 0x410944
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41062a
mov ebx, 0xfffffffd
jmp 0x410944
push 0
lea ecx, [ebp - 0x26c]
push ecx
push 4
lea edx, [ebp - 0x264]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410651
mov ebx, 0x800703f2
jmp 0x410940
mov eax, dword [ebp - 0x264]
push eax
call fcn.0042dbdc
mov edx, dword [ebp - 0x264]
add esp, 4
push 0
lea ecx, [ebp - 0x26c]
push ecx
mov ebx, eax
push edx
push ebx
push esi
mov dword [ebp - 0x270], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41068e
mov ebx, 0x800703f2
jmp 0x41092d
test esi, esi
je 0x41069b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, dword [ebp - 0x264]
push eax
push ebx
lea ecx, [ebp - 0x284]
call fcn.00474250
mov ebx, eax
test ebx, ebx
js 0x41092d
mov ecx, dword [ebp - 0x268]
cmp byte [ecx + 0x159], 0
lea eax, [ebp - 0x54]
jne 0x4106fd
lea edx, [edi + 0x104]
mov ecx, eax
mov byte [ebp - 0x1dd], 0x64
mov edi, 0x41
sub edx, ecx
lea ecx, [edi + 0x7fffffbd]
test ecx, ecx
je 0x4106f9
mov cl, byte [edx + eax]
test cl, cl
je 0x4106f9
mov byte [eax], cl
inc eax
dec edi
jne 0x4106e0
jmp 0x41072a
test edi, edi
jmp 0x410728
lea edi, [ecx + 0x159]
lea ecx, [ebp - 0x54]
mov edx, 0x41
sub edi, ecx
lea ecx, [edx + 0x7fffffbd]
test ecx, ecx
je 0x410726
mov cl, byte [edi + eax]
test cl, cl
je 0x410726
mov byte [eax], cl
inc eax
dec edx
jne 0x41070d
jmp 0x41072a
test edx, edx
jne 0x41072b
dec eax
lea edi, [ebp - 0x268]
mov ecx, 0x41
lea edx, [ebp - 0x54]
mov byte [eax], 0
mov dword [ebp - 0x268], 0
call fcn.0040ecd0
xor edx, edx
test eax, eax
sets dl
lea ecx, [ebp - 0x1d8]
lea eax, [edx - 1]
and eax, dword [ebp - 0x268]
push eax
mov dword [ebp - 0x1dc], eax
lea eax, [ebp - 0x54]
push eax
push 0x80
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy_s]
add esp, 0x10
lea edx, [ebp - 0x260]
push edx
lea ecx, [ebp - 0x284]
call fcn.00474350
mov ebx, eax
test ebx, ebx
js 0x41092d
mov edi, dword [ebp - 0x274]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4107c4
mov ebx, 0xfffffffd
jmp 0x41092d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x264], eax
call fcn.0042dbdc
mov ecx, dword [ebp - 0x264]
add esp, 4
mov ebx, eax
push 0
lea eax, [ebp - 0x26c]
push eax
push ecx
push ebx
push esi
mov dword [ebp - 0x268], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41080a
mov ebx, 0x800703f2
jmp 0x41091a
test esi, esi
je 0x410817
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, dword [ebp - 0x264]
lea edx, [ebp - 0x54]
push edx
push eax
push ebx
lea ecx, [ebp - 0x284]
call fcn.004745d0
mov ebx, eax
test ebx, ebx
js 0x41091a
lea eax, [ebp - 0x158]
mov esi, edi
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x410869
mov cl, byte [esi + eax]
test cl, cl
je 0x410869
mov byte [eax], cl
inc eax
dec edx
jne 0x410850
jmp 0x41086d
test edx, edx
jne 0x41086e
dec eax
push 0x4b1f2c
push 0x104
lea edx, [ebp - 0x158]
push edx
mov byte [eax], 0
call fcn.00401210
lea eax, [ebp - 0x158]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x410915
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x26c]
push ecx
push pe_nt_image_headers32
lea edx, [ebp - 0x260]
push edx
push esi
call edi
test eax, eax
je 0x410915
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 0x268]
push 0
lea eax, [ebp - 0x26c]
push eax
push ecx
push edx
push esi
call edi
test eax, eax
je 0x410915
test esi, esi
je 0x4108ff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x41091a
mov ebx, 0xfffffff7
jmp 0x410944
mov ebx, 0x80071770
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x41092d
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x410940
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
test esi, esi
je 0x41094b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x284]
mov dword [ebp - 4], 0xffffffff
call fcn.004744c0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042dbe7
mov esp, ebp
pop ebp
ret 8