Function at 0x762f2795
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 2
push dword [ebp + 8]
call fcn.762f4608
xor edi, edi
cmp eax, edi
mov dword [ebp - 8], eax
je 0x762f2aec
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x762f2aec
push esi
push 0x762f6020
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
push 0x762e28e0
mov esi, 0x20000
push esi
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x762f2acd
push ebx
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, edi
je 0x762f2acc
xor eax, eax
push 9
pop ecx
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
xor edx, edx
mov ecx, 0xc0
div ecx
mov dword [ebx + 4], esi
mov esi, dword [ebp + 0x14]
mov dword [ebx], 1
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0xc], eax
xor eax, eax
cmp dword [ebp + 0x1c], eax
je 0x762f2844
cmp dword [ebp + 0x18], eax
jne 0x762f2848
cmp esi, eax
je 0x762f28a1
cmp esi, eax
je 0x762f2871
lea eax, [ebx + 0x24]
mov dword [ebx + 0x10], eax
push 0x30
mov edi, eax
pop ecx
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov dword [eax + 0xbc], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov eax, dword [ebx + 0x10]
add eax, 0xc0
jmp 0x762f2877
mov dword [ebx + 0x10], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x10]
test eax, eax
mov edi, ebx
mov dword [ebp + 0xc], edi
je 0x762f288a
sub eax, ebx
jmp 0x762f288c
xor eax, eax
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x762f289a
sub eax, ebx
jmp 0x762f289c
xor eax, eax
mov dword [ebx + 0x14], eax
jmp 0x762f28a4
mov edi, dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1c
push 0x287
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x762f2ac3
mov edx, dword [ebp + 0x18]
test edx, edx
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0x1c], eax
je 0x762f2ac3
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x762f28db
add eax, edi
jmp 0x762f28dd
xor eax, eax
test eax, eax
mov dword [ebx + 0x14], eax
je 0x762f28f9
cmp eax, ebx
jb 0x762f2ac3
mov ecx, dword [ebx + 4]
add ecx, ebx
cmp eax, ecx
ja 0x762f2ac3
and dword [ebp + 8], 0
cmp dword [ebp + 0x1c], 0
jbe 0x762f29ab
add eax, 0x14
mov ecx, dword [eax - 4]
test ecx, ecx
je 0x762f2916
lea esi, [ecx + edi]
jmp 0x762f2918
xor esi, esi
mov ecx, dword [eax]
test ecx, ecx
mov dword [ebp + 0x10], esi
mov dword [eax - 4], esi
je 0x762f2928
add edi, ecx
jmp 0x762f292a
xor edi, edi
lea ecx, [eax + 0xa8]
mov edx, dword [ecx]
test edx, edx
mov dword [eax], edi
je 0x762f2942
mov esi, dword [ebp + 0xc]
add edx, esi
mov esi, dword [ebp + 0x10]
jmp 0x762f2944
xor edx, edx
test esi, esi
mov dword [ecx], edx
je 0x762f295f
cmp esi, ebx
jb 0x762f2ac3
mov ecx, dword [ebx + 4]
add ecx, ebx
cmp esi, ecx
ja 0x762f2ac3
test edi, edi
je 0x762f2978
cmp edi, ebx
jb 0x762f2ac3
mov ecx, dword [ebx + 4]
add ecx, ebx
cmp edi, ecx
ja 0x762f2ac3
test edx, edx
je 0x762f2991
cmp edx, ebx
jb 0x762f2ac3
mov ecx, dword [ebx + 4]
add ecx, ebx
cmp edx, ecx
ja 0x762f2ac3
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
add eax, 0xc0
cmp ecx, dword [ebp + 0x1c]
jb 0x762f290a
mov edx, dword [ebp + 0x18]
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x762f29b6
add eax, edi
jmp 0x762f29b8
xor eax, eax
test eax, eax
mov dword [ebx + 0x1c], eax
je 0x762f2a17
mov ecx, dword [eax + 8]
and dword [eax + 4], 0
test ecx, ecx
je 0x762f29ce
add ecx, edi
jmp 0x762f29d0
xor ecx, ecx
test ecx, ecx
mov dword [eax + 8], ecx
je 0x762f29ec
cmp ecx, ebx
jb 0x762f2ac3
mov esi, dword [ebx + 4]
add esi, ebx
cmp ecx, esi
ja 0x762f2ac3
mov ecx, dword [eax]
test ecx, ecx
je 0x762f29f6
add ecx, edi
jmp 0x762f29f8
xor ecx, ecx
mov dword [eax], ecx
mov eax, ecx
test eax, eax
je 0x762f2a17
cmp eax, ebx
jb 0x762f2ac3
mov ecx, dword [ebx + 4]
add ecx, ebx
cmp eax, ecx
ja 0x762f2ac3
jmp 0x762f29bf
cmp dword [ebp + 0x1c], 0
mov edi, dword [ebx + 0x14]
jbe 0x762f2ac3
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 8], eax
jmp 0x762f2a2f
mov edx, dword [ebp + 0x18]
mov eax, dword [edi]
mov dword [edx], eax
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov eax, dword [edi + 8]
mov dword [edx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [edi + 0x18]
mov dword [edx + 0x18], eax
lea eax, [edi + 0x1c]
push eax
add edx, 0x1c
push edx
call dword [sym.imp.ntdll.dll_wcscpy]
mov eax, dword [edi + 0x10]
test eax, eax
pop ecx
pop ecx
je 0x762f2a70
push eax
call fcn.762f2710
mov esi, dword [ebp + 0x18]
mov dword [esi + 0x10], eax
jmp 0x762f2a79
mov eax, dword [ebp + 0x18]
and dword [eax + 0x10], 0
mov esi, eax
mov eax, dword [edi + 0x14]
test eax, eax
je 0x762f2a8b
push eax
call fcn.762f2710
mov dword [esi + 0x14], eax
jmp 0x762f2a8f
and dword [esi + 0x14], 0
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x762f2aa7
push eax
call fcn.762f2710
mov dword [esi + 0xbc], eax
jmp 0x762f2aae
and dword [esi + 0xbc], 0
mov eax, 0xc0
add esi, eax
add edi, eax
dec dword [ebp + 8]
mov dword [ebp + 0x18], esi
jne 0x762f2a2c
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor edi, edi
pop ebx
push 0x762f6020
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
cmp dword [ebp - 4], edi
pop esi
je 0x762f2ae7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x1c]
jmp 0x762f2aee
xor eax, eax
pop edi
leave
ret 0x18