Function at 0x439d50
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456ecd
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x48f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x439d97
push 0xfc
push 0
push eax
call fcn.00441560
add esp, 0xc
test esi, esi
jne 0x439db4
mov ebx, 0x57
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x38], vtable.kn::auto_handle_void___struct_kn::system::handle_delete_.0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x439def
cmp esi, 0xffffffff
jne 0x439dfd
call ebx
mov ebx, eax
test ebx, ebx
jne 0x439e36
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.00405f00
test al, al
jne 0x439e0f
mov ebx, 6
jmp 0x439e36
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x439e62
call ebx
mov ebx, eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
test ebx, ebx
je 0x439e6a
test esi, esi
je 0x439f36
cmp esi, 0xffffffff
je 0x439f36
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
lea eax, [ecx + 1]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x4877d4
call fcn.0041ddf0
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x439e36
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + 1]
test eax, eax
je 0x439eb6
push eax
push 0
push edi
call fcn.00441560
add esp, 0xc
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x439f4a
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x439ee8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x439f51
push ecx
push dword [ebp - 0x28]
mov edx, edi
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00439950
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
mov eax, edi
cmp ebx, 0x1000
jb 0x439f19
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439f6b
push ebx
push edi
call fcn.0043fc69
add esp, 8
test esi, esi
je 0x439f33
cmp esi, 0xffffffff
je 0x439f33
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14], 0x57
mov eax, edi
cmp ebx, 0x1000
jb 0x439f19
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x439f19
call fcn.0044316c
int3