Function at 0x4af8f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov edi, ecx
mov eax, dword [0x4e6418]
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.00460af0
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 - 0x230], edi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esi], 0x6a
jne 0x4af97a
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
lea eax, [ebp - 0x218]
push eax
call fcn.0047b638
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4af9cf
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045901d
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x22c], 0
xor ebx, ebx
mov edx, esi
mov eax, dword [edx + 0x5d100]
mov ecx, dword [edx + 0x5d104]
sub eax, ebx
sbb ecx, dword [ebp - 0x22c]
mov dword [edx + 0x5d118], eax
mov dword [edx + 0x5d11c], ecx
mov dword [edx + 0x5d110], eax
mov dword [edx + 0x5d114], ecx
mov bl, 1
jmp 0x4af97a
mov eax, 0xfffffffc
sub eax, dword [ebp - 0x21c]
xor edi, edi
xor ecx, ecx
inc ecx
push ecx
push edi
push eax
mov esi, dword [ebp - 0x230]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, 4
lea ebx, [ebp - 0x220]
push edi
lea edi, [ebp - 0x21c]
push edi
push eax
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebx]
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 0x4af991
lea eax, [esi + 0x26e4]
mov dword [ebp - 0x234], eax
mov edx, esi
lea edi, [esi + 0x5cfb8]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x22c], 0
jmp 0x4afa97
test eax, eax
je 0x4afb2a
mov dword [eax], edi
add eax, 4
mov dword [edx + 0x26e8], eax
inc esi
add edi, 0x20
cmp esi, dword [ebp - 0x224]
jae 0x4af99f
xor eax, eax
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x20
push edi
push dword [edx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x230]
mov word [edi], 0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
add ecx, dword [edi + 0x18]
adc eax, dword [edi + 0x1c]
mov dword [edi + 8], ecx
sub ebx, ecx
mov dword [edi + 0xc], eax
mov ecx, 0
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
mov ecx, dword [ebp - 0x22c]
sbb ecx, eax
add ebx, dword [edi + 0x10]
adc ecx, dword [edi + 0x14]
add ebx, 1
mov eax, 0
adc ecx, eax
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], edi
mov eax, dword [edx + 0x26e8]
cmp eax, dword [edx + 0x26ec]
jb 0x4afa74
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x228]
push eax
call fcn.004b0100
mov edx, dword [ebp - 0x230]
jmp 0x4afa81
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
push 0x4d143c
call fcn.0048e9c0
int3