Function at 0x10004280
Capabilities:
Move file
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x21c
mov eax, dword [esp + 0x220]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x24], 0
je 0x1000435a
mov esi, dword [esp + 0x234]
test esi, esi
je 0x1000435a
mov ebp, dword [sym.imp.MSVCRT.dll_fopen]
push 0x100092b8
push eax
call ebp
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [esp + 0x20], ebx
je 0x1000435a
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x100092e8
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x2c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..tmp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x10004367
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x21c
ret
push 2
push 0
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
mov ebx, eax
add esp, 0x10
cmp ebx, 0xd
jbe 0x100044df
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x100044df
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
push 0
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x28]
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
push edi
push ebx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp eax, ebx
jne 0x100044d5
cmp word [esi], 0xaaee
jne 0x100044d5
mov eax, dword [esi + 4]
lea ecx, [eax + 0xd]
cmp ebx, ecx
jb 0x100044d5
lea ebx, [esi + 0xd]
push eax
push ebx
push 0
call fcn.100036d0
mov ecx, dword [esi + 8]
add esp, 0xc
cmp eax, ecx
jne 0x100044d5
mov edx, dword [esi + 4]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x100044d5
mov al, 0x36
mov cl, 0x46
mov byte [esp + 0x16], al
mov byte [esp + 0x18], al
mov byte [esp + 0x1b], al
mov byte [esp + 0x15], cl
mov byte [esp + 0x19], cl
mov byte [esp + 0x1d], cl
lea eax, [esp + 0x10]
push 0x10
lea ecx, [esp + 0x130]
mov dl, 0x39
push eax
push ecx
mov byte [esp + 0x1c], dl
mov byte [esp + 0x1d], 0x44
mov byte [esp + 0x1e], 0x34
mov byte [esp + 0x1f], 0x43
mov byte [esp + 0x20], 0x32
mov byte [esp + 0x23], 0x33
mov byte [esp + 0x26], 0x30
mov byte [esp + 0x28], 0x37
mov byte [esp + 0x2a], 0x38
mov byte [esp + 0x2b], dl
call fcn.10005b70
mov edx, dword [esi + 4]
push edi
push edx
lea eax, [esp + 0x140]
push ebx
push eax
call fcn.10005c10
mov ecx, dword [esi + 4]
push ebp
push ecx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esi + 4]
add esp, 0x30
cmp ebx, eax
jne 0x100044ce
mov edx, dword [esp + 0x234]
lea eax, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
push ecx
call esi
push ebp
call esi
mov eax, dword [esp + 0x2c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret