Function at 0x43f250
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c03e7
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5210b0]
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 dword [ebp - 0x54], ecx
mov dword [ebp - 0x44], ecx
mov ebx, dword [ebp + 8]
lea esi, [ecx + 4]
mov dword [ecx], vtable.STREAM.0
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x58], ecx
mov dword [esi], 0x4e1680
mov dword [esi + 0x28], 0x4e1670
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2c], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 4]
push dword [eax + esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 5
mov edi, dword [ebp - 0x54]
lea esi, [edi + 0x54]
mov dword [ebp - 0x4c], esi
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov word [edi + 0x3c], 0x101
mov byte [edi + 0x3e], 1
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0xffffffff
mov dword [edi + 0x4c], 0x2e
mov dword [edi + 0x50], 0x138
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042f560
mov dword [esi], eax
mov byte [ebp - 4], 8
mov edx, 0x4db368
test ebx, ebx
mov dword [edi + 0x5c], 0
mov eax, edx
mov byte [edi + 0x60], 0
cmovne eax, ebx
test eax, eax
cmovne edx, eax
cmp word [edx], 0
jne 0x43f367
xor ecx, ecx
jmp 0x43f37f
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43f370
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 8]
call fcn.00404000
cmp dword [edi + 0x1c], 8
lea esi, [edi + 8]
jb 0x43f396
mov ecx, dword [esi]
jmp 0x43f398
mov ecx, esi
mov dl, 1
call fcn.0043f160
mov dword [edi + 0x40], eax
cmp dword [esi + 0x14], 8
jb 0x43f3ac
mov eax, dword [esi]
jmp 0x43f3ae
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [edi + 0x34], ebx
cmp ebx, 0xffffffff
jne 0x43f3e0
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [edi + 0x44], eax
jmp 0x43f540
push 0x2e
lea eax, [ebp - 0x40]
mov dword [edi + 0x38], 1
push 0
push eax
call fcn.0049e210
mov eax, dword [edi + 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 ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp ebx, 0xffffffff
jne 0x43f42c
test eax, eax
je 0x43f434
mov dword [edi + 0x44], eax
jmp 0x43f540
test ebx, ebx
je 0x43f540
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x44]
push 0
push eax
push 0x2e
lea eax, [ebp - 0x40]
push eax
push dword [edi + 0x34]
call ebx
mov dword [ebp - 0x48], eax
test eax, eax
je 0x43f52b
cmp dword [ebp - 0x44], 0
je 0x43f52b
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0043f7a0
test eax, eax
je 0x43f478
mov cx, word [ebp - 0x32]
test cx, cx
jne 0x43f4e7
cmp dword [esi + 0x14], 8
jb 0x43f480
mov esi, dword [esi]
xor dl, dl
mov ecx, esi
call fcn.0043f160
cmp eax, dword [edi + 0x40]
jbe 0x43f491
mov dword [edi + 0x40], eax
push 0
push 0
push dword [edi + 0x40]
mov ecx, edi
push dword [edi + 0x34]
call fcn.00440000
test eax, eax
je 0x43f540
push 0
lea eax, [ebp - 0x48]
push eax
push 0x2e
lea eax, [ebp - 0x40]
push eax
push dword [edi + 0x34]
call ebx
mov dword [ebp - 0x48], eax
test eax, eax
je 0x43f540
cmp dword [ebp - 0x44], 0
je 0x43f540
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0043f7a0
mov cx, word [ebp - 0x32]
test eax, eax
je 0x43f4e0
test cx, cx
jne 0x43f4e7
mov dword [edi + 0x5c], 4
mov eax, dword [edi + 0x5c]
dec eax
cmp eax, 3
ja case.default.0x43f4f0
jmp dword [eax*4 + 0x43f568]
mov dword [edi + 0x50], 0x138
jmp 0x43f510
mov dword [edi + 0x50], 0x18
jmp 0x43f510
mov dword [edi + 0x50], 0x30
mov dword [edi + 0x4c], 0x2e
mov al, byte [edi + 0x60]
test al, al
je 0x43f540
movzx eax, cx
mov ecx, edi
push eax
call fcn.0043fe80
jmp 0x43f540
mov dword [edi + 0x5c], 4
mov dword [edi + 0x4c], 0x2e
mov dword [edi + 0x50], 0x30
mov dword [ebp - 4], 0xffffffff
mov eax, edi
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.0049c22a
mov esp, ebp
pop ebp
ret 4