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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
cmp dword [ebp + 0xc], edi
jne 0x443949
mov eax, 0x80070057
push eax
push 0x34a
push str.fileutil.cpp
mov esi, eax
call fcn.0043c22c
jmp 0x443bc9
mov eax, dword [ebp + 8]
test eax, eax
jne 0x44395d
mov eax, 0x80070057
push eax
push 0x34b
jmp 0x443938
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x443971
mov eax, 0x80070057
push eax
push 0x34c
jmp 0x443938
xor ecx, ecx
cmp cx, word [eax]
jne 0x443985
mov eax, 0x80070057
push eax
push 0x34d
jmp 0x443938
push ebx
push edi
push 0x8000080
push 3
push edi
push 5
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, 0xffffffff
jne 0x4439f3
call ebx
mov ecx, eax
mov esi, 0x80070002
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
cmp eax, esi
je 0x443bc8
test ecx, ecx
je 0x4439f0
mov esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x357
push str.fileutil.cpp
call fcn.0043c22c
jmp 0x443bc8
mov esi, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x443a31
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x35c
push str.fileutil.cpp
call fcn.0043c22c
jmp 0x443bb9
cmp dword [ebp + 0x14], edi
je 0x443a7d
mov edi, dword [ebp + 0x18]
xor eax, eax
cmp eax, dword [ebp - 8]
jl 0x443a51
jg 0x443a47
cmp edi, dword [ebp - 0xc]
jbe 0x443a51
mov esi, 0x80070057
jmp 0x443bb9
push 1
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x443a7d
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x443a7d
push esi
push 0x36a
jmp 0x443a22
cmp dword [ebp + 0x20], 0
je 0x443aa9
mov ebx, dword [ebp + 0x1c]
xor edi, edi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
je 0x443af7
test ebx, ebx
jne 0x443ad5
push dword [esi]
call fcn.0043d748
mov dword [esi], edi
mov eax, dword [ebp + 0xc]
mov esi, edi
mov dword [eax], edi
jmp 0x443bb9
mov ecx, dword [ebp - 0xc]
mov ebx, ecx
mov eax, dword [ebp - 8]
sub ebx, edi
sub ecx, edi
push 0
pop edi
sbb eax, edi
cmp edi, eax
jg 0x443a88
jl 0x443ac5
cmp dword [ebp + 0x1c], ecx
jae 0x443a88
mov esi, 0x8007007a
push esi
push 0x37c
jmp 0x443a22
push 1
push ebx
push dword [esi]
call fcn.0043d821
mov edi, eax
test edi, edi
jne 0x443b1b
mov eax, 0x8007000e
push eax
mov esi, eax
push 0x38a
jmp 0x443a22
test ebx, ebx
je 0x443a9d
push 1
push ebx
call fcn.0043d681
mov edi, eax
test edi, edi
jne 0x443b1b
mov eax, 0x8007000e
push eax
mov esi, eax
push 0x397
jmp 0x443a22
xor ecx, ecx
mov eax, ecx
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x1c], eax
jmp 0x443b29
xor ecx, ecx
mov dword [ebp + 0x14], ecx
lea ecx, [ebp + 0x14]
push ecx
push eax
push ebx
call fcn.0043c39e
mov esi, eax
test esi, esi
js 0x443baf
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp + 0x10]
push 0
push eax
push dword [ebp + 0x14]
add ecx, edi
push ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x443b81
mov eax, dword [ebp + 0x1c]
add eax, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
mov dword [ebp + 0x1c], eax
jne 0x443b27
cmp eax, ebx
je 0x443b73
mov esi, 0x8000ffff
jmp 0x443baf
mov eax, dword [ebp + 8]
mov dword [eax], edi
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
jmp 0x443baf
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x3a4
push str.fileutil.cpp
call fcn.0043c22c
test edi, edi
je 0x443bb9
push edi
call fcn.0043d748
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x443bc8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x1c