Function at 0x413b18
Capabilities:
Get common file path

Disassembly:
push 0x680
mov eax, 0x449ccf
call fcn.004386f7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x674], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x660], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x66c], ebx
mov dword [ebp - 0x668], ebx
mov dword [ebp - 0x664], ebx
push 0x4676b0
lea ecx, [ebp - 0x670]
mov byte [ebp - 4], 1
call fcn.0040620b
lea ecx, [ebp - 0x68c]
mov byte [ebp - 4], 2
call fcn.00430f14
push 0x3b
lea eax, [ebp - 0x66c]
push eax
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov byte [ebp - 4], 3
call fcn.0040693a
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.0041954e
mov edi, dword [ebp - 0x66c]
add esp, 0xc
mov dword [ebp - 0x650], edi
cmp edi, dword [ebp - 0x668]
je 0x413f89
push 0x18
pop esi
mov dword [ebp - 0x644], ebx
mov dword [ebp - 0x640], ebx
mov dword [ebp - 0x63c], ebx
mov dword [ebp - 0x65c], ebx
mov dword [ebp - 0x658], ebx
mov dword [ebp - 0x654], ebx
push 0x208
lea eax, [ebp - 0x220]
push ebx
push eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x638], ebx
call fcn.00438dc0
add esp, 0xc
cmp dword [edi + 0x14], 8
push 0x3d
lea eax, [ebp - 0x644]
push eax
jb 0x413c0e
mov eax, dword [edi]
jmp 0x413c10
mov eax, edi
push ecx
mov ecx, esp
push eax
call fcn.00406234
call fcn.0041954e
mov eax, dword [ebp - 0x640]
sub eax, dword [ebp - 0x644]
add esp, 0xc
cdq
idiv esi
cmp eax, 2
je 0x413c54
lea ecx, [ebp - 0x65c]
call fcn.004052ea
lea ecx, [ebp - 0x644]
mov byte [ebp - 4], 3
call fcn.004052ea
jmp 0x413f75
push ebx
lea ecx, [ebp - 0x644]
call fcn.004211c1
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x634], eax
jb 0x413c74
mov eax, dword [eax]
mov dword [ebp - 0x634], eax
push ebx
lea ecx, [ebp - 0x644]
call fcn.004211c1
cmp dword [eax + 0x14], 8
jb 0x413c8a
mov ecx, dword [eax]
jmp 0x413c8c
mov ecx, eax
mov eax, dword [eax + 0x10]
push ebx
lea esi, [ecx + eax*2]
lea ecx, [ebp - 0x644]
call fcn.004211c1
cmp dword [eax + 0x14], 8
jb 0x413ca6
mov eax, dword [eax]
push 0x4391c3
push dword [ebp - 0x634]
push esi
push eax
lea eax, [ebp - 0x678]
push eax
call fcn.00403375
add esp, 0x14
lea ecx, [ebp - 0x644]
push 0x453e54
push ebx
call fcn.004211c1
mov ecx, eax
call fcn.0040b7cd
test eax, eax
jne 0x413e4a
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x648]
push eax
push ebx
push ebx
push 3
push ebx
push ebx
mov dword [ebp - 0x648], ebx
mov dword [ebp - 0x64c], ebx
call sub.WINSPOOL.DRV_EnumPrinterDriversW
push 0x1768
push str.DevConFunc.cpp
push dword [ebp - 0x648]
call fcn.0042ae50
add esp, 0xc
mov dword [ebp - 0x634], eax
test eax, eax
je 0x413fd1
lea ecx, [ebp - 0x64c]
push ecx
lea ecx, [ebp - 0x648]
push ecx
push dword [ebp - 0x648]
push eax
push 3
push ebx
push ebx
call sub.WINSPOOL.DRV_EnumPrinterDriversW
test eax, eax
je 0x413fd1
mov ecx, dword [ebp - 0x64c]
mov esi, ebx
test ecx, ecx
je 0x413da0
mov eax, dword [ebp - 0x634]
add eax, 4
mov dword [ebp - 0x630], eax
mov edx, dword [eax]
test edx, edx
je 0x413d92
push dword [ebp - 0x674]
push edx
call fcn.0043933f
pop ecx
pop ecx
test eax, eax
je 0x413db7
mov ecx, dword [ebp - 0x64c]
mov eax, dword [ebp - 0x630]
inc esi
add eax, 0x28
mov dword [ebp - 0x630], eax
cmp esi, ecx
jb 0x413d6e
mov esi, dword [ebp - 0x638]
push dword [ebp - 0x634]
call fcn.0042afb6
pop ecx
jmp 0x413e9e
push ebx
imul esi, esi, 0x28
push ebx
push ebx
push ebx
push 0x101
lea eax, [ebp - 0x62c]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x634]
push dword [esi + eax + 0xc]
call fcn.0043967a
lea eax, [ebp - 0x18]
push eax
mov esi, 0x104
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.00439aca
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.004391ef
lea eax, [ebp - 0x220]
push 0x5c
push eax
call fcn.00439299
add esp, 0x44
test eax, eax
je 0x413e24
cmp word [eax + 2], bx
je 0x413e39
push 0x44d8a8
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.004391ef
add esp, 0xc
lea esi, [ebp - 0x220]
mov dword [ebp - 0x638], esi
jmp 0x413da6
push 0x453e5c
push ebx
lea ecx, [ebp - 0x644]
call fcn.004211c1
mov ecx, eax
call fcn.0040b7cd
test eax, eax
jne 0x413f58
mov esi, 0x104
push esi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x44d8a8
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.004391ef
lea esi, [ebp - 0x220]
add esp, 0xc
mov dword [ebp - 0x638], esi
test esi, esi
je 0x413f58
push 0x3a
lea eax, [ebp - 0x65c]
push eax
push 1
lea ecx, [ebp - 0x644]
call fcn.004211c1
cmp dword [eax + 0x14], 8
jb 0x413ec4
mov eax, dword [eax]
push ecx
mov ecx, esp
push eax
call fcn.00406234
call fcn.0041954e
mov eax, dword [ebp - 0x658]
sub eax, dword [ebp - 0x65c]
add esp, 0xc
cdq
push 0x18
pop ecx
idiv ecx
mov esi, ebx
mov dword [ebp - 0x630], eax
test eax, eax
je 0x413f58
mov edi, dword [ebp - 0x638]
mov ebx, eax
push edi
lea eax, [ebp - 0x428]
push 0x104
push eax
call fcn.00439aca
add esp, 0xc
lea ecx, [ebp - 0x65c]
push esi
call fcn.004211c1
cmp dword [eax + 0x14], 8
jb 0x413f24
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x428]
push 0x104
push eax
call fcn.004391ef
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x68c]
call fcn.004310ac
inc esi
cmp esi, ebx
jb 0x413efb
mov edi, dword [ebp - 0x650]
xor ebx, ebx
lea ecx, [ebp - 0x65c]
call fcn.004052ea
lea ecx, [ebp - 0x644]
mov byte [ebp - 4], 3
call fcn.004052ea
push 0x18
pop esi
add edi, esi
mov dword [ebp - 0x650], edi
cmp edi, dword [ebp - 0x668]
jne 0x413bb8
lea ecx, [ebp - 0x68c]
call fcn.004316e1
test eax, eax
je 0x414005
push 0x179a
lea esi, [eax + eax]
push str.DevConFunc.cpp
push esi
call fcn.0042ae50
mov edi, dword [ebp - 0x660]
add esp, 0xc
mov dword [edi], eax
test eax, eax
jne 0x413fed
mov esi, dword [ebp - 0x660]
cmp dword [esi], 0
je 0x414008
push dword [esi]
call fcn.0042afb6
pop ecx
mov dword [esi], ebx
jmp 0x414008
lea ecx, [ebp - 0x65c]
call fcn.004052ea
lea ecx, [ebp - 0x644]
mov byte [ebp - 4], 3
call fcn.004052ea
jmp 0x413fba
push esi
lea ecx, [ebp - 0x68c]
call fcn.00431473
push eax
push esi
push dword [edi]
call fcn.004399ff
add esp, 0x10
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x68c]
mov byte [ebp - 4], 2
call fcn.00430fbe
mov ecx, dword [ebp - 0x670]
add ecx, 0xfffffff0
call fcn.00409a06
lea ecx, [ebp - 0x66c]
call fcn.004052ea
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00409a06
mov eax, ebx
call fcn.004386a6
ret