Function at 0x4017e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
mov ecx, edx
mov word [0x42c0dc], 0xf9de
cmp dword [0x42c07f], edx
jge 0x40180d
mov ecx, 0x17f
mov dword [0x42c064], edx
mov dword [0x42c07e], esi
mov byte [0x42c085], 0xb9
mov byte [0x42c0a9], 0x15
mov ebx, 0x10c
mov dword [0x42c0e7], edi
mov dword [ebp - 4], 0x12ba6
mov eax, 0x402058
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_RemovePropA
mov dword [0x42c109], edi
mov dword [0x42c0fc], edx
mov dword [0x42c0ad], 0x1573c
mov word [0x42c049], 0x981b
mov dword [0x42c048], ecx
mov ecx, edx
mov word [0x42c0dc], 0xf9de
cmp dword [0x42c07f], edx
jge 0x40188b
mov ecx, 0x17f
mov dword [0x42c064], edx
mov dword [0x42c07e], esi
mov byte [0x42c085], 0xb9
mov byte [0x42c0a9], 0x15
mov ebx, 0x10c
mov dword [0x42c0e7], edi
mov dword [ebp - 0xc], 0x14be3
mov eax, 0x402060
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_RemovePropA
test eax, eax
jne 0x401901
mov ecx, edx
mov word [0x42c0dc], 0xf9de
cmp dword [0x42c07f], edx
jge 0x4018e8
mov ecx, 0x17f
mov dword [0x42c064], edx
mov dword [0x42c07e], esi
mov byte [0x42c085], 0xb9
mov byte [0x42c0a9], 0x15
mov ebx, 0x10c
mov dword [0x42c0e7], edi
mov dword [ebp - 0x14], 0x34
mov eax, dword [0x42e4fc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetTempPathA
sub dword [0x42c0c6], ecx
lea edx, [0x42c0e1]
mov dword [edx], 0x11
mov dword [0x42c052], ebx
mov dword [0x42c0d2], edi
mov word [0x42c039], 0xaedc
call fcn.0040206c
mov dword [ebp - 0x1c], 0x1bc58
mov dword [ebp - 0x20], 0x16dfb
mov dword [ebp - 0x24], 0x1e24d
mov dword [ebp - 0x28], 0x1257b
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CreateIoCompletionPort
lea eax, [0x42c05e]
mov dword [eax], 0xf6
inc esi
mov dword [0x42c076], edx
mov byte [0x42c0ad], 0x15
dec edi
cmp byte [0x42c0df], bl
jle 0x4019a5
add dword [0x42c0d1], eax
mov eax, edi
mov dword [0x42c081], 0x1091a
lea ebx, [0x42c046]
mov dword [ebx], eax
lea esi, [0x42c0f9]
mov dword [esi], 0x4d
mov dword [0x42c0a5], edx
add ebx, dword [0x42c0e1]
mov dword [0x42c025], edx
mov byte [0x42c039], 0x86
cmp dword [0x42c0ea], 0
jge 0x4019f2
mov dword [0x42c07d], edi
dec edx
mov dword [0x42c0b9], ebx
lea esi, [0x42c0de]
mov dword [esi], 0x1d
add dword [0x42c014], edi
mov dword [0x42c03c], ecx
mov dword [ebp - 0x2c], 0x39
mov eax, dword [0x42e4fc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetTempPathA
mov ecx, edx
mov word [0x42c0dc], 0xf9de
cmp dword [0x42c07f], edx
jge 0x401a4a
mov ecx, 0x17f
mov dword [0x42c064], edx
mov dword [0x42c07e], esi
mov byte [0x42c085], 0xb9
mov byte [0x42c0a9], 0x15
mov ebx, 0x10c
mov dword [0x42c0e7], edi
call fcn.00401014
xchg dword [0x42c104], ebx
mov esi, dword [0x42c020]
mov dword [0x42c106], ecx
mov dword [0x42c065], eax
cmp byte [0x42c0a8], 0
jge 0x401a9f
lea ecx, [0x42c031]
mov dword [ecx], edx
mov dword [0x42c01b], ecx
mov dword [0x42c056], eax
jmp 0x401aaf
mov dword [0x42c0e5], 0x1021e
mov dword [0x42c0de], ecx
mov dword [0x42c0ac], ecx
mov dword [0x42c041], edi
cmp si, word [0x42c0c4]
jle 0x401ada
add dword [0x42c0fb], esi
mov dword [0x42c102], eax
dec edx
mov word [0x42c072], 0xcc25
mov byte [0x42c0ae], 0xdd
mov dword [0x42c041], 0x13d4b
mov dword [0x42c07f], ebx
mov dword [0x42c03d], esi
mov dword [ebp - 0x34], 0x70
mov eax, dword [0x42e4fc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_GetTempPathA
test eax, eax
jne 0x401b3c
mov dword [0x42c109], edi
mov dword [0x42c0fc], edx
mov dword [0x42c0ad], 0x1573c
mov word [0x42c049], 0x981b
mov dword [0x42c048], ecx
call fcn.00401014
mov dword [0x42c109], edi
mov dword [0x42c0fc], edx
mov dword [0x42c0ad], 0x1573c
mov word [0x42c049], 0x981b
mov dword [0x42c048], ecx
call fcn.00403160
cmp byte [0x42c0df], bl
jle 0x401b7b
add dword [0x42c0d1], eax
mov eax, edi
mov dword [0x42c081], 0x1091a
lea ebx, [0x42c046]
mov dword [ebx], eax
lea esi, [0x42c0f9]
mov dword [esi], 0x4d
mov dword [0x42c0a5], edx
add ebx, dword [0x42c0e1]
mov dword [0x42c025], edx
mov byte [0x42c039], 0x86
cmp dword [0x42c0ea], 0
jge 0x401bc8
mov dword [0x42c07d], edi
dec edx
mov dword [0x42c0b9], ebx
lea esi, [0x42c0de]
mov dword [esi], 0x1d
add dword [0x42c014], edi
mov dword [0x42c03c], ecx
mov dword [ebp - 0x3c], 0x13553
mov dword [ebp - 0x40], 0x148d9
mov dword [ebp - 0x44], 0x1c8f5
mov dword [ebp - 0x48], 0x19cd6
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_CreateIoCompletionPort
test eax, eax
je 0x401c5a
test ecx, ecx
je 0x401c21
mov dword [0x42c0a5], esi
jmp 0x401c3d
xchg dword [0x42c060], eax
mov dword [0x42c061], edi
mov dword [0x42c095], 0x14c92
mov dword [0x42c025], ebx
mov dword [0x42c0dd], edx
mov dword [0x42c075], 0x109cb
mov byte [0x42c0b4], 0xf8
mov eax, dword [0x42c077]
mov dword [ebp - 0x4c], 0x68
mov eax, dword [0x42e4fc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.kernel32.dll_GetTempPathA
test ecx, ecx
je 0x401c82
mov dword [0x42c0a5], esi
jmp 0x401c9e
xchg dword [0x42c060], eax
mov dword [0x42c061], edi
mov dword [0x42c095], 0x14c92
mov dword [0x42c025], ebx
mov dword [0x42c0dd], edx
mov dword [0x42c075], 0x109cb
mov byte [0x42c0b4], 0xf8
mov eax, dword [0x42c077]
mov dword [0x42c109], edi
mov dword [0x42c0fc], edx
mov dword [0x42c0ad], 0x1573c
mov word [0x42c049], 0x981b
mov dword [0x42c048], ecx
mov dword [ebp - 0x54], 0x5f
mov eax, dword [0x42e4fc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_GetTempPathA
test eax, eax
jne 0x401d27
sub dword [0x42c0c6], ecx
lea edx, [0x42c0e1]
mov dword [edx], 0x11
mov dword [0x42c052], ebx
mov dword [0x42c0d2], edi
mov word [0x42c039], 0xaedc
mov dword [ebp - 0x5c], 0x3e
mov eax, dword [0x42e4fc]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetTempPathA
test eax, eax
jne 0x401d7e
sub dword [0x42c065], ecx
mov eax, 0x5e
cmp byte [0x42c0ae], 0
jne 0x401d75
mov dword [0x42c043], ebx
mov word [0x42c109], 0x1219
mov esi, 0x57
mov dword [esp - 0x28], ebx
jmp 0x401d7a
mov eax, edx
and edi, 5
xchg dword [esp - 0xc], edx
push ebx
push 0x42c09f
call fcn.00401014
sub dword [0x42c065], ecx
mov eax, 0x5e
cmp byte [0x42c0ae], 0
jne 0x401db7
mov dword [0x42c043], ebx
mov word [0x42c109], 0x1219
mov esi, 0x57
mov dword [esp - 0x28], ebx
jmp 0x401dbc
mov eax, edx
and edi, 5
xchg dword [esp - 0xc], edx
mov dword [ebp - 0x64], 0x151ce
mov dword [ebp - 0x68], 0x1e597
mov dword [ebp - 0x6c], 0x1f718
mov dword [ebp - 0x70], 0x10d00
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CreateIoCompletionPort
test eax, eax
jne 0x401e1a
mov dword [0x42c109], edi
mov dword [0x42c0fc], edx
mov dword [0x42c0ad], 0x1573c
mov word [0x42c049], 0x981b
mov dword [0x42c048], ecx
push ecx
push esi
call fcn.00401014
mov eax, 0x42c065
call fcn.00401014
xchg dword [0x42c104], ebx
mov esi, dword [0x42c020]
mov dword [0x42c106], ecx
mov dword [0x42c065], eax
cmp byte [0x42c0a8], 0
jge 0x401e62
lea ecx, [0x42c031]
mov dword [ecx], edx
mov dword [0x42c01b], ecx
mov dword [0x42c056], eax
jmp 0x401e72
mov dword [0x42c0e5], 0x1021e
mov dword [0x42c0de], ecx
call fcn.0040329c
lea eax, [ebp - 0xbc]
push eax
call sub.kernel32.dll_GetStartupInfoA
mov dword [0x42c109], edi
mov dword [0x42c0fc], edx
mov dword [0x42c0ad], 0x1573c
mov word [0x42c049], 0x981b
mov dword [0x42c048], ecx
call fcn.00401014
mov ecx, edx
mov word [0x42c0dc], 0xf9de
cmp dword [0x42c07f], edx
jge 0x401ed1
mov ecx, 0x17f
mov dword [0x42c064], edx
mov dword [0x42c07e], esi
mov byte [0x42c085], 0xb9
mov byte [0x42c0a9], 0x15
mov ebx, 0x10c
mov dword [0x42c0e7], edi
call fcn.00401014
mov dword [0x42c0ac], ecx
mov dword [0x42c041], edi
cmp si, word [0x42c0c4]
jle 0x401f1a
add dword [0x42c0fb], esi
mov dword [0x42c102], eax
dec edx
mov word [0x42c072], 0xcc25
mov byte [0x42c0ae], 0xdd
mov dword [0x42c041], 0x13d4b
mov dword [0x42c07f], ebx
mov dword [0x42c03d], esi
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetStartupInfoA
mov ecx, edx
mov word [0x42c0dc], 0xf9de
cmp dword [0x42c07f], edx
jge 0x401f67
mov ecx, 0x17f
mov dword [0x42c064], edx
mov dword [0x42c07e], esi
mov byte [0x42c085], 0xb9
mov byte [0x42c0a9], 0x15
mov ebx, 0x10c
mov dword [0x42c0e7], edi
push eax
call fcn.00401014
lea eax, [0x42c05e]
mov dword [eax], 0xf6
inc esi
mov dword [0x42c076], edx
mov byte [0x42c0ad], 0x15
dec edi
call fcn.0040329c
mov dword [ebp - 0x74], 0x7d
mov eax, dword [0x42e4fc]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_GetTempPathA
test eax, eax
jne 0x402003
mov ecx, edx
mov word [0x42c0dc], 0xf9de
cmp dword [0x42c07f], edx
jge 0x401fea
mov ecx, 0x17f
mov dword [0x42c064], edx
mov dword [0x42c07e], esi
mov byte [0x42c085], 0xb9
mov byte [0x42c0a9], 0x15
mov ebx, 0x10c
mov dword [0x42c0e7], edi
test ecx, ecx
je 0x40200f
mov dword [0x42c0a5], esi
jmp 0x40202b
xchg dword [0x42c060], eax
mov dword [0x42c061], edi
mov dword [0x42c095], 0x14c92
mov dword [0x42c025], ebx
mov dword [0x42c0dd], edx
mov dword [0x42c075], 0x109cb
mov byte [0x42c0b4], 0xf8
mov eax, dword [0x42c077]
lea eax, [ebp - 0x144]
push eax
call sub.kernel32.dll_GetStartupInfoA
mov esp, ebp
pop ebp
ret