Function at 0x43e489
Capabilities:
Read file on windows

Disassembly:
push 0x44
mov eax, 0x470280
call fcn.004436e9
mov ebx, ecx
mov edi, dword [ebp + 8]
push 1
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebx + 4]
mov dword [ebp - 0x50], ebx
mov dword [ebx], vtable.STREAM.0
call fcn.00402580
xor eax, eax
mov dword [ebp - 4], eax
or dword [ebx + 0x48], 0xffffffff
lea ecx, [ebx + 0x54]
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
mov word [ebx + 0x3c], 0x101
mov byte [ebx + 0x3e], 1
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x4c], 0x2e
mov dword [ebx + 0x50], 0x138
call fcn.0043e3f6
mov byte [ebp - 4], 1
and dword [ebx + 0x5c], 0
mov eax, 0x485168
test edi, edi
cmovne eax, edi
push eax
lea ecx, [ebx + 4]
mov byte [ebx + 0x60], 0
call fcn.004044b0
lea esi, [ebx + 8]
cmp dword [esi + 0x14], 8
jb 0x43e50f
mov eax, dword [esi]
jmp 0x43e511
mov eax, esi
push 1
push eax
call fcn.0043efe4
pop ecx
mov dword [ebx + 0x40], eax
cmp dword [esi + 0x14], 8
pop ecx
jb 0x43e528
mov eax, dword [esi]
jmp 0x43e52a
mov eax, esi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x34], eax
cmp eax, 0xffffffff
jne 0x43e559
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x44], eax
jmp 0x43e6a4
push 0x2e
lea eax, [ebp - 0x40]
push edi
push eax
mov dword [ebx + 0x38], 1
call fcn.004426c0
add esp, 0xc
mov ecx, ebx
push 0
push 0
push dword [ebx + 0x40]
push dword [ebx + 0x34]
call fcn.0043f7e0
test eax, eax
je 0x43e6a4
push 0
lea eax, [ebp - 0x48]
push eax
push 0x2e
pop edi
push edi
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x43e693
cmp dword [ebp - 0x48], 0
je 0x43e693
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.0043e946
test eax, eax
je 0x43e5cc
mov di, word [ebp - 0x32]
test di, di
jne 0x43e648
cmp dword [esi + 0x14], 8
jb 0x43e5d4
mov esi, dword [esi]
push 0
push esi
call fcn.0043efe4
pop ecx
pop ecx
cmp eax, dword [ebx + 0x40]
jbe 0x43e5e6
mov dword [ebx + 0x40], eax
push 0
push 0
push dword [ebx + 0x40]
mov ecx, ebx
push dword [ebx + 0x34]
call fcn.0043f7e0
test eax, eax
je 0x43e6a4
push 0
lea eax, [ebp - 0x4c]
push eax
push 0x2e
pop esi
push esi
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x43e6a4
cmp dword [ebp - 0x48], 0
je 0x43e6a4
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.0043e946
mov di, word [ebp - 0x32]
test eax, eax
je 0x43e63f
test di, di
jne 0x43e64b
mov dword [ebx + 0x5c], 4
jmp 0x43e64b
push 0x2e
pop esi
mov eax, dword [ebx + 0x5c]
cmp eax, 1
je 0x43e671
jbe 0x43e67b
cmp eax, 3
jbe 0x43e668
cmp eax, 4
jne 0x43e67b
mov dword [ebx + 0x50], 0x30
jmp 0x43e678
mov dword [ebx + 0x50], 0x18
jmp 0x43e678
mov dword [ebx + 0x50], 0x138
mov dword [ebx + 0x4c], esi
mov ecx, ebx
call fcn.0043f4e1
test al, al
je 0x43e6a4
movzx eax, di
push eax
mov ecx, ebx
call fcn.0043f0e1
jmp 0x43e6a4
mov dword [ebx + 0x5c], 4
mov dword [ebx + 0x4c], edi
mov dword [ebx + 0x50], 0x30
or dword [ebp - 4], 0xffffffff
mov eax, ebx
call fcn.00443698
ret 4