Function at 0x52f070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61f1a3
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
push ebx
push esi
push edi
mov eax, dword [0x69bd40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
push dword [ebp + 8]
call fcn.0052eef0
mov dword [ebp + 8], eax
mov edi, 1
lea eax, [ebp + 8]
push eax
call fcn.0052ce90
add esp, 8
mov ecx, esi
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0052cde0
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x52f37a
cmp ebx, dword [esi + 4]
je 0x52f37a
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
cmp eax, dword [ebx + 0x1c]
jne 0x52f1a5
push eax
push dword [ebp + 0x10]
call fcn.0052cc30
add esp, 8
mov edi, eax
push 0
push 0
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [esi + 0xa4]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [esi + 0xa4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esi + 0x40]
mov dword [ebp - 4], 0
push eax
push 0x20
lea eax, [esi + 0x20]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0052ceb0
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x98]
push edi
push esi
push esi
mov byte [ebp - 4], 1
call fcn.005be7c0
lea ecx, [ebp - 0x9c]
call fcn.0052db70
lea ecx, [ebp - 0x60]
call fcn.0052df40
cmp edi, dword [ebx + 0x18]
jne 0x52f18d
push 0xc6b4e32f
push edi
push esi
call fcn.005c36a0
add esp, 0xc
cmp eax, dword [ebx + 0x20]
jne 0x52f31c
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x52f378
mov dword [eax], edi
jmp 0x52f378
xor ecx, ecx
xor edi, edi
xor esi, esi
mov dword [ebp + 8], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edi
test eax, eax
je 0x52f1fa
cmp eax, 0x7fffffff
ja 0x52f3df
push eax
cmp eax, 0x1000
jb 0x52f1d5
call fcn.0043c2b0
jmp 0x52f1da
call fcn.0059df22
mov edi, dword [ebp - 0x24]
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
add edi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
push edi
push esi
call fcn.0043c100
add esp, 8
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x14]
push 0
push 0
push dword [ebx + 0x14]
mov dword [ebp - 4], 3
push dword [ebx + 0x10]
push dword [eax + 0xa4]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 0x18]
mov eax, dword [ebp - 0x14]
push esi
push dword [eax + 0xa4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
lea eax, [ecx + 0x40]
push eax
lea eax, [ecx + 0x20]
push 0x20
push eax
lea ecx, [ebp - 0x108]
call fcn.0052ceb0
push dword [ebx + 0x18]
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 5
push esi
push esi
call fcn.005be7c0
lea ecx, [ebp - 0x108]
call fcn.0052db70
lea ecx, [ebp - 0xcc]
call fcn.0052df40
push dword [ebx + 0x1c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005c3450
add esp, 0xc
cmp eax, dword [ebx + 0x18]
je 0x52f2d6
test esi, esi
je 0x52f2bd
sub edi, esi
cmp edi, 0x1000
jb 0x52f2b3
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x52f3e4
mov esi, ecx
push edi
push esi
call fcn.0059df52
add esp, 8
mov eax, 6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0xc6b4e32f
push dword [ebx + 0x1c]
push dword [ebp + 0xc]
call fcn.005c36a0
add esp, 0xc
cmp eax, dword [ebx + 0x20]
je 0x52f335
test esi, esi
je 0x52f31c
sub edi, esi
cmp edi, 0x1000
jb 0x52f312
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x52f3e4
mov esi, ecx
push edi
push esi
call fcn.0059df52
add esp, 8
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebp + 0x14], 0
je 0x52f34e
push dword [ebx + 0x1c]
push dword [ebp + 0x10]
call fcn.0052cc30
mov ecx, dword [ebp + 0x14]
add esp, 8
mov dword [ecx], eax
test esi, esi
je 0x52f378
sub edi, esi
cmp edi, 0x1000
jb 0x52f36e
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x52f3e4
mov esi, ecx
push edi
push esi
call fcn.0059df52
add esp, 8
xor edi, edi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call fcn.0043c0f0
call fcn.005e5408
int3