Function at 0x4010d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40f51a
mov eax, dword fs:[0]
push eax
sub esp, 0x620
mov eax, dword [0x414090]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebx
push ebp
push esi
mov eax, dword [0x414090]
xor eax, esp
push eax
lea eax, [esp + 0x630]
mov dword fs:[0], eax
xor ebp, ebp
mov eax, 7
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], ebp
mov word [edi + 8], bp
mov ecx, vtable.CString.0
mov dword [esp + 0x20], edi
mov dword [edi], ecx
mov dword [edi + 0x20], ebp
mov dword [esp + 0x638], ebp
mov dword [edi + 0x40], eax
mov dword [edi + 0x3c], ebp
mov word [edi + 0x2c], bp
mov dword [edi + 0x24], ecx
mov dword [edi + 0x44], ebp
mov dword [edi + 0x64], eax
mov dword [edi + 0x60], ebp
mov word [edi + 0x50], bp
mov dword [edi + 0x48], ecx
mov dword [edi + 0x68], ebp
mov dword [edi + 0x88], eax
mov dword [edi + 0x84], ebp
mov word [edi + 0x74], bp
mov dword [edi + 0x6c], ecx
mov dword [edi + 0x8c], ebp
mov dword [edi + 0xac], eax
mov dword [edi + 0xa8], ebp
mov word [edi + 0x98], bp
mov dword [edi + 0x90], ecx
mov dword [edi + 0xb0], ebp
mov dword [edi + 0xd0], eax
mov dword [edi + 0xcc], ebp
mov word [edi + 0xbc], bp
mov dword [edi + 0xb4], ecx
mov dword [edi + 0xd4], ebp
mov dword [edi + 0xf4], eax
mov dword [edi + 0xf0], ebp
mov word [edi + 0xe0], bp
mov dword [edi + 0xd8], ecx
mov dword [edi + 0xf8], ebp
mov dword [edi + 0x11c], eax
mov dword [edi + 0x118], ebp
mov word [edi + 0x108], bp
mov dword [edi + 0x100], ecx
mov dword [edi + 0x120], ebp
mov dword [edi + 0x140], eax
mov dword [edi + 0x13c], ebp
mov word [edi + 0x12c], bp
mov dword [edi + 0x124], ecx
mov dword [edi + 0x144], ebp
push ebp
lea eax, [esp + 0x14]
mov byte [esp + 0x63c], 8
push eax
lea ebx, [edi + 0xfc]
push edx
mov dword [edi + 0x148], ebp
mov dword [edi + 0x14c], ebp
mov dword [ebx], ebp
call sub.WINSPOOL.DRV_OpenPrinterW
test eax, eax
je 0x401511
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebp
push ebp
push 2
push edx
call sub.WINSPOOL.DRV_GetPrinterW
mov eax, dword [esp + 0x14]
add eax, 1
push eax
call fcn.0040412e
mov edx, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x14]
push ecx
mov esi, eax
mov eax, dword [esp + 0x14]
push edx
push esi
push 2
push eax
mov dword [esp + 0x30], esi
call sub.WINSPOOL.DRV_GetPrinterW
mov esi, dword [esi + 0xc]
cmp esi, ebp
jne 0x401280
mov esi, 0x411e3c
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401285
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [edi + 0x70]
call fcn.00402f10
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004049b3
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0x14]
push edx
push 4
push ebx
lea eax, [esp + 0x24]
push eax
push str.WilSpoolFlags
push ecx
call sub.WINSPOOL.DRV_GetPrinterDataW
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push 0x400
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
push str.PortProp
push edx
call sub.WINSPOOL.DRV_GetPrinterDataW
test eax, eax
jne 0x40130c
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4012f5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x28]
push eax
jmp 0x401333
cmp dword [edi + 0x88], 8
jb 0x40131a
mov edx, dword [edi + 0x74]
jmp 0x40131d
lea edx, [edi + 0x74]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401322
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [edi + 0x94]
call fcn.00402f10
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push 0x400
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x24]
push eax
push str.InitDir
push ecx
call sub.WINSPOOL.DRV_GetPrinterDataW
test eax, eax
jne 0x40138d
lea eax, [esp + 0x24]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401370
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x28]
push edx
lea esi, [edi + 4]
call fcn.00402f10
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push 0x400
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
push str.Loader
push eax
call sub.WINSPOOL.DRV_GetPrinterDataW
test eax, eax
jne 0x4013dd
lea eax, [esp + 0x24]
lea edx, [eax + 2]
jmp 0x4013c0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4013c0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x28]
push ecx
lea esi, [edi + 0x28]
call fcn.00402f10
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push 0x400
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x411c3c
push edx
call sub.WINSPOOL.DRV_GetPrinterDataW
test eax, eax
jne 0x40142d
lea eax, [esp + 0x24]
lea edx, [eax + 2]
jmp 0x401410
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401410
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x28]
push eax
lea esi, [edi + 0x4c]
call fcn.00402f10
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push 0x400
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x24]
push eax
push str.ReqProp
push ecx
call sub.WINSPOOL.DRV_GetPrinterDataW
test eax, eax
jne 0x401480
lea eax, [esp + 0x24]
lea edx, [eax + 2]
jmp 0x401460
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401460
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x28]
push edx
lea esi, [edi + 0xb8]
call fcn.00402f10
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push 0x400
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
push str.TempPath
push eax
call sub.WINSPOOL.DRV_GetPrinterDataW
test eax, eax
jne 0x4014c7
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4014b0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x28]
push ecx
jmp 0x4014fc
lea edx, [esp + 0x424]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x424]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4014e4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x428]
push eax
lea esi, [edi + 0xdc]
call fcn.00402f10
mov ecx, dword [esp + 0x10]
push ecx
call sub.WINSPOOL.DRV_ClosePrinter
mov eax, edi
mov ecx, dword [esp + 0x630]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x61c]
xor ecx, esp
call fcn.00404729
add esp, 0x62c
ret