Function at 0x42d603
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x45222c
call fcn.004435ac
sub esp, 0x20c
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, ecx
cmp esi, eax
push edi
mov dword [ebp - 0x10], ebx
je 0x42d87a
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
cmp dword [esi], eax
jne 0x42d643
cmp byte [esi + 0xe], 0x11
jne 0x42d643
push edi
push esi
call fcn.0042ddc9
jmp 0x42d892
cmp dword [esi + 0x24], eax
je 0x42d652
mov eax, dword [esi + 4]
mov dword [edi], eax
jmp 0x42d88f
cmp word [ebx + 0x10e], 2
jne 0x42d7b6
movsx eax, word [esi + 0xc]
push eax
lea eax, [ebp - 0x218]
push str._u.res
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push ebx
call fcn.00430531
lea eax, [ebp - 0x114]
push 1
push eax
call fcn.004305c9
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp - 0x114]
push SysReAllocStringLen
push eax
call ebx
mov dword [ebp + 0x10], eax
and dword [ebp - 4], 0
cmp eax, 0xffffffff
jne 0x42d717
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x218]
push eax
movsx eax, word [esi + 0xc]
push eax
call fcn.0042decb
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp - 0x114]
push SysReAllocStringLen
push eax
call ebx
mov ebx, eax
push 0xffffffffffffffff
cmp ebx, 0xffffffff
je 0x42d782
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x10], ebx
mov ax, word [esi + 0x10]
mov ecx, eax
or ecx, 2
cmp ax, cx
jne 0x42d729
mov eax, dword [esi]
jmp 0x42d72c
mov eax, dword [esi + 4]
mov dword [edi], eax
inc eax
push eax
call fcn.00442e85
pop ecx
mov dword [esi + 0x24], eax
lea ecx, [ebp + 8]
push 0
push ecx
push dword [edi]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 8]
cmp eax, dword [edi]
jne 0x42d775
mov ax, word [esi + 0x10]
mov ecx, eax
or ecx, 2
cmp ax, cx
jne 0x42d79e
push dword [esi + 4]
push edi
push dword [esi + 0x24]
call fcn.0042e90e
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x42d78d
cmp dword [ebp + 0x10], 0
je 0x42d87a
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42d87a
mov eax, dword [edi]
push dword [esi + 0x24]
mov dword [esi + 4], eax
call fcn.00442b3f
pop ecx
mov dword [esi + 0x24], ebx
cmp dword [ebp + 0x10], 0
je 0x42d88f
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42d88f
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x42d7fb
xor eax, eax
cmp byte [esi + 0xe], 0x11
jne 0x42d7d4
cmp byte [esi + 0xf], 2
je 0x42d7d4
push 0xe
pop eax
push edi
push eax
push dword [ebp + 0x10]
mov ecx, ebx
push dword [esi + 0x1c]
push dword [esi + 0x20]
call fcn.0042df89
cmp dword [ebp + 0x10], 1
mov dword [esi + 0x24], eax
je 0x42d87a
test eax, eax
jne 0x42d88f
mov eax, dword [ebx + 0x1c0]
cmp eax, 0xffffffff
je 0x42d87a
push 0
push 0
push dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x42d87a
mov ax, word [esi + 0x10]
mov ecx, eax
or ecx, 2
cmp ax, cx
jne 0x42d82b
mov eax, dword [esi]
jmp 0x42d82e
mov eax, dword [esi + 4]
mov dword [edi], eax
inc eax
push eax
call fcn.00442e85
pop ecx
mov dword [esi + 0x24], eax
lea ecx, [ebp + 0x10]
push 0
push ecx
push dword [edi]
push eax
push dword [ebx + 0x1c0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x10]
cmp eax, dword [edi]
jne 0x42d87a
mov ax, word [esi + 0x10]
mov ecx, eax
or ecx, 2
cmp ax, cx
jne 0x42d88f
push dword [esi + 4]
push edi
push dword [esi + 0x24]
call fcn.0042e90e
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x42d87e
xor eax, eax
jmp 0x42d892
mov eax, dword [edi]
push dword [esi + 0x24]
mov dword [esi + 4], eax
call fcn.00442b3f
pop ecx
mov dword [esi + 0x24], ebx
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc