Function at 0x570202dc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, eax
cmp byte [edi + 0x14], 0
je 0x57020438
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov edx, dword [ebp + 8]
add eax, dword [edx - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x24]
add eax, dword [edi + 0x28]
add eax, eax
add eax, eax
add eax, eax
add eax, 0x10
mov edx, dword [ebp + 8]
add dword [edx - 8], eax
mov eax, dword [edi + 0x18]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [edi + 0x1c]
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
movzx eax, word [edi + 0x20]
mov edx, dword [ebp - 0xc]
mov word [edx + 8], ax
movzx eax, word [edi + 0x22]
mov edx, dword [ebp - 0xc]
mov word [edx + 0xa], ax
movzx eax, word [edi + 0x24]
mov edx, dword [ebp - 0xc]
mov word [edx + 0xc], ax
movzx eax, word [edi + 0x28]
mov edx, dword [ebp - 0xc]
mov word [edx + 0xe], ax
xor eax, eax
mov dword [ebp - 4], eax
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x570204f5
mov eax, dword [edi + 0x24]
cmp eax, dword [ebp - 4]
jbe 0x570203df
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 0xc]
or ecx, 0x80000000
mov dword [eax + edx*8 + 0x10], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov edx, dword [ebp + 8]
add eax, dword [edx - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
mov edx, dword [ebp - 8]
mov word [edx], ax
mov eax, dword [ebx + 4]
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
test eax, eax
jle 0x570203ca
mov dword [ebp - 0x10], eax
mov esi, 1
mov eax, dword [ebx + 4]
movzx eax, word [eax + esi*2 - 2]
mov edx, dword [ebp - 8]
mov word [edx + esi*2], ax
inc esi
dec dword [ebp - 0x10]
jne 0x570203b5
mov eax, dword [ebx + 4]
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
add eax, eax
add eax, 2
mov edx, dword [ebp + 8]
add dword [edx - 0xc], eax
jmp 0x570203eb
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [ebx]
mov dword [eax + edx*8 + 0x10], ecx
cmp byte [ebx + 0x14], 0
je 0x57020409
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 8]
or ecx, 0x80000000
mov dword [eax + edx*8 + 0x14], ecx
jmp 0x57020419
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 8]
mov dword [eax + edx*8 + 0x14], ecx
mov eax, dword [ebp + 8]
push eax
mov eax, ebx
call fcn.570202dc
pop ecx
inc dword [ebp - 4]
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x57020364
jmp 0x570204f5
mov eax, dword [ebp + 8]
mov ebx, dword [eax - 4]
mov ebx, dword [ebx]
mov eax, dword [ebp + 8]
add ebx, dword [eax - 8]
mov eax, dword [ebp + 8]
add dword [eax - 8], 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [ebp + 8]
add eax, dword [edx - 0x14]
mov dword [ebx], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 4], eax
mov eax, dword [edi + 0x24]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0x28]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x18]
test eax, eax
je 0x5702048c
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
mov ecx, dword [ebp + 8]
add edx, dword [ecx - 0x10]
mov ecx, dword [ebx + 4]
call sub.rtl120.bpl__System_Move_qqrpxvpvi
jmp 0x570204e2
cmp dword [edi + 0x10], 0
je 0x570204ad
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
add edx, dword [eax - 0x10]
mov ecx, dword [ebx + 4]
mov eax, dword [edi + 0x10]
call sub.rtl120.bpl__System_Move_qqrpxvpvi
jmp 0x570204e2
mov eax, dword [edi + 0x20]
test eax, eax
je 0x570204e2
push 0
push 0
push 0
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov edx, dword [ebp + 8]
add eax, dword [edx - 0x10]
push eax
mov eax, dword [edi + 0x20]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebx + 4]
mov edx, 4
call fcn.5701fb04
mov edx, dword [ebp + 8]
add dword [edx - 0x10], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret