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

Disassembly:
push 0x3dc
mov eax, 0x670b37
call fcn.00621369
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.00638f20
add esp, 0xc
lea ecx, [ebp - 0xa4]
push 0x70bd50
call fcn.0050d5b0
mov dword [ebp - 4], esi
mov eax, dword [0x70bdd8]
cmp word [eax], si
jne 0x52d581
mov eax, dword [ebp - 0x3e8]
test eax, eax
je 0x52d502
push eax
lea ecx, [ebp - 0xa4]
call fcn.0050d5d5
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 0x52d53a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.0041b502
jmp 0x52d6fd
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x52d526
push ebx
mov dword [ebp - 0x1c], esi
call fcn.00620204
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 0x52d6ea
push edi
call fcn.006201f6
pop ecx
mov edi, esi
jmp 0x52d526
push eax
lea ecx, [ebp - 0xa4]
call fcn.0050d5d5
cmp byte [0x703a99], 0
je 0x52d5a0
mov eax, dword [0x715b3c]
mov dword [ebp - 0x18], eax
jmp 0x52d608
push 0x84
lea eax, [ebp - 0x1b4]
push esi
push eax
call fcn.00638f20
add esp, 0xc
lea ecx, [ebp - 0x1b4]
push 0x70be60
call fcn.0050d5b0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1b4]
call fcn.005145e5
mov ecx, dword [ebp - 0xa4]
xor edx, edx
push eax
push 2
mov dword [ebp - 0x1c], eax
call fcn.00519d94
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
test eax, eax
je 0x52d5fa
push eax
call fcn.006201f6
pop ecx
lea ecx, [ebp - 0x1b4]
call fcn.0041b502
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x52d526
push 0x84
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x1c], esi
push esi
push eax
call fcn.00638f20
add esp, 0xc
lea ecx, [ebp - 0x12c]
push 0xffffffffffffffff
push dword [ebp - 0x3e8]
call fcn.0050d58c
push 0x6d2884
push 0x6cdc00
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 2
call fcn.0050d988
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.00519e8a
add esp, 0xc
test eax, eax
je 0x52d685
lea ecx, [ebp - 0x12c]
call fcn.0041b502
jmp 0x52d526
mov ebx, dword [ebp - 0x1b8]
test ebx, ebx
je 0x52d675
push ebx
call fcn.00620204
mov edx, dword [ebp - 0x1c]
mov edi, eax
mov ecx, dword [ebp - 0x18]
push ebx
push edi
call fcn.00519ebd
add esp, 0xc
test eax, eax
je 0x52d6ce
cmp eax, 0x600
je 0x52d6ce
push edi
call fcn.006201f6
cmp byte [0x703a99], 0
mov edi, esi
pop ecx
jne 0x52d675
mov ecx, dword [ebp - 0x18]
call fcn.00519eee
jmp 0x52d675
cmp byte [0x703a99], 0
jne 0x52d6df
mov ecx, dword [ebp - 0x18]
call fcn.00519eee
lea ecx, [ebp - 0x12c]
call fcn.0041b502
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.0041b502
test edi, edi
jne 0x52d76f
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 0x52d76b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x52d76b
push ebx
mov dword [ebp - 0x18], esi
call fcn.00620204
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 0x52d76b
push edi
call fcn.006201f6
pop ecx
mov edi, esi
test edi, edi
je 0x52d781
mov edx, ebx
mov ecx, edi
call fcn.0052d789
push edi
mov esi, eax
call fcn.006201f6
pop ecx
mov eax, esi
call fcn.00621313
ret