Function at 0x410f0c
Capabilities:
Read file via mapping

Disassembly:
push 0x29c
push 0x4283f0
call fcn.004281f0
mov dword [ebp - 0x2a0], edx
mov esi, ecx
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x2ac], esi
xor edi, edi
mov ebx, edi
mov dword [ebp - 0x2a4], edi
mov dword [ebp - 0x29c], edi
mov dword [ebp - 0x278], edi
push 0x34
push edi
lea eax, [ebp - 0x50]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [ebp - 0x298], edi
mov eax, edi
mov dword [ebp - 0x27c], eax
call fcn.00423aed
push 0x20c
push edi
lea eax, [ebp - 0x25c]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
push dword [esi]
call dword [sym.imp.api_ms_win_shcore_path_l1_1_0.dll_Ordinal_170]
mov dword [ebp - 0x264], eax
push dword [esi]
call dword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFindExtensionW]
mov dword [ebp - 0x260], eax
mov eax, dword [0x429d8c]
cmp eax, 0xffffffff
je 0x4116cd
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileInformationByHandle]
mov esi, eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], eax
lea edx, [ebp - 0x25c]
mov ecx, dword [ebp - 0x284]
mov ecx, dword [ecx]
call fcn.00410e81
test esi, esi
je 0x4116ba
mov esi, dword [ebp - 0x26c]
cmp esi, 0x40000000
jae 0x411699
cmp dword [ebp - 0x30], ebx
jne 0x411699
push dword [0x429e90]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [ebp - 0x284]
mov ecx, dword [eax]
call fcn.004118c8
test eax, eax
je 0x4116cd
test esi, esi
je 0x411061
mov dword [ebp - 0x288], edi
push edi
push esi
push edi
push 2
push edi
push dword [0x429d8c]
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_CreateFileMappingW]
mov dword [ebp - 0x2a8], eax
test eax, eax
je 0x411076
push esi
push edi
push edi
push 4
pop esi
push esi
push eax
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_MapViewOfFile]
mov dword [ebp - 0x288], eax
push dword [ebp - 0x2a8]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x411079
lea eax, [ebp - 0x294]
mov dword [ebp - 0x288], eax
xor eax, eax
mov word [ebp - 0x294], ax
push 4
pop esi
push dword [0x429d8c]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
or dword [0x429d8c], 0xffffffff
mov eax, dword [ebp - 0x288]
test eax, eax
jne 0x4110a7
push dword [0x429e94]
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x4116cd
mov dword [ebp - 4], edi
mov ecx, eax
mov dword [ebp - 0x270], ecx
mov ecx, dword [ebp - 0x2a0]
test ecx, ecx
jne 0x4111a1
movzx ecx, word [eax]
mov edx, 0xbbef
cmp cx, dx
je 0x411118
mov edx, 0xfeff
cmp cx, dx
je 0x411114
mov edx, 0xfffe
movzx ecx, word [eax]
cmp cx, dx
jne 0x411145
push 3
xor ecx, ecx
inc ecx
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x278], ecx
pop esi
mov dword [ebp - 0x274], esi
mov ecx, dword [ebp - 0x26c]
mov ebx, ecx
shr ebx, 1
dec ebx
mov dword [ebp - 0x280], ebx
mov edx, edi
jmp 0x4112a4
push 2
jmp 0x4110e6
mov ecx, dword [ebp - 0x26c]
cmp ecx, 2
jbe 0x41114b
cmp byte [eax + 2], 0xbf
jne 0x41114b
mov edx, 0xfde9
mov dword [ebp - 0x27c], edx
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x274], esi
jmp 0x41122d
mov ecx, dword [ebp - 0x26c]
mov edx, ecx
mov ecx, eax
call fcn.004241d1
mov ecx, eax
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x290], ecx
test ecx, ecx
je 0x41117b
push 2
pop esi
mov dword [ebp - 0x274], esi
mov ecx, dword [ebp - 0x26c]
mov ebx, ecx
shr ebx, 1
jmp 0x411107
mov edx, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x288]
call fcn.0042419d
test eax, eax
je 0x411287
push 5
pop esi
mov edx, 0xfde9
jmp 0x41128c
sub ecx, 1
je 0x411287
sub ecx, 1
je 0x41127e
sub ecx, 1
je 0x411241
sub ecx, 1
je 0x4111f1
sub ecx, 1
je 0x4111e8
sub ecx, 1
jne 0x411287
mov edx, 0xd698
push 6
mov dword [ebp - 0x28c], edx
pop esi
mov dword [ebp - 0x274], esi
jmp 0x411298
mov edx, 0xfde9
push 5
jmp 0x4111d6
mov edx, 0xfde9
mov dword [ebp - 0x27c], edx
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x274], esi
mov ecx, dword [ebp - 0x26c]
cmp ecx, 2
jbe 0x4112a4
mov edx, 0xbbef
cmp word [eax], dx
mov edx, dword [ebp - 0x27c]
jne 0x4112a4
cmp byte [eax + 2], 0xbf
jne 0x4112a4
add eax, 3
mov dword [ebp - 0x270], eax
sub ecx, 3
mov dword [ebp - 0x26c], ecx
jmp 0x4112aa
push 3
mov edx, 0xfffe
xor ecx, ecx
inc ecx
mov dword [ebp - 0x290], ecx
pop esi
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x274], esi
mov ecx, dword [ebp - 0x26c]
mov ebx, ecx
shr ebx, 1
mov dword [ebp - 0x280], ebx
cmp word [eax], dx
mov edx, edi
jne 0x4112a4
dec ebx
mov dword [ebp - 0x280], ebx
jmp 0x4112a4
push 2
mov edx, 0xfeff
jmp 0x411248
xor esi, esi
mov edx, edi
inc esi
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x27c], edx
mov ecx, dword [ebp - 0x26c]
mov eax, dword [ebp - 0x270]
cmp dword [ebp - 0x278], 0
jne 0x4112c7
push edi
push edi
push ecx
push eax
push edi
push edx
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov ebx, eax
mov dword [ebp - 0x280], ebx
push edi
push edi
push 0xb
push dword [0x42adac]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push 0xb1
push dword [0x42adac]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push 0xb7
push dword [0x42adac]
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
lea eax, [ebx*2 + 2]
push eax
push dword [0x429e98]
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalReAlloc]
mov dword [ebp - 0x298], eax
test eax, eax
jne 0x4113a2
push dword [ebp - 0x284]
lea ecx, [ebp - 0x284]
call fcn.004102f4
xor ecx, ecx
call fcn.004116e7
push dword [0x429e94]
call dword [sym.imp.USER32.dll_SetCursor]
push 0x30
push dword [ebp - 0x284]
push dword [0x4292a0]
mov edx, dword [0x42929c]
mov ecx, dword [0x42a92c]
call fcn.0040f89d
lea ecx, [ebp - 0x294]
mov eax, dword [ebp - 0x288]
cmp eax, ecx
je 0x41137b
push eax
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_UnmapViewOfFile]
push edi
push edi
push 0xb
push dword [0x42adac]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x284]
call fcn.0040caed
mov dword [ebp - 4], 0xfffffffe
jmp 0x4116cd
push dword [ebp - 0x298]
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalLock]
mov ecx, eax
mov dword [ebp - 0x2a0], ecx
mov dword [ebp - 0x2a4], ecx
cmp dword [ebp - 0x278], 0
je 0x41140e
mov eax, dword [ebp - 0x288]
movzx edx, word [eax]
mov dword [ebp - 0x278], edx
mov edx, 0xfeff
cmp word [ebp - 0x278], dx
jne 0x4113f5
add eax, 2
lea edx, [ebx + ebx]
push edx
push eax
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x411434
mov edx, 0xfffe
cmp word [ebp - 0x278], dx
jne 0x4113e5
push ebx
lea edx, [eax + 2]
call fcn.004107e6
jmp 0x411434
push ebx
push ecx
mov eax, dword [ebp - 0x26c]
push eax
mov ecx, dword [ebp - 0x270]
push ecx
push edi
mov eax, dword [ebp - 0x27c]
push eax
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov ebx, eax
mov dword [ebp - 0x280], ebx
mov dword [0x429e18], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x2a0]
jmp 0x411491
lea ecx, [ebp - 0x294]
mov eax, dword [ebp - 0x288]
cmp eax, ecx
je 0x4114a8
push eax
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_UnmapViewOfFile]
test esi, esi
je 0x411503
xor eax, eax
mov word [esi + ebx*2], ax
cmp byte [ebp + 8], al
jne 0x411503
mov eax, esi
test ebx, ebx
je 0x4114d2
mov ecx, ebx
cmp word [eax], di
jne 0x4114ca
push 0x20
pop edx
mov word [eax], dx
add eax, 2
sub ecx, 1
jne 0x4114bf
movzx eax, word [esi]
cmp eax, 0x2e
jne 0x4114fd
movzx eax, word [esi + 2]
cmp eax, 0x4c
jne 0x4114fd
movzx eax, word [esi + 4]
cmp eax, 0x4f
jne 0x4114fd
cmp word [esi + 6], 0x47
mov dword [ebp - 0x29c], 1
je 0x411503
mov dword [ebp - 0x29c], edi
mov esi, dword [ebp - 0x298]
push esi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalUnlock]
mov dword [0x429e98], esi
push edi
push edi
push 0xb9
push dword [0x42adac]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, 0x42a8cc
mov esi, dword [ebp - 0x284]
cmp esi, ecx
je 0x411541
push dword [esi]
call fcn.0040c1ab
mov dword [esi], edi
call fcn.0040f4af
mov dword [0x4292c0], edi
mov dword [0x42ab9c], 1
push edi
push dword [0x429e98]
push 0xbc
push dword [0x42adac]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x42ab9c], 2
jne 0x4115c1
push dword [0x429e94]
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [0x42ab9c], edi
push 0x30
push dword [esi]
push dword [0x4292a0]
mov edx, dword [0x42929c]
mov ecx, dword [0x42a92c]
call fcn.0040f89d
xor ecx, ecx
call fcn.004116e7
push edi
push 1
push 0xb
push dword [0x42adac]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4116cd
mov dword [0x42ab9c], edi
push edi
push edi
push 0xc5
push dword [0x42adac]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [ebp - 0x29c], 0
je 0x411611
push ebx
push ebx
push 0xb1
push dword [0x42adac]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push 0xb7
push dword [0x42adac]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
inc ecx
call fcn.004106b2
push edi
push 0xbe
push 0x115
push dword [0x42adac]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 1
push dword [0x42a92c]
call dword [sym.imp.USER32.dll_SetScrollPos]
push edi
push 1
push 0xb
push dword [0x42adac]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push edi
push dword [0x42adac]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [0x42adac]
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.0040f0f0
push dword [0x429e94]
call dword [sym.imp.USER32.dll_SetCursor]
cmp byte [ebp + 8], 0
jne 0x41168a
push dword [0x42a8cc]
push 3
call dword [sym.imp.SHELL32.dll_SHAddToRecentDocs]
lea ecx, [ebp - 0x268]
call fcn.00423b4d
mov al, 1
jmp 0x4116cf
push 0x30
mov eax, dword [ebp - 0x284]
push dword [eax]
push dword [0x4292a0]
mov edx, dword [0x42929c]
mov ecx, dword [0x42a92c]
call fcn.0040f89d
push dword [0x429d8c]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
or dword [0x429d8c], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4