Function at 0x574a00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x230
mov edi, ecx
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea esi, [ebp - 0x21c]
mov dword [esi], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], ebx
lea eax, [ebp - 0x218]
push 0x208
push ebx
push eax
call fcn.005191b0
add esp, 0xc
push 2
push ebx
push 0xffffffffffffff96
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push esi
push 0x6a
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x22c], edi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esi], 0x6a
jne 0x574a8a
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
lea eax, [ebp - 0x218]
push eax
call fcn.005341be
add esp, 8
xor ebx, ebx
test eax, eax
je 0x574aa1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00512ee3
mov eax, ebx
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 0xfffffffc
sub eax, dword [ebp - 0x21c]
xor ecx, ecx
inc ecx
push ecx
xor ecx, ecx
push ecx
push eax
mov esi, dword [ebp - 0x22c]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 4
lea edi, [ebp - 0x220]
xor eax, eax
push eax
lea eax, [ebp - 0x21c]
push eax
push ecx
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi]
add eax, dword [ebp - 0x21c]
neg eax
xor ecx, ecx
inc ecx
push ecx
xor ebx, ebx
push ebx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edi, [ebp - 0x224]
push ebx
lea eax, [ebp - 0x21c]
push eax
mov eax, 4
push eax
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [edi], ebx
je 0x574cb0
lea edi, [esi + 0x5cfb8]
xor eax, eax
mov dword [ebp - 0x228], 0
xor ebx, ebx
mov edx, esi
mov dword [ebp - 0x238], eax
xor esi, esi
push esi
lea eax, [ebp - 0x21c]
push eax
push 0x20
push edi
push dword [edx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov word [edi], 0
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
add eax, dword [edi + 0x18]
adc ecx, dword [edi + 0x1c]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], esi
mov edx, dword [ebp - 0x228]
sub edx, eax
sbb ebx, ecx
add edx, dword [edi + 0x10]
adc ebx, dword [edi + 0x14]
add edx, 1
mov dword [ebp - 0x228], edx
mov edx, dword [ebp - 0x22c]
adc ebx, esi
mov dword [ebp - 0x23c], ebx
mov ebx, dword [edx + 0x26e8]
mov eax, dword [edx + 0x26ec]
cmp ebx, eax
jae 0x574bd6
mov dword [ebx], edi
add ebx, 4
mov dword [edx + 0x26e8], ebx
mov eax, dword [ebp - 0x238]
inc eax
add edi, 0x20
cmp eax, dword [ebp - 0x224]
mov ebx, dword [ebp - 0x23c]
jb 0x574b3a
jmp 0x574cbc
mov ecx, dword [edx + 0x26e4]
sub ebx, ecx
sar ebx, 2
lea edx, [ebx + 1]
cmp edx, 0x40000000
jae 0x574cef
sub eax, ecx
mov esi, eax
sar esi, 1
cmp esi, edx
cmovbe esi, edx
cmp eax, 0x7ffffffc
mov eax, 0x3fffffff
cmovae esi, eax
test esi, esi
je 0x574ca9
cmp esi, 0x40000000
jae 0x574cf4
lea eax, [esi*4]
push eax
call fcn.00510d64
add esp, 4
lea edx, [eax + ebx*4]
lea ecx, [eax + esi*4]
mov dword [ebp - 0x234], ecx
mov dword [edx], edi
lea eax, [eax + ebx*4]
add eax, 4
mov dword [ebp - 0x230], eax
mov esi, dword [ebp - 0x22c]
mov eax, dword [esi + 0x26e4]
mov ecx, dword [esi + 0x26e8]
sub ecx, eax
sub edx, ecx
push ecx
push eax
push edx
mov ebx, edx
call fcn.00518c30
add esp, 0xc
mov eax, dword [esi + 0x26e4]
mov dword [esi + 0x26e4], ebx
mov ecx, dword [ebp - 0x230]
mov dword [esi + 0x26e8], ecx
mov ecx, dword [ebp - 0x234]
mov dword [esi + 0x26ec], ecx
mov edx, esi
test eax, eax
je 0x574bb5
push eax
mov esi, edx
call fcn.0050fc7c
mov edx, esi
add esp, 4
jmp 0x574bb5
xor eax, eax
jmp 0x574c2c
mov dword [ebp - 0x228], 0
mov edx, esi
mov eax, dword [edx + 0x5d100]
mov ecx, dword [edx + 0x5d104]
sub eax, dword [ebp - 0x228]
sbb ecx, ebx
mov dword [edx + 0x5d118], eax
mov dword [edx + 0x5d11c], ecx
mov dword [edx + 0x5d110], eax
mov dword [edx + 0x5d114], ecx
mov bl, 1
jmp 0x574a8a
call fcn.0052ce30
call fcn.00549f00
int3