Function at 0x40d470
Capabilities:
Set current directory
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504782
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x60], esi
mov ebx, dword [eax]
push 0x70
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x70], ebx
call fcn.004051ca
add esp, 4
mov dword [ebp - 0x8c], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x40d4d6
push ebx
mov ecx, eax
call fcn.0040ddb6
mov eax, dword [0x5563e8]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [eax + 4]
push edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x88], eax
call esi
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [eax + 0x1c], edx
call edi
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x40d522
mov eax, 4
jmp 0x40dd18
mov ecx, dword [0x5563e8]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
xor eax, eax
push 2
push 0x5120b4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
call fcn.004063e0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.0040ee80
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0x51], al
mov dword [ebp - 4], 0xffffffff
jb 0x40d582
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406fa9
add esp, 4
push 3
xor eax, eax
push 0x511e60
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.004063e0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, ebx
mov dword [ebp - 4], 3
call fcn.0040ee80
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0x52], al
mov dword [ebp - 4], 0xffffffff
jb 0x40d5d3
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406fa9
add esp, 4
push 3
xor eax, eax
push 0x512b70
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.004063e0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, ebx
mov dword [ebp - 4], 4
call fcn.0040ee80
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0x54], al
mov dword [ebp - 4], 0xffffffff
jb 0x40d624
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406fa9
add esp, 4
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.0040ef20
push 8
push 0
push str.PDFShell
mov ecx, eax
call fcn.0040a590
cmp eax, 0xffffffff
setne byte [ebp - 0x53]
cmp dword [ebp - 0x18], 8
jb 0x40d658
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00406fa9
add esp, 4
cmp byte [ebp - 0x52], 0
je 0x40d68f
lea edx, [ebp - 0x2c]
push 0x511e60
push edx
call fcn.0045de20
add esp, 8
push 0xd
push 0
push str.pdfshell_prev
mov ecx, eax
mov dword [ebp - 0x60], 2
call fcn.0040a590
mov byte [ebp - 0x4c], 1
cmp eax, 0xffffffff
jne 0x40d693
mov byte [ebp - 0x4c], 0
test byte [ebp - 0x60], 2
je 0x40d6af
and dword [ebp - 0x60], 0xfffffffd
cmp dword [ebp - 0x18], 8
jb 0x40d6af
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406fa9
add esp, 4
mov eax, dword [0x5563e8]
lea ebx, [eax + 4]
push ebx
mov dword [ebp - 0x58], eax
call esi
movzx ecx, byte [ebp - 0x51]
mov edx, dword [ebp - 0x58]
push ebx
mov byte [edx + 0x40], cl
call edi
mov eax, dword [0x5563e8]
lea ebx, [eax + 4]
push ebx
mov dword [ebp - 0x58], eax
call esi
mov al, byte [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
push ebx
mov byte [ecx + 0x51], al
call edi
mov eax, dword [0x5563e8]
lea ebx, [eax + 4]
push ebx
mov dword [ebp - 0x58], eax
call esi
mov dl, byte [ebp - 0x52]
mov eax, dword [ebp - 0x58]
push ebx
mov byte [eax + 0x41], dl
call edi
mov eax, dword [0x5563e8]
lea ebx, [eax + 4]
push ebx
mov dword [ebp - 0x58], eax
call esi
movzx ecx, byte [ebp - 0x4c]
mov edx, dword [ebp - 0x58]
push ebx
mov byte [edx + 0x66], cl
call edi
cmp byte [ebp - 0x51], 0
je 0x40d748
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x58], eax
mov eax, dword [0x5563e8]
lea ebx, [eax + 4]
push ebx
mov dword [ebp - 0x88], eax
call esi
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x88]
push ebx
mov dword [ecx + 0x54], eax
call edi
lea ecx, [ebp - 0x80]
call fcn.0040fbe0
cmp byte [ebp - 0x54], 0
mov dword [ebp - 4], 5
mov dword [0x551108], 1
jne 0x40d9e9
cmp byte [ebp - 0x52], 0
jne 0x40d9e9
push 0x20019
push str.SoftwareAdobeAcrobat_Reader11.0Privileged
push 0x80000001
lea ecx, [ebp - 0x80]
mov byte [ebp - 0x61], 1
call fcn.0040fbf0
test eax, eax
jne 0x40d7bc
lea edx, [ebp - 0x68]
push edx
push str.bProtectedMode
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x68], eax
call fcn.0040ab30
test eax, eax
jne 0x40d7b4
mov eax, dword [ebp - 0x68]
mov dword [0x551108], eax
lea ecx, [ebp - 0x80]
call fcn.0040abf0
call fcn.0040ae90
mov byte [ebp - 0x50], al
mov eax, dword [0x5563e8]
lea ebx, [eax + 4]
push ebx
mov dword [ebp - 0x58], eax
call esi
movzx ecx, byte [ebp - 0x50]
mov edx, dword [ebp - 0x58]
push ebx
mov byte [edx + 0x59], cl
call edi
call fcn.0040fc30
mov byte [ebp - 0x50], al
mov eax, dword [0x5563e8]
lea ebx, [eax + 4]
push ebx
mov dword [ebp - 0x58], eax
call esi
movzx eax, byte [ebp - 0x50]
mov ecx, dword [ebp - 0x58]
push ebx
mov byte [ecx + 0x60], al
call edi
mov eax, dword [0x5563e8]
lea ebx, [eax + 4]
push ebx
mov dword [ebp - 0x58], eax
call esi
mov edx, dword [ebp - 0x58]
push ebx
mov byte [edx + 0x61], 0
call edi
call fcn.0040fdc0
mov byte [ebp - 0x50], al
mov eax, dword [0x5563e8]
lea ebx, [eax + 4]
push ebx
mov dword [ebp - 0x58], eax
call esi
movzx eax, byte [ebp - 0x50]
mov ecx, dword [ebp - 0x58]
push ebx
mov byte [ecx + 0x62], al
call edi
call fcn.0040ff50
mov byte [ebp - 0x50], al
mov eax, dword [0x5563e8]
lea ebx, [eax + 4]
push ebx
mov dword [ebp - 0x58], eax
call esi
movzx edx, byte [ebp - 0x50]
mov eax, dword [ebp - 0x58]
push ebx
mov byte [eax + 0x63], dl
call edi
mov byte [ebp - 0x69], 0
call fcn.004100e0
mov byte [ebp - 0x4c], al
mov eax, dword [0x5563e8]
lea ebx, [eax + 4]
push ebx
mov dword [ebp - 0x58], eax
call esi
movzx ecx, byte [ebp - 0x4c]
mov edx, dword [ebp - 0x58]
push ebx
mov byte [edx + 0x50], cl
call edi
call fcn.004101a0
mov byte [ebp - 0x4c], al
mov eax, dword [0x5563e8]
lea ebx, [eax + 4]
push ebx
mov dword [ebp - 0x58], eax
call esi
movzx eax, byte [ebp - 0x4c]
mov ecx, dword [ebp - 0x58]
mov byte [ecx + 0x64], al
push ebx
call edi
call fcn.00410340
push 1
push str.bEnableEnhancedPolicyRestrictions
mov byte [0x5510b8], al
call fcn.0040a7e0
add esp, 8
test eax, eax
mov eax, dword [0x5563e8]
lea ebx, [eax + 4]
push ebx
setne byte [ebp - 0x4c]
mov dword [ebp - 0x58], eax
call esi
movzx edx, byte [ebp - 0x4c]
mov eax, dword [ebp - 0x58]
push ebx
mov byte [eax + 0x65], dl
call edi
cmp byte [ebp - 0x51], 0
mov dword [ebp - 0x78], 0
jne 0x40d8fb
cmp byte [ebp - 0x53], 0
mov byte [ebp - 0x4c], 1
je 0x40d8ff
mov byte [ebp - 0x4c], 0
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], 6
call fcn.00410410
add esp, 4
test al, al
jne 0x40d939
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], ebx
jae 0x40d934
lea eax, [ebp - 0x48]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x78]
call fcn.004104a0
test al, al
je 0x40db42
lea ecx, [ebp - 0x5c]
call fcn.0043b8e0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.0043b8f0
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
lea ecx, [ebp - 0x98]
mov ebx, eax
call fcn.0043ba80
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x70]
mov byte [ebp - 4], 8
mov dword [0x555368], ebx
call fcn.0040ef20
mov ebx, 8
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], ebx
jb 0x40d99a
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x98]
call fcn.0043baa0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], ebx
jb 0x40d9ba
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406fa9
add esp, 4
cmp byte [ebp - 0x51], 0
je 0x40d9d6
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x40d9d6
mov ecx, dword [0x5563e8]
push eax
call fcn.0044b4c0
cmp dword [ebp - 0x78], 0
je 0x40d9f2
lea ecx, [ebp - 0x78]
call fcn.0043b600
mov dword [ebp - 0x68], eax
jmp 0x40d9f9
mov byte [ebp - 0x61], 0
jmp 0x40d7bc
mov dword [ebp - 0x68], 0
mov eax, dword [0x5563e8]
lea ebx, [eax + 4]
push ebx
mov dword [ebp - 0x70], eax
call esi
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x70]
push ebx
mov dword [ecx + 0x2c], eax
call edi
cmp byte [ebp - 0x4c], 0
je 0x40da38
mov edx, dword [ebp + 0xc]
push 0x513ec4
push edx
push 0x5510c0
mov ecx, 0x555298
mov byte [0x55528c], 1
call fcn.0043c140
mov ecx, dword [ebp - 0x74]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov ebx, dword [ebp - 0x84]
test ebx, ebx
je 0x40da56
lea ecx, [ebp - 0x78]
call fcn.00451520
mov dword [ebx], eax
mov eax, dword [0x5563e8]
lea ebx, [eax + 4]
push ebx
mov dword [ebp - 0x70], eax
call esi
mov eax, dword [ebp - 0x70]
mov cl, byte [eax + 0x48]
push ebx
mov byte [ebp - 0x53], cl
call edi
cmp byte [ebp - 0x53], 0
jne 0x40dad4
call fcn.0040ee70
test eax, eax
jg 0x40dad0
call fcn.0040ee70
test eax, eax
jg 0x40dab8
push 0
push 0x2e0
push str.ChromeSandboxLaunch.cpp
lea ecx, [ebp - 0x148]
call fcn.0045c530
or dword [ebp - 0x60], 4
add eax, 8
push str.Handshake_with_Sandbox_Process_Failed
push eax
mov byte [ebp - 4], 0xa
call fcn.00449da0
add esp, 8
test byte [ebp - 0x60], 4
mov dword [ebp - 4], 8
je 0x40dad0
lea ecx, [ebp - 0x148]
call fcn.0045cab0
mov bl, 1
jmp 0x40dad7
mov bl, byte [ebp - 0x69]
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 7
call fcn.00455b30
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.0044afa0
test bl, bl
je 0x40dc65
cmp byte [ebp - 0x51], 0
jne 0x40dc48
cmp byte [ebp - 0x52], 0
jne 0x40dc65
mov eax, dword [ebp - 0x84]
xor edi, edi
mov esi, 4
cmp eax, edi
je 0x40db25
mov dword [eax], 1
call fcn.0044f8d0
sub eax, 2
je 0x40dbfa
dec eax
jne 0x40dc6b
lea esi, [eax + 5]
jmp 0x40dc6b
call fcn.0040ee70
test eax, eax
jg 0x40dafa
call fcn.0040ee70
mov ebx, 0xb
test eax, eax
jg 0x40dbc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x2c]
push str.0x_X
push edx
call fcn.0042eec0
add esp, 0xc
mov esi, eax
push 0
push 0x2e6
mov edi, 8
or dword [ebp - 0x60], edi
push str.ChromeSandboxLaunch.cpp
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], bl
call fcn.0045c530
or dword [ebp - 0x60], 0x10
add eax, edi
push str.Sandbox_Process_Initialization_Failed___error:
push eax
mov dword [ebp - 4], 0xc
call fcn.00449da0
add esp, 8
cmp dword [esi + 0x14], edi
jb 0x40dbb7
mov esi, dword [esi]
push esi
push eax
call fcn.0045c5c0
add esp, 8
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x60]
test bl, 0x10
je 0x40dbdd
and ebx, 0xffffffef
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x60], ebx
call fcn.0045cab0
mov dword [ebp - 4], 6
test bl, 8
je 0x40dafa
lea ecx, [ebp - 0x2c]
call fcn.0040a440
jmp 0x40dafa
lea eax, [ebp - 0x68]
push eax
push str.SoftwareAdobeAcrobat_Reader11.0Privileged
push 0x80000001
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x74], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40dc6b
mov edx, dword [ebp - 0x68]
push 4
lea ecx, [ebp - 0x74]
push ecx
push 4
push edi
push str.bProtectedMode
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40dc3c
mov eax, dword [ebp - 0x74]
mov dword [0x551108], eax
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40dc6b
cmp byte [ebp - 0x54], 0
je 0x40dc65
mov eax, dword [ebp - 0x84]
mov esi, 5
test eax, eax
je 0x40dc6b
mov dword [eax], 0xff
jmp 0x40dc6b
mov esi, dword [ebp - 0x8c]
cmp byte [ebp - 0x61], 0
je 0x40dca8
push 0x20006
push str.SoftwareAdobeAcrobat_Reader11.0Privileged
push 0x80000001
lea ecx, [ebp - 0x80]
call fcn.0040fbf0
test eax, eax
jne 0x40dca8
mov edx, dword [0x551108]
push edx
push str.bProtectedMode
lea ecx, [ebp - 0x80]
call fcn.004446b0
lea ecx, [ebp - 0x80]
call fcn.0040abf0
cmp byte [ebp - 0x50], 0
je 0x40dcd4
cmp esi, 4
jne 0x40dcd4
cmp dword [ebp - 0x38], 0
je 0x40dccc
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x40dcc5
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov ecx, dword [0x5563e8]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
cmp dword [ebp - 0x34], 8
jb 0x40dcf3
mov eax, dword [ebp - 0x48]
push eax
call fcn.00406fa9
add esp, 4
xor ecx, ecx
mov word [ebp - 0x48], cx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
call fcn.0040abf0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret