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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5017e2
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x54e938]
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 0x6c
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 0x40d356
push ebx
mov ecx, eax
call fcn.0040dc36
mov eax, dword [0x5513c0]
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 0x40d3a2
mov eax, 4
jmp 0x40db98
mov ecx, dword [0x5513c0]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
xor eax, eax
push 2
push 0x50e094
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.00406300
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.0040ed00
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0x51], al
mov dword [ebp - 4], 0xffffffff
jb 0x40d402
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406ec9
add esp, 4
push 3
xor eax, eax
push 0x50de40
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00406300
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, ebx
mov dword [ebp - 4], 3
call fcn.0040ed00
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0x52], al
mov dword [ebp - 4], 0xffffffff
jb 0x40d453
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406ec9
add esp, 4
push 3
xor eax, eax
push 0x50eb50
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00406300
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, ebx
mov dword [ebp - 4], 4
call fcn.0040ed00
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0x54], al
mov dword [ebp - 4], 0xffffffff
jb 0x40d4a4
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406ec9
add esp, 4
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.0040eda0
push 8
push 0
push str.PDFShell
mov ecx, eax
call fcn.0040a410
cmp eax, 0xffffffff
setne byte [ebp - 0x53]
cmp dword [ebp - 0x18], 8
jb 0x40d4d8
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00406ec9
add esp, 4
cmp byte [ebp - 0x52], 0
je 0x40d50f
lea edx, [ebp - 0x2c]
push 0x50de40
push edx
call fcn.0045a0a0
add esp, 8
push 0xd
push 0
push str.pdfshell_prev
mov ecx, eax
mov dword [ebp - 0x60], 2
call fcn.0040a410
mov byte [ebp - 0x4c], 1
cmp eax, 0xffffffff
jne 0x40d513
mov byte [ebp - 0x4c], 0
test byte [ebp - 0x60], 2
je 0x40d52f
and dword [ebp - 0x60], 0xfffffffd
cmp dword [ebp - 0x18], 8
jb 0x40d52f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406ec9
add esp, 4
mov eax, dword [0x5513c0]
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 [0x5513c0]
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 [0x5513c0]
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 [0x5513c0]
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 0x40d5c8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x58], eax
mov eax, dword [0x5513c0]
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.0040fa60
cmp byte [ebp - 0x54], 0
mov dword [ebp - 4], 5
mov dword [0x54c108], 1
jne 0x40d869
cmp byte [ebp - 0x52], 0
jne 0x40d869
push 0x20019
push str.SoftwareAdobeAcrobat_Reader11.0Privileged
push 0x80000001
lea ecx, [ebp - 0x80]
mov byte [ebp - 0x61], 1
call fcn.0040fa70
test eax, eax
jne 0x40d63c
lea edx, [ebp - 0x68]
push edx
push str.bProtectedMode
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x68], eax
call fcn.0040a9b0
test eax, eax
jne 0x40d634
mov eax, dword [ebp - 0x68]
mov dword [0x54c108], eax
lea ecx, [ebp - 0x80]
call fcn.0040aa70
call fcn.0040ad10
mov byte [ebp - 0x50], al
mov eax, dword [0x5513c0]
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.0040fab0
mov byte [ebp - 0x50], al
mov eax, dword [0x5513c0]
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 [0x5513c0]
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.0040fc40
mov byte [ebp - 0x50], al
mov eax, dword [0x5513c0]
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.0040fdd0
mov byte [ebp - 0x50], al
mov eax, dword [0x5513c0]
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.0040ff60
mov byte [ebp - 0x4c], al
mov eax, dword [0x5513c0]
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.00410020
mov byte [ebp - 0x4c], al
mov eax, dword [0x5513c0]
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.004101c0
push 1
push str.bEnableEnhancedPolicyRestrictions
mov byte [0x54c0b8], al
call fcn.0040a660
add esp, 8
test eax, eax
mov eax, dword [0x5513c0]
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 0x40d77b
cmp byte [ebp - 0x53], 0
mov byte [ebp - 0x4c], 1
je 0x40d77f
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.00410290
add esp, 4
test al, al
jne 0x40d7b9
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], ebx
jae 0x40d7b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x78]
call fcn.00410320
test al, al
je 0x40d9c2
lea ecx, [ebp - 0x5c]
call fcn.00439140
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.00439150
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.004392c0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x70]
mov byte [ebp - 4], 8
mov dword [0x550348], ebx
call fcn.0040eda0
mov ebx, 8
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], ebx
jb 0x40d81a
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x98]
call fcn.004392e0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], ebx
jb 0x40d83a
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406ec9
add esp, 4
cmp byte [ebp - 0x51], 0
je 0x40d856
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x40d856
mov ecx, dword [0x5513c0]
push eax
call fcn.00447830
cmp dword [ebp - 0x78], 0
je 0x40d872
lea ecx, [ebp - 0x78]
call fcn.00438e60
mov dword [ebp - 0x68], eax
jmp 0x40d879
mov byte [ebp - 0x61], 0
jmp 0x40d63c
mov dword [ebp - 0x68], 0
mov eax, dword [0x5513c0]
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 0x40d8b8
mov edx, dword [ebp + 0xc]
push 0x50fd4c
push edx
push 0x54c0c0
mov ecx, 0x550278
mov byte [0x55026c], 1
call fcn.00439980
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 0x40d8d6
lea ecx, [ebp - 0x78]
call fcn.0044d7f0
mov dword [ebx], eax
mov eax, dword [0x5513c0]
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 0x40d954
call fcn.0040ecf0
test eax, eax
jg 0x40d950
call fcn.0040ecf0
test eax, eax
jg 0x40d938
push 0
push 0x2e0
push str.ChromeSandboxLaunch.cpp
lea ecx, [ebp - 0x148]
call fcn.00458750
or dword [ebp - 0x60], 4
add eax, 8
push str.Handshake_with_Sandbox_Process_Failed
push eax
mov byte [ebp - 4], 0xa
call fcn.004461c0
add esp, 8
test byte [ebp - 0x60], 4
mov dword [ebp - 4], 8
je 0x40d950
lea ecx, [ebp - 0x148]
call fcn.00458cd0
mov bl, 1
jmp 0x40d957
mov bl, byte [ebp - 0x69]
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 7
call fcn.00451dc0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.00447320
test bl, bl
je 0x40dae5
cmp byte [ebp - 0x51], 0
jne 0x40dac8
cmp byte [ebp - 0x52], 0
jne 0x40dae5
mov eax, dword [ebp - 0x84]
xor edi, edi
mov esi, 4
cmp eax, edi
je 0x40d9a5
mov dword [eax], 1
call fcn.0044bba0
sub eax, 2
je 0x40da7a
dec eax
jne 0x40daeb
lea esi, [eax + 5]
jmp 0x40daeb
call fcn.0040ecf0
test eax, eax
jg 0x40d97a
call fcn.0040ecf0
mov ebx, 0xb
test eax, eax
jg 0x40da41
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x2c]
push str.0x_X
push edx
call fcn.0042c9e0
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.00458750
or dword [ebp - 0x60], 0x10
add eax, edi
push str.Sandbox_Process_Initialization_Failed___error:
push eax
mov dword [ebp - 4], 0xc
call fcn.004461c0
add esp, 8
cmp dword [esi + 0x14], edi
jb 0x40da37
mov esi, dword [esi]
push esi
push eax
call fcn.004587e0
add esp, 8
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x60]
test bl, 0x10
je 0x40da5d
and ebx, 0xffffffef
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x60], ebx
call fcn.00458cd0
mov dword [ebp - 4], 6
test bl, 8
je 0x40d97a
lea ecx, [ebp - 0x2c]
call fcn.0040a2c0
jmp 0x40d97a
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 0x40daeb
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 0x40dabc
mov eax, dword [ebp - 0x74]
mov dword [0x54c108], eax
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40daeb
cmp byte [ebp - 0x54], 0
je 0x40dae5
mov eax, dword [ebp - 0x84]
mov esi, 5
test eax, eax
je 0x40daeb
mov dword [eax], 0xff
jmp 0x40daeb
mov esi, dword [ebp - 0x8c]
cmp byte [ebp - 0x61], 0
je 0x40db28
push 0x20006
push str.SoftwareAdobeAcrobat_Reader11.0Privileged
push 0x80000001
lea ecx, [ebp - 0x80]
call fcn.0040fa70
test eax, eax
jne 0x40db28
mov edx, dword [0x54c108]
push edx
push str.bProtectedMode
lea ecx, [ebp - 0x80]
call fcn.00443280
lea ecx, [ebp - 0x80]
call fcn.0040aa70
cmp byte [ebp - 0x50], 0
je 0x40db54
cmp esi, 4
jne 0x40db54
cmp dword [ebp - 0x38], 0
je 0x40db4c
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x40db45
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 [0x5513c0]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
cmp dword [ebp - 0x34], 8
jb 0x40db73
mov eax, dword [ebp - 0x48]
push eax
call fcn.00406ec9
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.0040aa70
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