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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cff8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x49cf34]
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 0x43e9bd
cmp eax, 0xffffffff
je 0x43e9bd
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 0x28], ecx
cmp ecx, ebx
je 0x43e9bd
cmp ecx, 0xffffffff
je 0x43e9bd
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.00406ec0
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
cmp esi, eax
je 0x43e99f
mov edi, eax
sub edi, esi
cmp edi, dword [ebp - 0x28]
jne 0x43e99f
cmp esi, ebx
je 0x43e9bd
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 0x43e715
mov edx, dword [ebp - 0x28]
cmp dword [ebp - 0x1c], edx
jne 0x43e715
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
lea ecx, [ebp - 0x38]
push 0x49c864
push ecx
mov dword [ebp - 0x20], ebx
call fcn.0043d4d0
add esp, 0xc
cmp eax, ebx
jne 0x43e722
lea ecx, [ebp - 0x38]
call fcn.00406e90
jmp 0x43e9bd
push 0x1b7da
lea edx, [ebp - 0x38]
push 0x464d00
push edx
call fcn.0043d4d0
add esp, 0xc
cmp eax, ebx
jne 0x43e749
lea ecx, [ebp - 0x38]
call fcn.00406e90
jmp 0x43e9bd
push 0x1bd4b
lea eax, [ebp - 0x38]
push 0x4804e0
push eax
call fcn.0043d4d0
add esp, 0xc
lea ecx, [ebp - 0x38]
cmp eax, ebx
jne 0x43e770
call fcn.00406e90
jmp 0x43e9bd
push 0x27
push 0x49c33c
push ecx
call fcn.0043d4d0
add esp, 0xc
cmp eax, ebx
jne 0x43e791
lea ecx, [ebp - 0x38]
call fcn.00406e90
jmp 0x43e9bd
push 0x17
lea edx, [ebp - 0x38]
push 0x49c364
push edx
call fcn.0043d4d0
add esp, 0xc
cmp eax, ebx
jne 0x43e7b5
lea ecx, [ebp - 0x38]
call fcn.00406e90
jmp 0x43e9bd
push 0x63
lea eax, [ebp - 0x38]
push 0x49c380
push eax
call fcn.0043d4d0
add esp, 0xc
lea ecx, [ebp - 0x38]
cmp eax, ebx
jne 0x43e7d9
call fcn.00406e90
jmp 0x43e9bd
push 0x27
push 0x49c3e4
push ecx
call fcn.0043d4d0
add esp, 0xc
cmp eax, ebx
jne 0x43e7fa
lea ecx, [ebp - 0x38]
call fcn.00406e90
jmp 0x43e9bd
push 0x25
lea edx, [ebp - 0x38]
push 0x49c40c
push edx
call fcn.0043d4d0
add esp, 0xc
cmp eax, ebx
jne 0x43e81e
lea ecx, [ebp - 0x38]
call fcn.00406e90
jmp 0x43e9bd
push 0x1e1
lea eax, [ebp - 0x38]
push 0x49c438
push eax
call fcn.0043d4d0
add esp, 0xc
lea ecx, [ebp - 0x38]
cmp eax, ebx
jne 0x43e845
call fcn.00406e90
jmp 0x43e9bd
push 0x47
push 0x49c620
push ecx
call fcn.0043d4d0
add esp, 0xc
cmp eax, ebx
jne 0x43e866
lea ecx, [ebp - 0x38]
call fcn.00406e90
jmp 0x43e9bd
push 0x73
lea edx, [ebp - 0x38]
push 0x49c668
push edx
call fcn.0043d4d0
add esp, 0xc
cmp eax, ebx
jne 0x43e88a
lea ecx, [ebp - 0x38]
call fcn.00406e90
jmp 0x43e9bd
push 0x1d
lea eax, [ebp - 0x38]
push str._r_t
push eax
call fcn.0043d4d0
add esp, 0xc
lea ecx, [ebp - 0x38]
cmp eax, ebx
jne 0x43e8ae
call fcn.00406e90
jmp 0x43e9bd
push 0x8b
push 0x49c700
push ecx
call fcn.0043d4d0
add esp, 0xc
cmp eax, ebx
jne 0x43e8d2
lea ecx, [ebp - 0x38]
call fcn.00406e90
jmp 0x43e9bd
push 0x6b
lea edx, [ebp - 0x38]
push 0x49c790
push edx
call fcn.0043d4d0
add esp, 0xc
cmp eax, ebx
jne 0x43e8f6
lea ecx, [ebp - 0x38]
call fcn.00406e90
jmp 0x43e9bd
push 0x45
lea eax, [ebp - 0x38]
push 0x49c800
push eax
call fcn.0043d4d0
add esp, 0xc
lea ecx, [ebp - 0x38]
cmp eax, ebx
jne 0x43e91a
call fcn.00406e90
jmp 0x43e9bd
push 0x1b
push 0x49c848
push ecx
call fcn.0043d4d0
add esp, 0xc
cmp eax, ebx
jne 0x43e93b
lea ecx, [ebp - 0x38]
call fcn.00406e90
jmp 0x43e9bd
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 0x43e715
cmp eax, 0xffffffff
je 0x43e715
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 0x43e985
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x18], 1
cmp edx, dword [ebp - 0x1c]
je 0x43e988
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.00406e90
jmp 0x43e9bd
cmp esi, ebx
je 0x43e9bd
push esi
call fcn.0044f85e
add esp, 4
jmp 0x43e9bd
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x43e9d0
cmp eax, 0xffffffff
je 0x43e9d0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x43e9e3
cmp eax, 0xffffffff
je 0x43e9e3
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