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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x100
or edi, 0xffffffff
or esi, 0xffffffff
mov dword [esp + 0x14], 0
call fcn.0044c0d4
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x43a23c
push 0x100
call fcn.0044c0d4
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x1c], ebp
je 0x43a1df
mov eax, dword [esp + 0x24]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x43a1df
mov ecx, dword [esp + 0x24]
push ebp
push ebx
push 0
push 0
push ecx
call fcn.0044c925
mov edi, dword [0x47735c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x28]
mov edx, ecx
mov ebp, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
mov dword [esp + 0x24], edx
mov edx, edi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x24]
dec edi
mov ecx, eax
mov ebp, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
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
push 2
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x38]
push 2
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x43a1db
mov esi, dword [esp + 0x18]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esp + 0x28], eax
call fcn.0044c0d4
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x43a1df
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x14]
push 0
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43a1df
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jne 0x43a1df
lea edx, [esp + 0x14]
push 0
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43a1df
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp ecx, eax
jne 0x43a1df
mov edx, dword [esp + 0x10]
push edx
call fcn.0044c186
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
push ebx
call fcn.0044c186
push ebp
call fcn.0044c186
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
mov esi, dword [esp + 0x18]
push ebx
call fcn.0044c186
add esp, 4
test ebp, ebp
je 0x43a1f5
push ebp
call fcn.0044c186
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43a206
push eax
call fcn.0044c186
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x43a214
push esi
call ebx
cmp edi, 0xffffffff
je 0x43a23c
push edi
call ebx
mov esi, dword [esp + 0x28]
test esi, esi
je 0x43a240
push esi
call fcn.0044c687
add esp, 4
mov byte [esi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
mov esi, dword [esp + 0x28]
mov byte [esi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8