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

Disassembly:
mov eax, 0x49e7b3
call fcn.0047d43c
sub esp, 0x98
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x10c], ebx
je 0x4474ec
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
call fcn.00447ab3
test eax, eax
je 0x4474f3
mov dword [esi + 0x118], 0xffffff9c
xor eax, eax
jmp 0x4478db
mov edi, 0x138
push edi
call fcn.0047d58e
push edi
push ebx
push eax
mov dword [ebp - 0x10], eax
call fcn.0047daf0
add esp, 0x10
lea ecx, [ebp - 0x54]
call fcn.004478ed
cmp byte [esi + 0x112], bl
mov dword [ebp - 4], ebx
je 0x4475d5
mov eax, dword [esi + 0x11c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x54]
push eax
mov byte [ebp - 4], 1
call fcn.00447a00
lea eax, [ebp - 0x19]
push 1
push eax
lea ecx, [ebp - 0xa4]
push dword [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00402e7f
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x18]
push eax
lea eax, [ebp - 0xa4]
push eax
mov byte [ebp - 4], 3
call fcn.0048e690
lea ecx, [ebp - 0xa4]
mov edi, eax
mov byte [ebp - 4], 2
call fcn.00402438
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00402438
cmp edi, ebx
je 0x4475c4
push dword [ebp - 0x10]
call fcn.0044c894
pop ecx
mov dword [esi + 0x118], edi
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 4
call fcn.004042dd
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00402438
mov eax, edi
jmp 0x4478db
mov edi, dword [ebp - 0x10]
mov byte [ebp - 4], bl
mov word [edi + 0x118], 1
jmp 0x447610
push ebx
lea ecx, [ebp - 0x54]
call fcn.004042dd
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x44760d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
mov dword [esi + 0x118], eax
call fcn.0044c894
pop ecx
mov dword [ebp - 4], 5
jmp 0x4478be
mov edi, dword [ebp - 0x10]
cmp byte [esi + 0x110], bl
je 0x447697
cmp byte [esi + 0x111], bl
mov byte [ebp + 0xb], 1
jne 0x44766b
lea eax, [ebp - 0x19]
push 1
push eax
lea ecx, [ebp - 0x7c]
push dword [ebp + 0xc]
call fcn.00401884
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 6
call fcn.004042dd
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
call fcn.00401a14
push eax
push dword [ebp - 0x18]
call fcn.004014f3
pop ecx
mov byte [ebp - 4], bl
pop ecx
test eax, eax
lea ecx, [ebp - 0x7c]
setne byte [ebp + 0xb]
call fcn.00401093
cmp byte [ebp + 0xb], bl
mov cl, byte [esi + 0x111]
je 0x447690
or dword [edi + 0x104], 2
lea eax, [edi + 0x104]
cmp cl, bl
mov edi, dword [eax]
je 0x447697
or edi, 4
mov dword [eax], edi
jmp 0x447697
or dword [edi + 0x104], 0xffffffff
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
lea ecx, [ebp - 0x54]
call fcn.004042dd
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
jne 0x4476e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
mov dword [esi + 0x118], eax
call fcn.0044c894
pop ecx
mov dword [ebp - 4], 7
jmp 0x4478be
push ebx
push 0x80
push 3
push ebx
push 3
lea eax, [esi + 4]
push 0x40000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x447728
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x24]
mov dword [esi + 0x118], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call fcn.0044c894
pop ecx
mov dword [ebp - 4], 8
jmp 0x4478be
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x10]
call edi
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x10]
push ebx
push ebx
mov dword [ecx + 0x10c], eax
push dword [esi + 0x114]
mov ecx, esi
push dword [ebp + 8]
call fcn.00448162
test eax, eax
jne 0x447774
push dword [ebp - 0x10]
call fcn.0044c894
pop ecx
mov dword [ebp - 4], 9
jmp 0x4478be
push dword [0x4c0fd0]
push dword [esi + 0x120]
call edi
mov eax, dword [esi + 0x12c]
mov ecx, dword [esi + 0x120]
inc eax
push ebx
mov word [ecx + 0xe], ax
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push 0x2e
push dword [esi + 0x120]
push dword [ebp + 8]
call edi
push 2
push ebx
push ebx
mov ecx, esi
push dword [ebp + 8]
call fcn.00448162
test eax, eax
jne 0x4477c9
mov dword [ebp - 4], 0xa
jmp 0x4478be
lea eax, [ebp - 0x14]
push ebx
push eax
push 0x138
push dword [ebp - 0x10]
push dword [ebp + 8]
call edi
cmp dword [ebp - 0x14], ebx
jne 0x4477f5
push dword [ebp - 0x10]
call fcn.0044c894
pop ecx
mov dword [ebp - 4], 0xb
jmp 0x4478be
push 0x400
call fcn.0047d58e
pop ecx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], ebx
cmp ecx, ebx
je 0x44781b
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx]
push dword [edx + 0x10c]
push ebx
call dword [eax]
lea eax, [ebp - 0x14]
push ebx
push eax
push 0x400
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44788d
cmp dword [ebp - 0x14], ebx
je 0x44788d
cmp byte [esi + 0x111], bl
je 0x44785b
cmp byte [esi + 0x110], bl
je 0x44785b
push dword [ebp + 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call fcn.00401495
add esp, 0xc
lea eax, [ebp - 0x14]
push ebx
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
add dword [ebp - 0x18], eax
cmp ecx, ebx
je 0x447888
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx]
push dword [edx + 0x10c]
push dword [ebp - 0x18]
call dword [eax]
cmp dword [ebp - 0x14], ebx
jne 0x44781b
push dword [ebp - 0x10]
lea ecx, [esi + 0x124]
call fcn.00448419
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 8]
call esi
push dword [ebp - 0x20]
call fcn.0044c894
pop ecx
push 1
mov dword [ebp - 4], 0xc
pop ebx
lea ecx, [ebp - 0x54]
call fcn.004042dd
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00402438
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc