Function at 0x4f1a7e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5afbef
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x103c
call fcn.00568060
mov eax, dword [0x631350]
xor eax, esp
mov dword [esp + 0x1038], eax
push ebx
push esi
push edi
mov eax, dword [0x631350]
xor eax, esp
push eax
lea eax, [esp + 0x1050]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
push eax
lea edi, [esi - 0x8c]
mov dword [esp + 0x1c], esi
call fcn.004f1486
xor edi, edi
mov dword [esp + 0x20], eax
cmp eax, edi
jne 0x4f1b12
or eax, 0xffffffff
mov ecx, dword [esp + 0x1050]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1038]
xor ecx, esp
call fcn.0055c9d4
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi - 0x50]
call fcn.004ea12a
test al, al
je 0x4f1b35
mov ecx, dword [esi - 0x50]
push 4
pop ebx
call fcn.004ea145
push eax
call fcn.004ea57d
mov dword [esp + 0x24], eax
jmp 0x4f1b3a
or dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x2c], edi
push edi
mov dword [esp + 0x105c], edi
push edi
xor edi, edi
lea esi, [esp + 0x30]
mov dword [esp + 0x30], vtable.GFE::Windows::Event.0
call fcn.0048ad12
push 0x14
lea eax, [esp + 0x34]
push edi
push eax
mov dword [esp + 0x1064], 1
call fcn.0055fda0
mov eax, dword [esp + 0x38]
and dword [esp + 0x20], edi
mov ebx, dword [esp + 0x2c]
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
push ecx
push 0x1000
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f1bed
mov esi, dword [esp + 0x1c]
mov edx, dword [esi]
cmp dword [edx + 0x14], 0x10
jb 0x4f1bb6
mov ecx, dword [edx]
jmp 0x4f1bb8
mov ecx, edx
mov eax, dword [edx + 0x10]
add eax, ecx
mov ecx, dword [esp + 0x14]
lea ecx, [esp + ecx + 0x44]
push ecx
push eax
lea ecx, [esp + 0x4c]
call fcn.004f264e
mov eax, dword [esi]
mov esi, dword [eax + 0x10]
or dword [esp + 0x1058], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.0048ae45
mov eax, esi
jmp 0x4f1aec
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, 0xe9
mov dword [esp + 0x20], eax
sub eax, edi
je 0x4f1cd3
dec eax
je 0x4f1ba6
sub eax, 0x2fb
je 0x4f1c35
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4f1c27
cmp eax, 0xffffffff
je 0x4f1c27
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.PopFromDevice__ReadFile
push dword [esp + 0x24]
jmp 0x4f1cc0
push dword [esp + 0x24]
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4f1c72
cmp eax, 0x102
mov eax, dword [esp + 0x18]
push str.PopFromDevice__WaitForSingleObject
je 0x4f1c63
push 0x3e5
push 0x1b
push dword [eax - 0x50]
jmp 0x4f1cc9
push 0x20
push dword [eax - 0x50]
call fcn.004e9b93
add esp, 0xc
jmp 0x4f1cee
and dword [esp + 0x14], 0
mov ebx, dword [ebx]
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4f1ba6
call esi
mov ebx, eax
sub eax, edi
je 0x4f1cd3
dec eax
je 0x4f1ba6
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4f1cba
cmp eax, 0xffffffff
je 0x4f1cba
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.PopFromDevice__GetOverlappedResult
push ebx
and dword [esi + 0x34], 0
push 0x1b
push dword [esi - 0x50]
call fcn.004e9b93
add esp, 0x10
jmp 0x4f1cee
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4f1cea
cmp eax, 0xffffffff
je 0x4f1cea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x34], 0
or esi, 0xffffffff
jmp 0x4f1bd5