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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d498
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x48e200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x43f90a
cmp eax, 0xffffffff
je 0x43f90a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 0x28], ecx
cmp ecx, ebx
je 0x43f90a
cmp ecx, 0xffffffff
je 0x43f90a
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x11]
push edx
push ecx
xor eax, eax
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
mov byte [ebp - 0x11], bl
call fcn.00407f70
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
cmp esi, eax
je 0x43f8ec
mov edi, eax
sub edi, esi
cmp edi, dword [ebp - 0x28]
jne 0x43f8ec
cmp esi, ebx
je 0x43f90a
mov ecx, dword [ebp - 0x20]
push ebx
lea eax, [ebp - 0x1c]
push eax
push edi
push esi
push ecx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43f665
mov edx, dword [ebp - 0x28]
cmp dword [ebp - 0x1c], edx
jne 0x43f665
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
lea ecx, [ebp - 0x38]
push 0x48da60
push ecx
mov dword [ebp - 0x20], ebx
call fcn.0043e500
add esp, 0xc
cmp eax, ebx
jne 0x43f672
lea ecx, [ebp - 0x38]
call fcn.00407f40
jmp 0x43f90a
push 0x11c1c
lea edx, [ebp - 0x38]
push 0x460ec0
push edx
call fcn.0043e500
add esp, 0xc
cmp eax, ebx
jne 0x43f699
lea ecx, [ebp - 0x38]
call fcn.00407f40
jmp 0x43f90a
push 0x1a871
lea eax, [ebp - 0x38]
push 0x472b00
push eax
call fcn.0043e500
add esp, 0xc
lea ecx, [ebp - 0x38]
cmp eax, ebx
jne 0x43f6c0
call fcn.00407f40
jmp 0x43f90a
push 0x2d
push 0x48d460
push ecx
call fcn.0043e500
add esp, 0xc
cmp eax, ebx
jne 0x43f6e1
lea ecx, [ebp - 0x38]
call fcn.00407f40
jmp 0x43f90a
push 0x39
lea edx, [ebp - 0x38]
push 0x48d490
push edx
call fcn.0043e500
add esp, 0xc
cmp eax, ebx
jne 0x43f705
lea ecx, [ebp - 0x38]
call fcn.00407f40
jmp 0x43f90a
push 0x3f
lea eax, [ebp - 0x38]
push 0x48d4cc
push eax
call fcn.0043e500
add esp, 0xc
lea ecx, [ebp - 0x38]
cmp eax, ebx
jne 0x43f729
call fcn.00407f40
jmp 0x43f90a
push 0x27
push 0x48d50c
push ecx
call fcn.0043e500
add esp, 0xc
cmp eax, ebx
jne 0x43f74a
lea ecx, [ebp - 0x38]
call fcn.00407f40
jmp 0x43f90a
push 0x41
lea edx, [ebp - 0x38]
push str.nt
push edx
call fcn.0043e500
add esp, 0xc
cmp eax, ebx
jne 0x43f76e
lea ecx, [ebp - 0x38]
call fcn.00407f40
jmp 0x43f90a
push 0x2fb
lea eax, [ebp - 0x38]
push 0x48d580
push eax
call fcn.0043e500
add esp, 0xc
lea ecx, [ebp - 0x38]
cmp eax, ebx
jne 0x43f795
call fcn.00407f40
jmp 0x43f90a
push 0x61
push 0x48d880
push ecx
call fcn.0043e500
add esp, 0xc
cmp eax, ebx
jne 0x43f7b6
lea ecx, [ebp - 0x38]
call fcn.00407f40
jmp 0x43f90a
push 0x75
lea edx, [ebp - 0x38]
push 0x48d8e8
push edx
call fcn.0043e500
add esp, 0xc
cmp eax, ebx
jne 0x43f7da
lea ecx, [ebp - 0x38]
call fcn.00407f40
jmp 0x43f90a
push 0x21
lea eax, [ebp - 0x38]
push 0x48d960
push eax
call fcn.0043e500
add esp, 0xc
lea ecx, [ebp - 0x38]
cmp eax, ebx
jne 0x43f7fe
call fcn.00407f40
jmp 0x43f90a
push 0x4b
push 0x48d988
push ecx
call fcn.0043e500
add esp, 0xc
cmp eax, ebx
jne 0x43f81f
lea ecx, [ebp - 0x38]
call fcn.00407f40
jmp 0x43f90a
push 0x1f
lea edx, [ebp - 0x38]
push 0x48d9d4
push edx
call fcn.0043e500
add esp, 0xc
cmp eax, ebx
jne 0x43f843
lea ecx, [ebp - 0x38]
call fcn.00407f40
jmp 0x43f90a
push 0x4b
lea eax, [ebp - 0x38]
push 0x48d9f8
push eax
call fcn.0043e500
add esp, 0xc
lea ecx, [ebp - 0x38]
cmp eax, ebx
jne 0x43f867
call fcn.00407f40
jmp 0x43f90a
push 0x1b
push 0x48da44
push ecx
call fcn.0043e500
add esp, 0xc
cmp eax, ebx
jne 0x43f888
lea ecx, [ebp - 0x38]
call fcn.00407f40
jmp 0x43f90a
mov edx, dword [ebp + 0xc]
push ebx
push ebx
push 4
push ebx
push ebx
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x43f665
cmp eax, 0xffffffff
je 0x43f665
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43f8d2
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x18], 1
cmp edx, dword [ebp - 0x1c]
je 0x43f8d5
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], ebx
call fcn.00407f40
jmp 0x43f90a
cmp esi, ebx
je 0x43f90a
push esi
call fcn.004500fb
add esp, 4
jmp 0x43f90a
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x43f91d
cmp eax, 0xffffffff
je 0x43f91d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x43f930
cmp eax, 0xffffffff
je 0x43f930
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret