Function at 0x76fd7062
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 0x76fd73c3
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x76fd73c3
cmp byte [0x76fda5a0], bl
je 0x76fd73c3
push 0x76fda5c0
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
push 0x76fc1d00
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 0x76fd73a3
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 0x76fd73a3
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 0x76fd713c
test eax, eax
jne 0x76fd7140
test edx, edx
je 0x76fd7199
lea eax, [ebx + 0x24]
test edx, edx
je 0x76fd716f
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 0x76fd7173
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 0x76fd7397
cmp dword [ebp + 0x10], 0
mov edi, dword [ebx + 0x18]
mov dword [ebp - 0x10], edi
je 0x76fd739a
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 0x76fd739a
cmp ecx, ebx
jb 0x76fd739a
mov eax, dword [ebx + 4]
add eax, ebx
cmp ecx, eax
ja 0x76fd739a
and dword [ebp - 0x14], 0
test edi, edi
je 0x76fd72a0
add ecx, 0x14
mov dword [ebp - 8], ecx
jmp 0x76fd7204
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 0x76fd7256
cmp esi, ebx
jb 0x76fd739a
mov eax, dword [ebx + 4]
add eax, ebx
cmp esi, eax
ja 0x76fd739a
test ecx, ecx
je 0x76fd726f
cmp ecx, ebx
jb 0x76fd739a
mov eax, dword [ebx + 4]
add eax, ebx
cmp ecx, eax
ja 0x76fd739a
test edx, edx
je 0x76fd7288
cmp edx, ebx
jb 0x76fd739a
mov eax, dword [ebx + 4]
add eax, ebx
cmp edx, eax
ja 0x76fd739a
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 0x76fd7201
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 0x76fd7305
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 0x76fd72de
cmp ecx, ebx
jb 0x76fd739a
mov eax, dword [ebx + 4]
add eax, ebx
cmp ecx, eax
ja 0x76fd739a
mov ecx, dword [edx]
lea eax, [ecx + esi]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [edx], ecx
mov edx, ecx
je 0x76fd7305
cmp edx, ebx
jb 0x76fd739a
mov eax, dword [ebx + 4]
add eax, ebx
cmp edx, eax
jbe 0x76fd72b4
jmp 0x76fd739a
mov esi, dword [ebx + 0x14]
test edi, edi
je 0x76fd739a
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.76fcc5bc
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x76fd7357
call fcn.76fd793a
jmp 0x76fd7359
xor eax, eax
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x76fd736a
call fcn.76fd793a
jmp 0x76fd736c
xor eax, eax
mov dword [edi + 0xc], eax
mov ecx, dword [esi + 0xbc]
test ecx, ecx
je 0x76fd7380
call fcn.76fd793a
jmp 0x76fd7382
xor eax, eax
add esi, dword [ebp - 0xc]
mov dword [edi + 0xb4], eax
add edi, dword [ebp - 0xc]
sub dword [ebp - 0x14], 1
jne 0x76fd731e
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x76fd73a6
mov edi, dword [ebp + 0x14]
push 0x76fda5c0
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x76fd73bf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x76fd73c5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10