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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63327b
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x6bae70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2ec], ecx
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2cc], 0
call fcn.004bcf60
push eax
lea ecx, [ebp - 0x94]
call fcn.004b8b50
mov dword [ebp - 4], 0
call fcn.004bcf70
mov ecx, eax
call fcn.004b9c50
movzx eax, al
test eax, eax
je 0x525a5a
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x94]
call fcn.004b91b0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.004b8f40
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0xffffffff
jne 0x52596d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004b8d30
jmp 0x525c21
push 0
mov edx, dword [ebp - 0x2d8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2cc], eax
cmp dword [ebp - 0x2cc], 0
jne 0x5259af
mov eax, dword [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004b8d30
jmp 0x525c21
mov dword [ebp - 0x2e4], 0
mov ecx, dword [ebp - 0x2cc]
push ecx
call fcn.005d4157
add esp, 4
mov dword [ebp - 0x304], eax
mov edx, dword [ebp - 0x304]
mov dword [ebp - 0x2c8], edx
push 0
lea eax, [ebp - 0x2e4]
push eax
mov ecx, dword [ebp - 0x2cc]
push ecx
mov edx, dword [ebp - 0x2c8]
push edx
mov eax, dword [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x2d8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2e4]
cmp edx, dword [ebp - 0x2cc]
je 0x525a55
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x2e8], eax
mov ecx, dword [ebp - 0x2e8]
push ecx
call fcn.005eaed6
add esp, 4
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004b8d30
jmp 0x525c21
jmp 0x525c07
call fcn.004bcf70
push eax
lea ecx, [ebp - 0x94]
call fcn.004b90f0
mov dword [ebp - 0x2d0], 0
call fcn.004bd260
movzx edx, al
test edx, edx
je 0x525a8e
call fcn.004bcf80
mov dword [ebp - 0x2d0], eax
jmp 0x525aac
push 2
push 0
lea ecx, [ebp - 0x94]
call fcn.004b8f40
push eax
call fcn.004dc560
add esp, 0xc
mov dword [ebp - 0x2d0], eax
cmp dword [ebp - 0x2d0], 0
jne 0x525acc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004b8d30
jmp 0x525c21
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x2f0]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x2d0]
push eax
call fcn.004db910
add esp, 0x14
test eax, eax
je 0x525b0a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004b8d30
jmp 0x525c21
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x2cc], ecx
cmp dword [ebp - 0x2cc], 0
jne 0x525b36
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004b8d30
jmp 0x525c21
mov edx, dword [ebp - 0x2cc]
push edx
call fcn.005d4157
add esp, 4
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x2c8], eax
push 3
mov ecx, dword [ebp - 0x2cc]
push ecx
mov edx, dword [ebp - 0x2c8]
push edx
mov eax, dword [ebp - 0x2f0]
push eax
mov ecx, dword [ebp - 0x2d0]
push ecx
call fcn.004dcbc0
add esp, 0x14
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
je 0x525bec
cmp dword [ebp - 0x2e0], 0x600
je 0x525bec
mov edx, dword [ebp - 0x2c8]
mov dword [ebp - 0x300], edx
mov eax, dword [ebp - 0x300]
push eax
call fcn.005eaed6
add esp, 4
mov dword [ebp - 0x2c8], 0
call fcn.004bd260
movzx ecx, al
test ecx, ecx
jne 0x525bd8
mov edx, dword [ebp - 0x2d0]
push edx
call fcn.004db650
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004b8d30
jmp 0x525c21
call fcn.004bd260
movzx eax, al
test eax, eax
jne 0x525c07
mov ecx, dword [ebp - 0x2d0]
push ecx
call fcn.004db650
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004b8d30
xor edx, edx
jne 0x5258e5
cmp dword [ebp - 0x2c8], 0
jne 0x525d24
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d4], eax
cmp dword [ebp - 0x2d4], 0xffffffff
jne 0x525c5e
jmp 0x525d24
push 0
mov ecx, dword [ebp - 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2cc], eax
cmp dword [ebp - 0x2cc], 0
jne 0x525c8e
mov edx, dword [ebp - 0x2d4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x525d24
mov dword [ebp - 0x2dc], 0
mov eax, dword [ebp - 0x2cc]
push eax
call fcn.005d4157
add esp, 4
mov dword [ebp - 0x2f8], eax
mov ecx, dword [ebp - 0x2f8]
mov dword [ebp - 0x2c8], ecx
push 0
lea edx, [ebp - 0x2dc]
push edx
mov eax, dword [ebp - 0x2cc]
push eax
mov ecx, dword [ebp - 0x2c8]
push ecx
mov edx, dword [ebp - 0x2d4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2dc]
cmp ecx, dword [ebp - 0x2cc]
je 0x525d1d
mov edx, dword [ebp - 0x2c8]
mov dword [ebp - 0x308], edx
mov eax, dword [ebp - 0x308]
push eax
call fcn.005eaed6
add esp, 4
mov dword [ebp - 0x2c8], 0
jmp 0x525d24
cmp dword [ebp - 0x2c8], 0
jne 0x525d31
xor eax, eax
jmp 0x525d71
mov ecx, dword [ebp - 0x2cc]
push ecx
mov edx, dword [ebp - 0x2c8]
push edx
mov ecx, dword [ebp - 0x2ec]
call fcn.00525d90
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x2f4], eax
mov ecx, dword [ebp - 0x2f4]
push ecx
call fcn.005eaed6
add esp, 4
mov eax, dword [ebp - 0x2fc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005e9734
mov esp, ebp
pop ebp
ret 4