Function at 0x410463
Capabilities:
Read file via mapping

Disassembly:
push 0x2a0
push 0x422ce0
call fcn.00422af0
mov dword [ebp - 0x2ac], edx
mov esi, ecx
mov dword [ebp - 0x284], 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 - 0x288], 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 - 0x278], eax
call fcn.0041e6a3
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 [0x424e30]
cmp eax, 0xffffffff
je 0x410cd8
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.KERNEL32.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.004103e1
test esi, esi
je 0x410cc5
cmp dword [ebp - 0x26c], 0x40000000
jae 0x410ca4
cmp dword [ebp - 0x30], ebx
jne 0x410ca4
push dword [0x424f38]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [ebp - 0x284]
mov ecx, dword [eax]
call fcn.00410ec3
test eax, eax
je 0x410cd8
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x4105cd
mov esi, edi
mov dword [ebp - 0x298], esi
push edi
push eax
push edi
push 2
push edi
push dword [0x424e30]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov dword [ebp - 0x294], ecx
test ecx, ecx
je 0x4105e2
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.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x298], esi
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4105ec
lea esi, [ebp - 0x29c]
mov dword [ebp - 0x298], esi
xor eax, eax
mov word [ebp - 0x29c], ax
mov dword [ebp - 0x270], 4
push dword [0x424e30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x424e30], 0xffffffff
test esi, esi
jne 0x410614
push dword [0x424f3c]
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x410cd8
mov dword [ebp - 4], edi
mov edx, esi
mov dword [ebp - 0x27c], edx
mov eax, dword [ebp - 0x2ac]
test eax, eax
jne 0x410762
movzx edx, word [esi]
mov eax, edx
mov ecx, 0xbbef
cmp ax, cx
je 0x41068e
mov ecx, 0xfeff
cmp ax, cx
je 0x41068a
mov ecx, 0xfffe
cmp dx, cx
jne 0x4106bf
push 3
xor eax, eax
inc eax
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x288], 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
mov dword [ebp - 0x280], ebx
mov edx, dword [ebp - 0x27c]
jmp 0x4108d2
push 2
jmp 0x410652
mov eax, dword [ebp - 0x26c]
cmp eax, 2
jbe 0x4106c5
cmp byte [esi + 2], 0xbf
jne 0x4106c5
mov ecx, 0xfde9
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 0x274], 4
jmp 0x410839
mov eax, dword [ebp - 0x26c]
mov edx, eax
mov ecx, esi
call fcn.0041ed4d
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x290], eax
test eax, eax
je 0x4106f9
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
jmp 0x410679
push edi
push edi
push dword [ebp - 0x26c]
push esi
push 8
mov eax, 0xfde9
mov dword [ebp - 0x278], eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x410743
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x410743
xor eax, eax
inc eax
mov dword [ebp - 0x274], eax
mov ecx, edi
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x28c], ecx
jmp 0x4107d5
push ecx
push ecx
push 1
mov ecx, 0x424de0
call fcn.0040ec48
push 5
pop eax
mov dword [ebp - 0x274], eax
mov ecx, dword [ebp - 0x278]
jmp 0x410738
dec eax
sub eax, 1
je 0x410893
sub eax, 1
je 0x410850
sub eax, 1
je 0x4107ec
sub eax, 1
je 0x4107a7
xor eax, eax
inc eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x274], eax
mov ecx, edi
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x28c], ecx
mov eax, dword [ebp - 0x26c]
jmp 0x4108d4
mov eax, 0xfde9
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x28c], eax
push ecx
push ecx
push 1
mov ecx, 0x424de0
call fcn.0040ec48
push 5
pop eax
mov dword [ebp - 0x274], eax
mov ecx, dword [ebp - 0x278]
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x26c]
mov edx, dword [ebp - 0x27c]
jmp 0x4108d4
mov ecx, 0xfde9
mov dword [ebp - 0x278], 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 0x4108d4
mov ecx, 0xbbef
cmp word [esi], cx
mov ecx, dword [ebp - 0x278]
jne 0x4108d4
cmp byte [esi + 2], 0xbf
jne 0x4108d4
lea edx, [esi + 3]
mov dword [ebp - 0x27c], edx
sub eax, 3
mov dword [ebp - 0x26c], eax
jmp 0x4108d4
xor eax, eax
inc eax
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x290], eax
push 3
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 - 0x280], ebx
mov ecx, 0xfffe
cmp word [esi], cx
mov ecx, edi
jne 0x4108d4
dec ebx
mov dword [ebp - 0x280], ebx
jmp 0x4108d4
xor eax, eax
inc eax
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x290], eax
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 - 0x280], ebx
mov ecx, 0xfeff
cmp word [esi], cx
jne 0x4108d2
dec ebx
mov dword [ebp - 0x280], ebx
mov ecx, edi
cmp dword [ebp - 0x288], 0
jne 0x4108f1
push edi
push edi
push eax
push edx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
mov dword [ebp - 0x280], ebx
push edi
push edi
push 0xb
push dword [0x425e04]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push 0xb1
push dword [0x425e04]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push 0xb7
push dword [0x425e04]
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
lea eax, [ebx*2 + 2]
push eax
push dword [0x424f40]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebp - 0x2a0], eax
test eax, eax
jne 0x4109c2
push dword [ebp - 0x284]
lea ecx, [ebp - 0x284]
call fcn.0040f54b
xor ecx, ecx
call fcn.00410cec
push dword [0x424f3c]
call dword [sym.imp.USER32.dll_SetCursor]
push 0x30
push dword [ebp - 0x284]
push dword [0x4242f4]
mov edx, dword [0x4242f0]
mov ecx, dword [0x425e0c]
call fcn.0040dc13
lea eax, [ebp - 0x29c]
cmp esi, eax
je 0x41099b
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
push edi
push 0xb
push dword [0x425e04]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x284]
call fcn.0040fb90
mov dword [ebp - 4], 0xfffffffe
jmp 0x410cd8
push dword [ebp - 0x2a0]
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov ecx, eax
mov dword [ebp - 0x294], ecx
mov dword [ebp - 0x2a8], ecx
cmp dword [ebp - 0x288], 0
je 0x410a21
movzx edx, word [esi]
mov eax, 0xfeff
cmp dx, ax
jne 0x4109fc
lea eax, [ebx + ebx]
push eax
lea eax, [esi + 2]
push eax
jmp 0x410a16
mov eax, 0xfffe
cmp dx, ax
jne 0x410a11
push ebx
lea edx, [esi + 2]
call fcn.0040fd6e
jmp 0x410a45
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 0x410a45
push ebx
push ecx
push dword [ebp - 0x26c]
push dword [ebp - 0x27c]
push edi
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
mov dword [ebp - 0x280], ebx
mov eax, dword [ebp - 0x270]
mov dword [0x424ebc], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x410aad
lea eax, [ebp - 0x29c]
cmp esi, eax
je 0x410abe
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x294]
test ecx, ecx
je 0x410b1f
xor eax, eax
mov word [ecx + ebx*2], ax
cmp byte [ebp + 8], al
jne 0x410b1f
mov eax, ecx
test ebx, ebx
je 0x410aee
mov edx, ebx
cmp word [eax], di
jne 0x410ae6
push 0x20
pop esi
mov word [eax], si
add eax, 2
sub edx, 1
jne 0x410adb
movzx eax, word [ecx]
cmp eax, 0x2e
jne 0x410b19
movzx eax, word [ecx + 2]
cmp eax, 0x4c
jne 0x410b19
movzx eax, word [ecx + 4]
cmp eax, 0x4f
jne 0x410b19
cmp word [ecx + 6], 0x47
mov dword [ebp - 0x2a4], 1
je 0x410b1f
mov dword [ebp - 0x2a4], edi
mov esi, dword [ebp - 0x2a0]
push esi
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
mov dword [0x424f40], esi
mov ecx, 0x425970
mov esi, dword [ebp - 0x284]
cmp esi, ecx
je 0x410b4a
push dword [esi]
call fcn.0040e232
mov dword [esi], edi
mov cl, 1
call fcn.0040d7c7
mov dword [0x424314], edi
mov dword [0x425bf8], 1
push edi
push dword [0x424f40]
push 0xbc
push dword [0x425e04]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x425bf8], 2
jne 0x410bcc
push dword [0x424f3c]
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [0x425bf8], edi
push 0x30
push dword [esi]
push dword [0x4242f4]
mov edx, dword [0x4242f0]
mov ecx, dword [0x425e0c]
call fcn.0040dc13
xor ecx, ecx
call fcn.00410cec
push edi
push 1
push 0xb
push dword [0x425e04]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x410cd8
mov dword [0x425bf8], edi
push edi
push edi
push 0xc5
push dword [0x425e04]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [ebp - 0x2a4], 0
je 0x410c1c
push ebx
push ebx
push 0xb1
push dword [0x425e04]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push 0xb7
push dword [0x425e04]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
inc ecx
call fcn.0040fc04
push edi
push 0xbe
push 0x115
push dword [0x425e04]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 1
push dword [0x425e0c]
call dword [sym.imp.USER32.dll_SetScrollPos]
push edi
push 1
push 0xb
push dword [0x425e04]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push edi
push dword [0x425e04]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [0x425e04]
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.0040d3e0
push dword [0x424f3c]
call dword [sym.imp.USER32.dll_SetCursor]
cmp byte [ebp + 8], 0
jne 0x410c95
push dword [0x425970]
push 3
call dword [sym.imp.SHELL32.dll_SHAddToRecentDocs]
lea ecx, [ebp - 0x268]
call fcn.0041e702
mov al, 1
jmp 0x410cda
push 0x30
mov eax, dword [ebp - 0x284]
push dword [eax]
push dword [0x4242f4]
mov edx, dword [0x4242f0]
mov ecx, dword [0x425e0c]
call fcn.0040dc13
push dword [0x424e30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x424e30], 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