Function at 0x410da5
Capabilities:
Read file via mapping

Disassembly:
push 0x2a0
push 0x428230
call fcn.00428030
mov dword [ebp - 0x2ac], edx
mov esi, ecx
mov dword [ebp - 0x280], esi
mov dword [ebp - 0x2b0], esi
xor edi, edi
mov ebx, edi
mov dword [ebp - 0x2a8], edi
mov dword [ebp - 0x2a4], edi
mov dword [ebp - 0x284], 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 - 0x2a0], edi
mov eax, edi
mov dword [ebp - 0x288], eax
call fcn.0042392d
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 0x4115a7
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 - 0x280]
mov ecx, dword [ecx]
call fcn.00410d1d
test esi, esi
je 0x411594
cmp dword [ebp - 0x26c], 0x40000000
jae 0x411573
cmp dword [ebp - 0x30], ebx
jne 0x411573
push dword [0x429e90]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [ebp - 0x280]
mov ecx, dword [eax]
call fcn.004117a2
test eax, eax
je 0x4115a7
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x410f0f
mov esi, edi
mov dword [ebp - 0x298], esi
push edi
push eax
push edi
push 2
push edi
push dword [0x429d8c]
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_CreateFileMappingW]
mov ecx, eax
mov dword [ebp - 0x294], ecx
test ecx, ecx
je 0x410f24
push dword [ebp - 0x26c]
push edi
push edi
push 4
pop eax
mov dword [ebp - 0x270], eax
push eax
push ecx
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x298], esi
push dword [ebp - 0x294]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x410f2e
lea esi, [ebp - 0x29c]
mov dword [ebp - 0x298], esi
xor eax, eax
mov word [ebp - 0x29c], ax
mov dword [ebp - 0x270], 4
push dword [0x429d8c]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
or dword [0x429d8c], 0xffffffff
test esi, esi
jne 0x410f56
push dword [0x429e94]
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x4115a7
mov dword [ebp - 4], edi
mov edx, esi
mov dword [ebp - 0x278], edx
mov eax, dword [ebp - 0x2ac]
test eax, eax
jne 0x411080
movzx edx, word [esi]
mov eax, edx
mov ecx, 0xbbef
cmp ax, cx
je 0x410fc1
mov ecx, 0xfeff
cmp ax, cx
je 0x410f96
mov ecx, 0xfffe
cmp dx, cx
jne 0x410ffe
push 3
jmp 0x410f98
push 2
xor eax, eax
inc eax
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x284], eax
pop eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x26c]
mov ebx, eax
shr ebx, 1
dec ebx
jmp 0x411036
mov eax, dword [ebp - 0x26c]
cmp eax, 2
jbe 0x411004
cmp byte [esi + 2], 0xbf
jne 0x411004
mov ecx, 0xfde9
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 0x274], 4
lea edx, [esi + 3]
mov dword [ebp - 0x278], edx
sub eax, 3
mov dword [ebp - 0x26c], eax
jmp 0x41118c
mov eax, dword [ebp - 0x26c]
mov edx, eax
mov ecx, esi
call fcn.00424011
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x290], eax
test eax, eax
je 0x411049
push 2
pop eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x26c]
mov ebx, eax
shr ebx, 1
mov dword [ebp - 0x27c], ebx
mov ecx, edi
mov edx, dword [ebp - 0x278]
jmp 0x411192
mov edx, dword [ebp - 0x26c]
mov ecx, esi
call fcn.00423fdd
test eax, eax
je 0x411079
push 5
pop eax
mov ecx, 0xfde9
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x28c], ecx
mov edx, dword [ebp - 0x278]
jmp 0x411180
xor eax, eax
inc eax
mov ecx, edi
jmp 0x411062
sub eax, 1
je 0x41116f
sub eax, 1
je 0x41112c
sub eax, 1
je 0x411123
sub eax, 1
je 0x4110c2
sub eax, 1
jne 0x41116f
mov ecx, 0xfde9
mov dword [ebp - 0x28c], ecx
push 5
pop eax
mov dword [ebp - 0x274], eax
jmp 0x411180
mov ecx, 0xfde9
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x28c], ecx
push 4
pop eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x26c]
cmp eax, 2
jbe 0x411192
mov edx, 0xbbef
cmp word [esi], dx
mov edx, dword [ebp - 0x278]
jne 0x411192
cmp byte [esi + 2], 0xbf
jne 0x411192
lea edx, [esi + 3]
mov dword [ebp - 0x278], edx
sub eax, 3
mov dword [ebp - 0x26c], eax
jmp 0x411192
push 3
mov ecx, 0xfffe
jmp 0x411133
push 2
mov ecx, 0xfeff
xor eax, eax
inc eax
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x290], eax
pop eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x26c]
mov ebx, eax
shr ebx, 1
mov dword [ebp - 0x27c], ebx
cmp word [esi], cx
mov ecx, edi
jne 0x411192
dec ebx
mov dword [ebp - 0x27c], ebx
jmp 0x411192
xor eax, eax
inc eax
mov dword [ebp - 0x274], eax
mov ecx, edi
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x288], ecx
cmp dword [ebp - 0x284], 0
jne 0x4111af
push edi
push edi
push eax
push edx
push edi
push ecx
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov ebx, eax
mov dword [ebp - 0x27c], 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 - 0x2a0], eax
test eax, eax
jne 0x411280
push dword [ebp - 0x280]
lea ecx, [ebp - 0x280]
call fcn.00410194
xor ecx, ecx
call fcn.004115c1
push dword [0x429e94]
call dword [sym.imp.USER32.dll_SetCursor]
push 0x30
push dword [ebp - 0x280]
push dword [0x4292a0]
mov edx, dword [0x42929c]
mov ecx, dword [0x42a92c]
call fcn.0040f7c1
lea eax, [ebp - 0x29c]
cmp esi, eax
je 0x411259
push esi
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 - 0x280]
call fcn.0040ca6d
mov dword [ebp - 4], 0xfffffffe
jmp 0x4115a7
push dword [ebp - 0x2a0]
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalLock]
mov ecx, eax
mov dword [ebp - 0x294], ecx
mov dword [ebp - 0x2a8], ecx
cmp dword [ebp - 0x284], 0
je 0x4112df
movzx edx, word [esi]
mov eax, 0xfeff
cmp dx, ax
jne 0x4112ba
lea eax, [ebx + ebx]
push eax
lea eax, [esi + 2]
push eax
jmp 0x4112d4
mov eax, 0xfffe
cmp dx, ax
jne 0x4112cf
push ebx
lea edx, [esi + 2]
call fcn.00410686
jmp 0x411303
lea eax, [ebx + ebx]
push eax
push esi
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x411303
push ebx
push ecx
push dword [ebp - 0x26c]
push dword [ebp - 0x278]
push edi
mov eax, dword [ebp - 0x288]
push eax
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov ebx, eax
mov dword [ebp - 0x27c], ebx
mov eax, dword [ebp - 0x270]
mov dword [0x429e18], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x41136b
lea eax, [ebp - 0x29c]
cmp esi, eax
je 0x41137c
push esi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x294]
test ecx, ecx
je 0x4113dd
xor eax, eax
mov word [ecx + ebx*2], ax
cmp byte [ebp + 8], al
jne 0x4113dd
mov eax, ecx
test ebx, ebx
je 0x4113ac
mov edx, ebx
cmp word [eax], di
jne 0x4113a4
push 0x20
pop esi
mov word [eax], si
add eax, 2
sub edx, 1
jne 0x411399
movzx eax, word [ecx]
cmp eax, 0x2e
jne 0x4113d7
movzx eax, word [ecx + 2]
cmp eax, 0x4c
jne 0x4113d7
movzx eax, word [ecx + 4]
cmp eax, 0x4f
jne 0x4113d7
cmp word [ecx + 6], 0x47
mov dword [ebp - 0x2a4], 1
je 0x4113dd
mov dword [ebp - 0x2a4], edi
mov esi, dword [ebp - 0x2a0]
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 - 0x280]
cmp esi, ecx
je 0x41141b
push dword [esi]
call fcn.0040c12b
mov dword [esi], edi
call fcn.0040f3d3
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 0x41149b
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.0040f7c1
xor ecx, ecx
call fcn.004115c1
push edi
push 1
push 0xb
push dword [0x42adac]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4115a7
mov dword [0x42ab9c], edi
push edi
push edi
push 0xc5
push dword [0x42adac]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [ebp - 0x2a4], 0
je 0x4114eb
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.00410552
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.0040f022
push dword [0x429e94]
call dword [sym.imp.USER32.dll_SetCursor]
cmp byte [ebp + 8], 0
jne 0x411564
push dword [0x42a8cc]
push 3
call dword [sym.imp.SHELL32.dll_SHAddToRecentDocs]
lea ecx, [ebp - 0x268]
call fcn.0042398d
mov al, 1
jmp 0x4115a9
push 0x30
mov eax, dword [ebp - 0x280]
push dword [eax]
push dword [0x4292a0]
mov edx, dword [0x42929c]
mov ecx, dword [0x42a92c]
call fcn.0040f7c1
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