Function at 0x40db50
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58564c
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x60e9b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0040cbe0
test eax, eax
jne 0x40de42
mov edx, str.pdf_toolofficeplugin_
lea ecx, [ebp - 0xbc]
call fcn.00421780
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x88]
push dword [eax]
call fcn.00405a20
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0xbc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dbd1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
push 0
cmovae eax, dword [ebp - 0x88]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push str.XDOffilePlugin.dll
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x40]
call fcn.0040eb90
add esp, 4
push str.XDOffilePlugin64.dll
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0040eb90
add esp, 4
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xa0]
call fcn.0040eca0
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.0040eb40
add esp, 4
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x8c]
cmp eax, 8
jb 0x40dc63
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00407af0
xor eax, eax
mov dword [ebp - 0x8c], 7
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0xa0], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
mov dword [ebp - 0x90], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40dcd3
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push ecx
cmovae eax, dword [ebp - 0x70]
lea ecx, [ebp - 0xbc]
push eax
mov edx, str.regsvr32__s
call fcn.0040af70
mov edx, dword [ebp - 0xbc]
add esp, 8
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dcd3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xb8]
call fcn.0040eca0
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x58]
call fcn.0040eb40
add esp, 4
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0xa4]
cmp eax, 8
jb 0x40dd15
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.00407af0
xor eax, eax
mov dword [ebp - 0xa4], 7
cmp dword [ebp - 0x14], 8
mov word [ebp - 0xb8], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0xa8], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40dd83
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push ecx
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0xc0]
push eax
mov edx, str.regsvr32__s
call fcn.0040af70
mov edx, dword [ebp - 0xc0]
add esp, 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40dd83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x40dd98
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00407af0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x40ddc1
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00407af0
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x40ddea
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407af0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x40de13
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407af0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x40de42
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00407af0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00555b37
mov esp, ebp
pop ebp
ret