Function at 0x43bed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bcb17
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x51c0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x44], ebx
mov edi, dword [ebp + 8]
lea ecx, [ebx + 4]
mov dword [ebx], vtable.STREAM.0
lea esi, [ecx + 0x28]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x54], ebx
mov dword [ecx], 0x4dd804
mov dword [esi], 0x4dcac4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x30], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebx + 0x1c], 7
mov dword [ebx + 0x18], 0
mov word [ebx + 8], ax
mov byte [ebp - 4], 1
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov byte [ebp - 4], 2
mov eax, dword [esi]
mov eax, dword [eax + 4]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 5
lea esi, [ebx + 0x54]
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov word [ebx + 0x3c], 0x101
mov byte [ebx + 0x3e], 1
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0xffffffff
mov dword [ebx + 0x4c], 0x2e
mov dword [ebx + 0x50], 0x138
mov dword [ebp - 0x4c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042e7b0
mov dword [esi], eax
mov byte [ebp - 4], 8
mov edx, 0x4d7438
test edi, edi
mov dword [ebx + 0x5c], 0
mov eax, edx
mov byte [ebx + 0x60], 0
cmovne eax, edi
test eax, eax
cmovne edx, eax
cmp word [edx], 0
jne 0x43bfe3
xor ecx, ecx
jmp 0x43bfff
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x43bff0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43bff0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 8]
call fcn.00404170
cmp dword [ebx + 0x1c], 8
lea esi, [ebx + 8]
jb 0x43c016
mov ecx, dword [esi]
jmp 0x43c018
mov ecx, esi
mov dl, 1
call fcn.0043bde0
mov dword [ebx + 0x40], eax
cmp dword [esi + 0x14], 8
jb 0x43c02c
mov eax, dword [esi]
jmp 0x43c02e
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebx + 0x34], edi
cmp edi, 0xffffffff
jne 0x43c060
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebx + 0x44], eax
jmp 0x43c1b7
push 0x2e
lea eax, [ebp - 0x40]
mov dword [ebx + 0x38], 1
push 0
push eax
call fcn.0049b6a0
mov eax, dword [ebx + 0x40]
lea ecx, [ebp - 0x4c]
add esp, 0xc
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0
push 0
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp edi, 0xffffffff
jne 0x43c0ac
test eax, eax
je 0x43c0b4
mov dword [ebx + 0x44], eax
jmp 0x43c1b7
test edi, edi
je 0x43c1b7
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x44]
push 0
push eax
push 0x2e
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x34]
call edi
mov dword [ebp - 0x48], eax
test eax, eax
je 0x43c1a2
cmp dword [ebp - 0x44], 0
je 0x43c1a2
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.0043c400
test eax, eax
je 0x43c0f8
mov cx, word [ebp - 0x32]
test cx, cx
jne 0x43c167
cmp dword [esi + 0x14], 8
jb 0x43c100
mov esi, dword [esi]
xor dl, dl
mov ecx, esi
call fcn.0043bde0
cmp eax, dword [ebx + 0x40]
jbe 0x43c111
mov dword [ebx + 0x40], eax
push 0
push 0
push dword [ebx + 0x40]
mov ecx, ebx
push dword [ebx + 0x34]
call fcn.0043cc30
test eax, eax
je 0x43c1b7
push 0
lea eax, [ebp - 0x48]
push eax
push 0x2e
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x34]
call edi
mov dword [ebp - 0x48], eax
test eax, eax
je 0x43c1b7
cmp dword [ebp - 0x44], 0
je 0x43c1b7
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.0043c400
mov cx, word [ebp - 0x32]
test eax, eax
je 0x43c160
test cx, cx
jne 0x43c167
mov dword [ebx + 0x5c], 3
mov eax, dword [ebx + 0x5c]
cmp eax, 1
je 0x43c180
add eax, 0xfffffffe
cmp eax, 1
ja 0x43c18e
mov dword [ebx + 0x50], 0x18
jmp 0x43c187
mov dword [ebx + 0x50], 0x138
mov dword [ebx + 0x4c], 0x2e
mov al, byte [ebx + 0x60]
test al, al
je 0x43c1b7
movzx eax, cx
mov ecx, ebx
push eax
call fcn.0043cab0
jmp 0x43c1b7
mov dword [ebx + 0x5c], 3
mov dword [ebx + 0x4c], 0x2e
mov dword [ebx + 0x50], 0x18
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004996ca
mov esp, ebp
pop ebp
ret 4