Function at 0x4a2029
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7ed3
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4ec06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, str..pdf
lea ecx, [ebp - 0x260]
call fcn.0041b517
and dword [ebp - 4], 0
mov byte [ebp - 0x339], 0
lea ecx, [ebp - 0x260]
call fcn.00405bc9
movzx eax, al
test eax, eax
jne 0x4a21ae
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.00464590
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.00404e0f
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push str.___1_
lea eax, [ebp - 0x218]
push eax
call fcn.0040a30f
pop ecx
pop ecx
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x348], 0
jne 0x4a20f4
push 0x4c7f7c
lea eax, [ebp - 0x218]
push eax
call fcn.0040a30f
pop ecx
pop ecx
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x348], 0
je 0x4a21ae
xor eax, eax
mov ecx, dword [ebp - 0x348]
mov word [ecx], ax
push 0x4c7f84
lea ecx, [ebp - 0x290]
call fcn.00404d2c
mov byte [ebp - 4], 1
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x278]
call fcn.00404d2c
mov byte [ebp - 4], 2
lea eax, [ebp - 0x290]
push eax
lea edx, [ebp - 0x278]
lea ecx, [ebp - 0x2a8]
call 0x4174c3
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.00405118
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x290]
call fcn.00405118
lea ecx, [ebp - 0x2a8]
call fcn.00404e0f
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4a2190
mov dword [ebp - 0x350], 1
jmp 0x4a2197
and dword [ebp - 0x350], 0
mov al, byte [ebp - 0x350]
mov byte [ebp - 0x339], al
lea ecx, [ebp - 0x2a8]
call fcn.00405118
movzx eax, byte [ebp - 0x339]
test eax, eax
jne 0x4a21d7
push 0x4c7f88
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
call dword [eax + 4]
call fcn.00440b48
mov byte [eax + 0x15], 1
jmp 0x4a25a8
push 0x4c7f94
push 0x4c7f98
mov edx, 0x80000001
lea ecx, [ebp - 0x338]
call fcn.00418f22
pop ecx
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x338]
call fcn.00404e0f
mov edx, str.extensionui.dll
mov ecx, eax
call 0x417672
test eax, eax
je 0x4a2250
push dword [ebp + 8]
lea ecx, [ebp - 0x2c0]
call fcn.00404d2c
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c0]
push eax
push 0x4c8008
mov edx, str.SoftwareClassesSEPdfFileDefaultIcon
mov ecx, 0x80000001
call fcn.004193b9
pop ecx
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c0]
call fcn.00405118
lea ecx, [ebp - 0x360]
call fcn.00403b7f
mov byte [ebp - 4], 5
lea eax, [ebp - 0x360]
push eax
mov edx, 0x4c8070
mov ecx, 0x80000001
call fcn.0041918a
pop ecx
movzx eax, al
test eax, eax
je 0x4a258a
lea ecx, [ebp - 0x360]
call fcn.00405868
mov dword [ebp - 0x354], eax
push 0x4c800c
push 0x4c8130
mov edx, 0x80000001
lea ecx, [ebp - 0x230]
call fcn.00418f22
pop ecx
pop ecx
mov byte [ebp - 4], 6
cmp dword [ebp - 0x354], 0
je 0x4a257b
lea ecx, [ebp - 0x230]
call fcn.00405bc9
movzx eax, al
test eax, eax
jne 0x4a257b
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2d8]
call fcn.00404d2c
mov byte [ebp - 4], 7
lea eax, [ebp - 0x2d8]
push eax
push 0x4c801c
mov edx, str.SoftwareClassesApplicationsSogouExplorer.exe_shellopencommand
mov ecx, 0x80000001
call fcn.004193b9
pop ecx
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2d8]
call fcn.00405118
mov byte [ebp - 0x33a], 0
and dword [ebp - 0x340], 0
jmp 0x4a2330
mov eax, dword [ebp - 0x340]
inc eax
mov dword [ebp - 0x340], eax
mov eax, dword [ebp - 0x340]
cmp eax, dword [ebp - 0x354]
jae 0x4a244a
push dword [ebp - 0x340]
lea ecx, [ebp - 0x360]
call fcn.0040584d
mov ecx, eax
call fcn.00404e0f
push eax
push 0x4c8278
mov edx, 0x80000001
lea ecx, [ebp - 0x248]
call fcn.00418f22
pop ecx
pop ecx
mov byte [ebp - 4], 8
push 0x4c810c
lea ecx, [ebp - 0x248]
call fcn.00404e0f
push eax
call fcn.00467153
pop ecx
pop ecx
test eax, eax
jne 0x4a2436
mov byte [ebp - 0x33a], 1
push 0
push dword [ebp - 0x340]
lea ecx, [ebp - 0x360]
call fcn.0040584d
push eax
lea ecx, [ebp - 0x230]
call fcn.00405b53
cmp eax, 0xffffffff
jne 0x4a2425
push dword [ebp - 0x340]
lea ecx, [ebp - 0x360]
call fcn.0040584d
push eax
lea ecx, [ebp - 0x230]
call fcn.00403f56
lea ecx, [ebp - 0x230]
call fcn.00404e0f
push eax
lea ecx, [ebp - 0x2f0]
call fcn.00404d2c
mov byte [ebp - 4], 9
lea eax, [ebp - 0x2f0]
push eax
push 0x4c8314
mov edx, 0x4c8358
mov ecx, 0x80000001
call fcn.004193b9
pop ecx
pop ecx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2f0]
call fcn.00405118
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00405118
jmp 0x4a244a
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00405118
jmp 0x4a2323
movzx eax, byte [ebp - 0x33a]
test eax, eax
jne 0x4a257b
push 0x61
pop eax
mov word [ebp - 0x344], ax
xor eax, eax
mov word [ebp - 0x342], ax
and dword [ebp - 0x34c], 0
jmp 0x4a2482
mov eax, dword [ebp - 0x34c]
inc eax
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0x1a
jge 0x4a257b
push 0
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0x344]
push eax
lea ecx, [ebp - 0x230]
call fcn.00405af5
cmp eax, 0xffffffff
jne 0x4a2559
push 0x4c81cc
lea ecx, [ebp - 0x308]
call fcn.00404d2c
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x344]
push eax
mov edx, 0x4c8408
mov ecx, 0x80000001
call fcn.004193b9
pop ecx
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x308]
call fcn.00405118
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0x344]
push eax
lea ecx, [ebp - 0x230]
call fcn.00405c89
lea ecx, [ebp - 0x230]
call fcn.00404e0f
push eax
lea ecx, [ebp - 0x320]
call fcn.00404d2c
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x320]
push eax
push str.MRUList
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfOpenWithList
mov ecx, 0x80000001
call fcn.004193b9
pop ecx
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x320]
call fcn.00405118
jmp 0x4a257b
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0x344]
inc eax
push 2
pop ecx
imul ecx, ecx, 0
mov word [ebp + ecx - 0x344], ax
jmp 0x4a2475
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x230]
call fcn.00405118
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x360]
call fcn.00405a54
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x338]
call fcn.00405118
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.00405118
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461014
leave
ret