Function at 0x4f017062
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
push 2
xor ebx, ebx
mov dword [ebp - 0x18], edi
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.win32u.dll_NtUserQueryInputContext]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x4f0173c3
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f0173c3
cmp byte [0x4f01a5a0], bl
je 0x4f0173c3
push 0x4f01a5c0
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
push 0x4f001d00
push 0x20000
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4f0173a3
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x4f0173a3
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ebx + 0x10], eax
xor edx, edx
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
mov eax, ecx
mov dword [ebp - 0xc], 0xc0
div dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx], 1
mov dword [ebx + 4], 0x20000
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x4f01713c
test eax, eax
jne 0x4f017140
test edx, edx
je 0x4f017199
lea eax, [ebx + 0x24]
test edx, edx
je 0x4f01716f
mov dword [ebx + 0x10], eax
mov edi, eax
push 0x30
pop ecx
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
xor ecx, ecx
mov edi, dword [ebp - 0x18]
mov dword [eax + 0xbc], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov eax, dword [ebx + 0x10]
add eax, dword [ebp - 0xc]
jmp 0x4f017173
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], eax
mov ecx, dword [ebx + 0x10]
mov eax, ecx
sub eax, ebx
mov dword [ebp - 4], ebx
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebx + 0x14]
mov eax, ecx
sub eax, ebx
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebx + 0x14], ecx
push edi
push 0x1c
push 0x287
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4f017397
cmp dword [ebp + 0x10], 0
mov edi, dword [ebx + 0x18]
mov dword [ebp - 0x10], edi
je 0x4f01739a
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebp - 4]
lea eax, [ecx + edx]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebx + 0x14], ecx
je 0x4f01739a
cmp ecx, ebx
jb 0x4f01739a
mov eax, dword [ebx + 4]
add eax, ebx
cmp ecx, eax
ja 0x4f01739a
and dword [ebp - 0x14], 0
test edi, edi
je 0x4f0172a0
add ecx, 0x14
mov dword [ebp - 8], ecx
jmp 0x4f017204
mov edx, dword [ebp - 4]
mov esi, dword [ecx - 4]
lea eax, [esi + edx]
neg esi
sbb esi, esi
and esi, eax
mov dword [ecx - 4], esi
mov ecx, dword [ecx]
lea eax, [ecx + edx]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xa8]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
add eax, edx
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [ebp - 8]
mov dword [eax + 0xa8], edx
test esi, esi
je 0x4f017256
cmp esi, ebx
jb 0x4f01739a
mov eax, dword [ebx + 4]
add eax, ebx
cmp esi, eax
ja 0x4f01739a
test ecx, ecx
je 0x4f01726f
cmp ecx, ebx
jb 0x4f01739a
mov eax, dword [ebx + 4]
add eax, ebx
cmp ecx, eax
ja 0x4f01739a
test edx, edx
je 0x4f017288
cmp edx, ebx
jb 0x4f01739a
mov eax, dword [ebx + 4]
add eax, ebx
cmp edx, eax
ja 0x4f01739a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
inc eax
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], ecx
cmp eax, edi
jb 0x4f017201
mov edx, dword [ebx + 0x1c]
mov esi, dword [ebp - 4]
lea eax, [esi + edx]
neg edx
sbb edx, edx
and edx, eax
mov dword [ebx + 0x1c], edx
je 0x4f017305
mov ecx, dword [edx + 8]
and dword [edx + 4], 0
lea eax, [ecx + esi]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [edx + 8], ecx
je 0x4f0172de
cmp ecx, ebx
jb 0x4f01739a
mov eax, dword [ebx + 4]
add eax, ebx
cmp ecx, eax
ja 0x4f01739a
mov ecx, dword [edx]
lea eax, [ecx + esi]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [edx], ecx
mov edx, ecx
je 0x4f017305
cmp edx, ebx
jb 0x4f01739a
mov eax, dword [ebx + 4]
add eax, ebx
cmp edx, eax
jbe 0x4f0172b4
jmp 0x4f01739a
mov esi, dword [ebx + 0x14]
test edi, edi
je 0x4f01739a
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
lea edi, [ebx + 8]
sub ebx, esi
mov eax, dword [esi]
lea ecx, [edi + 0x14]
mov dword [ebx + esi], eax
mov eax, dword [esi + 4]
mov dword [edi - 4], eax
mov eax, dword [esi + 8]
mov dword [edi], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x10], eax
lea eax, [esi + 0x1c]
push eax
push 0x50
pop edx
call fcn.4f00c5bc
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4f017357
call fcn.4f01793a
jmp 0x4f017359
xor eax, eax
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4f01736a
call fcn.4f01793a
jmp 0x4f01736c
xor eax, eax
mov dword [edi + 0xc], eax
mov ecx, dword [esi + 0xbc]
test ecx, ecx
je 0x4f017380
call fcn.4f01793a
jmp 0x4f017382
xor eax, eax
add esi, dword [ebp - 0xc]
mov dword [edi + 0xb4], eax
add edi, dword [ebp - 0xc]
sub dword [ebp - 0x14], 1
jne 0x4f01731e
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x4f0173a6
mov edi, dword [ebp + 0x14]
push 0x4f01a5c0
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4f0173bf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x4f0173c5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10