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

Disassembly:
push 0x3dc
mov eax, 0x676f5f
call fcn.00626979
mov dword [ebp - 0x3e8], ecx
xor esi, esi
lea eax, [ebp - 0xa4]
push 0x84
push esi
push eax
mov edi, esi
mov ebx, esi
call fcn.0063e4e0
add esp, 0xc
lea ecx, [ebp - 0xa4]
push 0x713da8
call fcn.005164d0
mov dword [ebp - 4], esi
mov eax, dword [0x713e30]
cmp word [eax], si
jne 0x532bd2
mov eax, dword [ebp - 0x3e8]
test eax, eax
je 0x532b53
push eax
lea ecx, [ebp - 0xa4]
call fcn.005164f5
push esi
push 0x80
push 3
push esi
push 1
push closesocket
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x532b8b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.0041b542
jmp 0x532d51
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x532b77
push ebx
mov dword [ebp - 0x1c], esi
call fcn.0062580b
pop ecx
push esi
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], ebx
je 0x532d3e
push edi
call fcn.006257fd
pop ecx
mov edi, esi
jmp 0x532b77
push eax
lea ecx, [ebp - 0xa4]
call fcn.005164f5
cmp byte [0x70ba99], 0
je 0x532bf1
mov eax, dword [0x71dd34]
mov dword [ebp - 0x18], eax
jmp 0x532c59
push 0x84
lea eax, [ebp - 0x1b4]
push esi
push eax
call fcn.0063e4e0
add esp, 0xc
lea ecx, [ebp - 0x1b4]
push 0x713eb8
call fcn.005164d0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1b4]
call fcn.0051d5a8
mov ecx, dword [ebp - 0xa4]
xor edx, edx
push eax
push 2
mov dword [ebp - 0x1c], eax
call fcn.00460fde
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
test eax, eax
je 0x532c4b
push eax
call fcn.006257fd
pop ecx
lea ecx, [ebp - 0x1b4]
call fcn.0041b542
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x532b77
push 0x84
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x1c], esi
push esi
push eax
call fcn.0063e4e0
add esp, 0xc
lea ecx, [ebp - 0x12c]
push 0xffffffffffffffff
push dword [ebp - 0x3e8]
call fcn.005164ac
push 0x6da3bc
push 0x6d4cb8
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 2
call fcn.00516945
mov edx, dword [ebp - 0x12c]
lea eax, [ebp - 0x3e4]
push eax
lea eax, [ebp - 0x1c]
push eax
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00461113
add esp, 0xc
test eax, eax
je 0x532cd6
lea ecx, [ebp - 0x12c]
call fcn.0041b542
jmp 0x532b77
mov ebx, dword [ebp - 0x1b8]
test ebx, ebx
je 0x532cc6
push ebx
call fcn.0062580b
mov edx, dword [ebp - 0x1c]
mov edi, eax
pop ecx
mov ecx, dword [ebp - 0x18]
push 3
push ebx
push edi
call fcn.00461146
add esp, 0xc
test eax, eax
je 0x532d22
cmp eax, 0x600
je 0x532d22
push edi
call fcn.006257fd
cmp byte [0x70ba99], 0
mov edi, esi
pop ecx
jne 0x532cc6
mov ecx, dword [ebp - 0x18]
call fcn.00461179
jmp 0x532cc6
cmp byte [0x70ba99], 0
jne 0x532d33
mov ecx, dword [ebp - 0x18]
call fcn.00461179
lea ecx, [ebp - 0x12c]
call fcn.0041b542
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.0041b542
test edi, edi
jne 0x532dc3
push esi
push 0x80
push 3
push esi
push 1
push closesocket
push dword [ebp - 0x3e8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3e8], eax
cmp eax, 0xffffffff
je 0x532dbf
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x532dbf
push ebx
mov dword [ebp - 0x18], esi
call fcn.0062580b
pop ecx
push esi
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push dword [ebp - 0x3e8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3e8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x532dbf
push edi
call fcn.006257fd
pop ecx
mov edi, esi
test edi, edi
je 0x532dd5
mov edx, ebx
mov ecx, edi
call fcn.00532ddd
push edi
mov esi, eax
call fcn.006257fd
pop ecx
mov eax, esi
call fcn.00626923
ret