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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a7aa6
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x8ca144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1fc], edi
call fcn.00402330
mov eax, dword [0x8cc678]
test eax, eax
jne 0x52d489
push 0x39c
call fcn.006e707a
add esp, 4
mov dword [ebp - 0x1f8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x52d47b
mov ecx, eax
call fcn.0050b200
jmp 0x52d47d
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x8cc678], eax
lea ecx, [ebp - 0x1d8]
push ecx
mov ecx, eax
call fcn.0050bef0
mov dword [ebp - 4], 1
xor ebx, ebx
xor esi, esi
call fcn.00402330
cmp dword [ebp - 0x1c4], 8
lea eax, [ebp - 0x1d8]
push esi
cmovae eax, dword [ebp - 0x1d8]
push 0x80
push 4
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1f4], eax
cmp eax, 0xffffffff
je 0x52d5dc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.006e70fd
mov esi, eax
add esp, 4
mov dword [ebp - 0x1f8], esi
test esi, esi
je 0x52d5c9
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x200], 0
mov ecx, 0x6b
mov byte [ebp - 4], 2
mov esi, str.jbL8JrTMPm74972ld0avUgjxY2s9hQ2ahRKcHp3RGWWeXy544thp5IvpUxJK8gvOZAvBIIc0Grm4q1YzpdfGiVv0Stu8lYIyka0c3cGHQTImzVReGLz4mpX2Hsje3aOTBRVOtpsiB3HFkvDU28ke8MCySL5aHfUzhQBAgOlxyfWjpqhzezm4UFmxYKiuJj6CCye67RVC3RbI6iSE1j7hQm03pRgyiSX5rd8XL2qAE3r9SPjEgv1emZgRQyv8piuV7U9p23muMkPmDMUbdVNSEXl3cESTdLGFNnj9nRRkS6q9UP0PbiAmwGpmMoGNAkmapZqxp2jnBHJACOa4h9Zz1sUMFNM1tDGHI9xJhOdAgsiDpfqdbL8yHNmLVL9ryIBOdFxPIEdyc2KLuUlmqYoARZPvF3FHg2kkU40tMXUwB94k
lea edi, [ebp - 0x1c0]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1c0]
push eax
lea ecx, [ebp - 0x1f0]
movsb byte es:[edi], byte [esi]
call fcn.00405a50
lea eax, [ebp - 0x1f0]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x208]
call fcn.004082f0
mov eax, dword [ebp - 0x1dc]
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x52d586
inc eax
lea ecx, [ebp - 0x1f0]
push eax
push dword [ebp - 0x1f0]
call fcn.004081f0
mov esi, dword [ebp - 0x1f8]
lea eax, [ebx + 1]
push eax
push 0
push esi
call fcn.0074fc20
add esp, 0xc
call fcn.00402330
mov edi, dword [ebp - 0x1f4]
lea eax, [ebp - 0x20c]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x208]
mov byte [ebp - 4], 1
call fcn.00405be0
jmp 0x52d5cf
mov edi, dword [ebp - 0x1f4]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x1fc]
call fcn.006f1258
cmp ebx, 0x100000
jle 0x52d603
call fcn.00402330
cmp dword [edi + 0x28], 8
lea eax, [edi + 0x14]
jb 0x52d5f9
mov eax, dword [eax]
push ebx
push esi
push eax
mov ecx, edi
call fcn.0052eee0
mov eax, dword [ebp - 0x1c4]
cmp eax, 8
jb 0x52d621
inc eax
lea ecx, [ebp - 0x1d8]
push eax
push dword [ebp - 0x1d8]
call fcn.00402920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006e70bb
mov esp, ebp
pop ebp
ret