Function at 0x40d1e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498a4f
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x4cb070]
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 edi, ecx
mov dword [ebp - 0x424], edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x440], edi
mov dword [edi + 0x10], 0
jb 0x40d242
mov eax, dword [edi]
jmp 0x40d244
mov eax, edi
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x18]
mov dword [ebp - 4], ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x40d261
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea ebx, [edi + 0x30]
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], ecx
cmp dword [ebx + 0x14], 8
jb 0x40d27d
mov eax, dword [ebx]
jmp 0x40d27f
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x48]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x40d299
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 4], 3
lea esi, [edi + 0x60]
push ecx
mov dword [ebp - 0x424], esi
push ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
call fcn.0040df60
mov dword [esi], eax
push 0x104
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push eax
push 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [ebp - 0x218], 0
jne 0x40d2ed
xor ecx, ecx
jmp 0x40d305
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d2f6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [edi + 0x18]
call fcn.0040a9c0
push 1
push ecx
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0x5c
push eax
lea ecx, [edi + 0x18]
call fcn.00402bb0
push eax
push 0
lea eax, [ebp - 0x43c]
push eax
lea ecx, [edi + 0x18]
call fcn.00402a40
mov esi, eax
cmp edi, esi
je 0x40d384
cmp dword [edi + 0x14], 8
jb 0x40d35d
mov eax, dword [edi + 0x14]
mov ecx, edi
inc eax
push eax
push dword [edi]
call fcn.0040aba0
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x40d375
mov eax, dword [edi]
jmp 0x40d377
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
push esi
call fcn.0040a380
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x428]
cmp eax, 8
jb 0x40d3a6
inc eax
lea ecx, [ebp - 0x43c]
push eax
push dword [ebp - 0x43c]
call fcn.0040aba0
push str.pdfCreatePdfVirtaulPrinter.exe
mov edx, edi
lea ecx, [ebp - 0x43c]
call fcn.00403070
add esp, 4
mov esi, eax
cmp ebx, esi
je 0x40d3fb
mov eax, dword [ebx + 0x14]
cmp eax, 8
jb 0x40d3d4
inc eax
mov ecx, ebx
push eax
push dword [ebx]
call fcn.0040aba0
mov dword [ebx + 0x14], 7
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], 0
jb 0x40d3ec
mov eax, dword [ebx]
jmp 0x40d3ee
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push esi
call fcn.0040a380
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x428]
cmp eax, 8
jb 0x40d41d
inc eax
lea ecx, [ebp - 0x43c]
push eax
push dword [ebp - 0x43c]
call fcn.0040aba0
push 1
push 0x10
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x420], 0
jne 0x40d43e
xor ecx, ecx
jmp 0x40d456
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d447
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [edi + 0x48]
call fcn.00403730
push 0xd
push 0x4af29c
mov ecx, eax
call fcn.00403730
mov eax, edi
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.00459a5d
mov esp, ebp
pop ebp
ret