Function at 0x42a70a
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x470c81
call fcn.00470310
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_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x42a915
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 0x42a8da
push 4
pop edi
cmp dword [ebp - 0x18], edi
jne 0x42a908
push edi
lea eax, [ebp - 0x24]
push 0x4833ec
push eax
call sub.NSCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x42a908
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 0x42a908
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 0x42a908
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 0x42a908
cmp word [ebp - 0x10], si
mov dword [ebp - 0x20], esi
je 0x42a815
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 0x42a815
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 0x42a8ed
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 0x42a908
xor edi, edi
cmp word [ebp - 0x14], si
je 0x42a874
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 0x42a874
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 0x42a8f8
push 0x128
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 0x42a8ac
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.0042a413
mov edi, eax
xor esi, esi
jmp 0x42a8ae
xor edi, edi
or dword [ebp - 4], 0xffffffff
push edi
mov ecx, 0x48e30c
call fcn.00410c0b
mov ecx, dword [0x492560]
push edi
push esi
push 0xa
call fcn.00424a5f
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 0x42a754
xor esi, esi
inc esi
jmp 0x42a908
push dword [ebp - 0x20]
call dword [sym.imp.NSCRT.dll_free]
jmp 0x42a907
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 0x42a917
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret