Function at 0x42ef18
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x48442c
call fcn.00483a50
sub esp, 0x30
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x42f123
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [ebp - 0x18]
push ecx
push 4
lea ecx, [ebp - 0x24]
push ecx
push eax
jmp 0x42f0e8
push 4
pop edi
cmp dword [ebp - 0x18], edi
jne 0x42f116
push edi
lea eax, [ebp - 0x24]
push 0x49c434
push eax
call sub.NSCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x42f116
push esi
lea eax, [ebp - 0x18]
push eax
push 0x10
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], esi
call ebx
cmp dword [ebp - 0x18], 0x10
jne 0x42f116
push esi
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], esi
call ebx
cmp dword [ebp - 0x18], edi
jne 0x42f116
push esi
lea eax, [ebp - 0x18]
push eax
push 2
pop edi
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], esi
call ebx
cmp dword [ebp - 0x18], edi
jne 0x42f116
cmp word [ebp - 0x10], si
mov dword [ebp - 0x20], esi
je 0x42f023
movzx eax, word [ebp - 0x10]
inc eax
push eax
call dword [sym.imp.NSCRT.dll_malloc]
cmp eax, esi
pop ecx
mov dword [ebp - 0x20], eax
je 0x42f023
movzx ecx, word [ebp - 0x10]
mov byte [ecx + eax], 0
push esi
lea ecx, [ebp - 0x18]
push ecx
movzx ecx, word [ebp - 0x10]
push ecx
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], esi
call ebx
movzx eax, word [ebp - 0x10]
cmp dword [ebp - 0x18], eax
jne 0x42f0fb
push esi
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], esi
call ebx
cmp dword [ebp - 0x18], edi
jne 0x42f116
xor edi, edi
cmp word [ebp - 0x14], si
je 0x42f082
movzx eax, word [ebp - 0x14]
inc eax
push eax
call dword [sym.imp.NSCRT.dll_malloc]
cmp dword [ebp - 0x20], esi
pop ecx
mov edi, eax
je 0x42f082
movzx eax, word [ebp - 0x14]
mov byte [eax + edi], 0
push esi
lea eax, [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x14]
push eax
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], esi
call ebx
movzx eax, word [ebp - 0x14]
cmp dword [ebp - 0x18], eax
jne 0x42f106
push 0x22c
call sub.NSCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x42f0ba
push dword [ebp + 0xc]
lea esi, [ebp - 0x3c]
push edi
push dword [ebp - 0x20]
mov ecx, eax
sub esp, 0x10
mov edi, esp
push dword [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0042ec21
mov edi, eax
xor esi, esi
jmp 0x42f0bc
xor edi, edi
or dword [ebp - 4], 0xffffffff
push edi
mov ecx, 0x4a7f4c
call fcn.00412937
mov ecx, dword [0x4ac3c8]
push edi
push esi
push 0xa
call fcn.00475aa3
push esi
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], esi
call ebx
cmp dword [ebp - 0x18], esi
jne 0x42ef62
xor esi, esi
inc esi
jmp 0x42f116
push dword [ebp - 0x20]
call dword [sym.imp.NSCRT.dll_free]
jmp 0x42f115
push dword [ebp - 0x20]
mov ebx, dword [sym.imp.NSCRT.dll_free]
call ebx
push edi
call ebx
pop ecx
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x42f125
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret