Function at 0x45529f
Capabilities:
Read file on windows

Disassembly:
push 0x48
mov eax, 0x49fd44
call fcn.00459b85
mov esi, ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], esi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x41]
push 1
lea ebx, [esi + 4]
mov dword [ebp - 0x54], esi
push eax
mov ecx, ebx
mov dword [esi], vtable.STREAM.0
call fcn.004060a0
xor eax, eax
mov dword [ebp - 4], eax
lea ecx, [esi + 0x54]
or dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov word [esi + 0x3c], 0x101
mov byte [esi + 0x3e], 1
mov dword [esi + 0x44], eax
mov dword [esi + 0x4c], 0x2e
mov dword [esi + 0x50], 0x138
call fcn.0042a953
mov byte [ebp - 4], 1
and dword [esi + 0x5c], 0
test edi, edi
mov byte [esi + 0x60], 0
mov esi, 0x4b65d4
mov eax, esi
cmovne eax, edi
test eax, eax
cmovne esi, eax
push esi
call fcn.00473ca3
pop ecx
push eax
push esi
lea ecx, [ebx + 4]
call fcn.00408130
mov ebx, dword [ebp - 0x50]
lea esi, [ebx + 8]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x45533f
mov eax, dword [esi]
push 1
push eax
call fcn.00455d2c
mov dword [ebx + 0x40], eax
mov eax, esi
cmp dword [esi + 0x14], 8
pop ecx
pop ecx
jb 0x455356
mov eax, dword [esi]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x34], eax
cmp eax, 0xffffffff
jne 0x455385
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x44], eax
jmp 0x4554dd
push 0x2e
lea eax, [ebp - 0x40]
mov dword [ebx + 0x38], 1
push edi
push eax
call fcn.004714b0
add esp, 0xc
mov ecx, ebx
push 0
push 0
push dword [ebx + 0x40]
push dword [ebx + 0x34]
call fcn.004565ac
test eax, eax
je 0x4554dd
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 0x4554cc
cmp dword [ebp - 0x48], 0
je 0x4554cc
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.00455672
test eax, eax
je 0x4553fc
mov di, word [ebp - 0x32]
test di, di
jne 0x45547e
cmp dword [esi + 0x14], 8
jb 0x455404
mov esi, dword [esi]
push 0
push esi
call fcn.00455d2c
pop ecx
pop ecx
mov ecx, dword [ebx + 0x40]
cmp eax, ecx
jbe 0x45541a
mov dword [ebx + 0x40], eax
mov ecx, eax
push 0
push 0
push ecx
push dword [ebx + 0x34]
mov ecx, ebx
call fcn.004565ac
test eax, eax
je 0x4554dd
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 0x4554dd
cmp dword [ebp - 0x48], 0
je 0x4554dd
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.00455672
mov di, word [ebp - 0x32]
test eax, eax
je 0x455475
test di, di
jne 0x455481
mov dword [ebx + 0x5c], 4
jmp 0x455481
push 0x2e
pop esi
mov eax, dword [ebx + 0x5c]
sub eax, 1
je 0x4554aa
sub eax, 1
je 0x4554a1
sub eax, 1
je 0x4554a1
sub eax, 1
jne 0x4554b4
mov dword [ebx + 0x50], 0x30
jmp 0x4554b1
mov dword [ebx + 0x50], 0x18
jmp 0x4554b1
mov dword [ebx + 0x50], 0x138
mov dword [ebx + 0x4c], esi
mov ecx, ebx
call fcn.00456274
test al, al
je 0x4554dd
movzx eax, di
mov ecx, ebx
push eax
call fcn.00455e5b
jmp 0x4554dd
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.00459b34
ret 4