Function at 0x4fbb50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b5b0
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x5edd38]
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 ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x448], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x44c], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x43c], ecx
lea ecx, [ebp - 0x424]
push ecx
push 0x5b6de8
push dword [ebp + 0x14]
mov dword [ebp - 0x444], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x440], eax
mov eax, dword [ebp + 0x10]
push 0
push eax
mov dword [ebp - 0x438], ebx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x428], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4fbff5
cmp dword [ebp - 0x424], 0
je 0x4fbff5
mov ecx, 0x5b6de8
mov edx, 0x5b6d78
mov esi, 0xc
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4fbc5b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4fbc30
mov ecx, dword [ebp - 0x424]
push 1
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x5817c0]
call esi
jmp 0x4fbcc5
mov edi, dword [0x5f3910]
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [edi + 0x49]
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
test bl, bl
je 0x4fbcbf
mov ecx, 0x5b6de8
mov edx, 0x5b6d88
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4fbcbf
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4fbc96
mov eax, dword [ebp - 0x424]
push 1
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x28]
mov ecx, esi
call dword [0x5817c0]
call esi
mov ebx, dword [ebp - 0x438]
lea eax, [ebp - 0x42c]
push eax
push 0x5c82a0
push 1
push 0
push 0x58f010
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4fbff5
mov ecx, dword [ebp - 0x42c]
test ecx, ecx
je 0x4fbff5
mov esi, dword [ecx]
lea eax, [ebp - 0x414]
push eax
push 0x5b6de8
push dword [ebp - 0x424]
mov esi, dword [esi + 0xc]
push ecx
mov ecx, esi
call dword [0x5817c0]
call esi
test eax, eax
js 0x4fbfeb
cmp dword [ebp - 0x414], 0
je 0x4fbfeb
mov eax, dword [ebp - 0x424]
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x430], 0
push ecx
push 0x5b6df8
mov esi, dword [eax]
push eax
mov esi, dword [esi]
mov ecx, esi
call dword [0x5817c0]
call esi
test eax, eax
js 0x4fbdab
mov ecx, dword [ebp - 0x430]
test ecx, ecx
je 0x4fbdab
cmp dword [ebx + 0x14], 8
jb 0x4fbd6e
mov ebx, dword [ebx]
mov eax, dword [ecx]
push 0
push ebx
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5817c0]
call esi
mov ecx, dword [ebp - 0x430]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x5817c0]
call esi
mov dword [ebp - 0x430], 0
test edi, edi
jns 0x4fbf3e
mov eax, dword [ebp - 0x424]
lea ecx, [ebp - 0x434]
push ecx
push 0x5b6e08
push eax
mov esi, dword [eax]
mov esi, dword [esi]
mov ecx, esi
call dword [0x5817c0]
call esi
test eax, eax
js 0x4fbf3e
cmp dword [ebp - 0x434], 0
je 0x4fbff5
lea eax, [ebp - 0x428]
mov dword [ebp - 0x41c], 0
push eax
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x4fbfdf
cmp dword [ebp - 0x428], 0
je 0x4fbfdf
mov ebx, dword [ebp - 0x43c]
cmp ebx, 0xffffffff
je 0x4fbff5
push 0
lea eax, [ebp - 0x41c]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fbff5
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
je 0x4fbead
nop
mov eax, dword [ebp - 0x428]
lea edx, [ebp - 0x420]
push edx
push ecx
mov dword [ebp - 0x420], 0
lea ecx, [ebp - 0x410]
mov esi, dword [eax]
push ecx
push eax
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x5817c0]
call esi
push 0
lea eax, [ebp - 0x41c]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fbff5
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
jne 0x4fbe50
mov eax, dword [ebp - 0x434]
push 0
push dword [ebp - 0x428]
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0xc]
mov ecx, esi
call dword [0x5817c0]
call esi
mov ecx, dword [ebp - 0x434]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x5817c0]
call esi
test edi, edi
js 0x4fbffa
mov eax, dword [ebp - 0x42c]
lea ecx, [ebp - 0x418]
push ecx
push 0x5b6db8
push dword [ebp - 0x428]
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0xc]
mov ecx, esi
call dword [0x5817c0]
call esi
test eax, eax
js 0x4fbfd3
cmp dword [ebp - 0x418], 0
je 0x4fbfd3
mov eax, dword [ebp - 0x428]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5817c0]
call esi
mov eax, dword [ebp - 0x424]
push dword [ebp - 0x440]
push dword [ebp - 0x444]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x5817c0]
call esi
mov edi, eax
test edi, edi
js 0x4fbffa
mov eax, dword [ebp - 0x424]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x5817c0]
call esi
mov edi, eax
test edi, edi
js 0x4fbffa
mov eax, dword [ebp - 0x424]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5817c0]
call esi
mov ecx, dword [ebp - 0x418]
test ecx, ecx
je 0x4fbfac
xor ecx, dword [ebp - 0x424]
mov edx, dword [ebp - 0x448]
test edx, edx
je 0x4fbfbe
mov eax, dword [ebp - 0x414]
mov dword [edx], eax
mov eax, dword [ebp - 0x44c]
test eax, eax
je 0x4fc070
mov dword [eax], ecx
jmp 0x4fc070
mov dword [ebp - 0x418], 0
jmp 0x4fbff5
mov dword [ebp - 0x428], 0
jmp 0x4fbff5
mov dword [ebp - 0x414], 0
mov edi, 0x80004005
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x4fc014
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x5817c0]
call esi
mov ecx, dword [ebp - 0x428]
test ecx, ecx
je 0x4fc02e
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5817c0]
call esi
mov edx, dword [ebp - 0x414]
test edx, edx
je 0x4fc04f
mov ecx, dword [ebp - 0x42c]
push edx
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x5817c0]
call esi
mov edx, dword [ebp - 0x418]
test edx, edx
je 0x4fc070
mov ecx, dword [ebp - 0x42c]
push edx
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x5817c0]
call esi
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.00401682
mov esp, ebp
pop ebp
ret