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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6326d6
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6b278c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
push 0
push 0x80
push 3
push 0
push 1
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0xffffffff
je 0x531044
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x531044
cmp dword [ebp - 0x18], 0
jne 0x531044
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005b2e02
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], ecx
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x531044
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x53103a
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [eax + 0x18]
call edx
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [eax + 0x10]
call edx
test eax, eax
jne 0x53101a
push 0x10
call fcn.00532d60
add esp, 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x38], 0
je 0x531000
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.00532d70
mov dword [ebp - 0x4c], eax
jmp 0x531007
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
push edx
call fcn.005b467e
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
jne 0x53104e
xor eax, eax
jmp 0x531094
mov ecx, dword [ebp - 0x14]
call fcn.00532fa0
test eax, eax
je 0x531091
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], 0
je 0x53107f
push 1
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x40]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x50], eax
jmp 0x531086
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x14], 0
xor eax, eax
jmp 0x531094
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4