Function at 0x401014
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
xchg dword [0x42c104], ebx
mov esi, dword [0x42c020]
mov dword [0x42c106], ecx
mov dword [0x42c065], eax
cmp byte [0x42c0a8], 0
jge 0x401054
lea ecx, [0x42c031]
mov dword [ecx], edx
mov dword [0x42c01b], ecx
mov dword [0x42c056], eax
jmp 0x401064
mov dword [0x42c0e5], 0x1021e
mov dword [0x42c0de], ecx
mov dword [ebp - 4], 0x1d143
mov eax, 0x4017b0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_RemovePropA
test eax, eax
je 0x4010cb
xchg dword [0x42c104], ebx
mov esi, dword [0x42c020]
mov dword [0x42c106], ecx
mov dword [0x42c065], eax
cmp byte [0x42c0a8], 0
jge 0x4010bb
lea ecx, [0x42c031]
mov dword [ecx], edx
mov dword [0x42c01b], ecx
mov dword [0x42c056], eax
jmp 0x4010cb
mov dword [0x42c0e5], 0x1021e
mov dword [0x42c0de], ecx
call fcn.00403160
lea eax, [ebp - 0xcc]
push eax
call sub.kernel32.dll_GetStartupInfoA
mov dword [0x42c0ac], ecx
mov dword [0x42c041], edi
cmp si, word [0x42c0c4]
jle 0x401107
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
call fcn.0040206c
mov dword [ebp - 0xc], 0x2f
mov eax, dword [0x42e4fc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetTempPathA
test eax, eax
jne 0x401164
lea eax, [0x42c05e]
mov dword [eax], 0xf6
inc esi
mov dword [0x42c076], edx
mov byte [0x42c0ad], 0x15
dec edi
call fcn.00403160
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_GetStartupInfoA
lea eax, [0x42c05e]
mov dword [eax], 0xf6
inc esi
mov dword [0x42c076], edx
mov byte [0x42c0ad], 0x15
dec edi
mov dword [ebp - 0x14], 0x1e
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
mov dword [0x42c0ac], ecx
mov dword [0x42c041], edi
cmp si, word [0x42c0c4]
jle 0x4011d7
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 - 0x154]
push eax
call sub.kernel32.dll_GetStartupInfoA
sub dword [0x42c0c6], ecx
lea edx, [0x42c0e1]
mov dword [edx], 0x11
mov dword [0x42c052], ebx
mov dword [0x42c0d2], edi
mov word [0x42c039], 0xaedc
sub dword [0x42c065], ecx
mov eax, 0x5e
cmp byte [0x42c0ae], 0
jne 0x401255
mov dword [0x42c043], ebx
mov word [0x42c109], 0x1219
mov esi, 0x57
mov dword [esp - 0x28], ebx
jmp 0x40125a
mov eax, edx
and edi, 5
xchg dword [esp - 0xc], edx
mov dword [ebp - 0x1c], 0x1c3b0
mov eax, 0x4017c0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_RemovePropA
test eax, eax
je 0x401299
lea eax, [0x42c05e]
mov dword [eax], 0xf6
inc esi
mov dword [0x42c076], edx
mov byte [0x42c0ad], 0x15
dec edi
mov dword [ebp - 0x24], 0x13fee
mov dword [ebp - 0x28], 0x18882
mov dword [ebp - 0x2c], 0x1d2cf
mov dword [ebp - 0x30], 0x137b9
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CreateIoCompletionPort
test eax, eax
je 0x401313
test ecx, ecx
je 0x4012da
mov dword [0x42c0a5], esi
jmp 0x4012f6
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 - 0x34], 0x1eebb
mov eax, 0x4017cc
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.user32.dll_RemovePropA
test eax, eax
jne 0x40136a
sub dword [0x42c065], ecx
mov eax, 0x5e
cmp byte [0x42c0ae], 0
jne 0x401361
mov dword [0x42c043], ebx
mov word [0x42c109], 0x1219
mov esi, 0x57
mov dword [esp - 0x28], ebx
jmp 0x401366
mov eax, edx
and edi, 5
xchg dword [esp - 0xc], edx
mov dword [ebp - 0x3c], 0x68
mov eax, dword [0x42e4fc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_GetTempPathA
test eax, eax
jne 0x4013af
mov dword [0x42c109], edi
mov dword [0x42c0fc], edx
mov dword [0x42c0ad], 0x1573c
mov word [0x42c049], 0x981b
mov dword [0x42c048], ecx
cmp byte [0x42c0df], bl
jle 0x4013bf
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 0x40140c
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
lea eax, [ebp - 0x198]
push eax
call sub.kernel32.dll_GetStartupInfoA
sub dword [0x42c065], ecx
mov eax, 0x5e
cmp byte [0x42c0ae], 0
jne 0x40145e
mov dword [0x42c043], ebx
mov word [0x42c109], 0x1219
mov esi, 0x57
mov dword [esp - 0x28], ebx
jmp 0x401463
mov eax, edx
and edi, 5
xchg dword [esp - 0xc], edx
lea eax, [ebp - 0x1dc]
push eax
call sub.kernel32.dll_GetStartupInfoA
lea eax, [0x42c05e]
mov dword [eax], 0xf6
inc esi
mov dword [0x42c076], edx
mov byte [0x42c0ad], 0x15
dec edi
mov dword [0x42c0ac], ecx
mov dword [0x42c041], edi
cmp si, word [0x42c0c4]
jle 0x4014b9
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 - 0x44], 0x1404b
mov dword [ebp - 0x48], 0x17018
mov dword [ebp - 0x4c], 0x1d7d4
mov dword [ebp - 0x50], 0x19722
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x44]
push eax
call sub.kernel32.dll_CreateIoCompletionPort
cmp byte [0x42c0df], bl
jle 0x401517
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 0x401564
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 - 0x54], 0x19
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 0x4015c3
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.0040329c
mov dword [ebp - 0x5c], 0x1fae9
mov dword [ebp - 0x60], 0x18c4c
mov dword [ebp - 0x64], 0x18140
mov dword [ebp - 0x68], 0x1e0a4
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CreateIoCompletionPort
test eax, eax
jne 0x401645
mov dword [0x42c0ac], ecx
mov dword [0x42c041], edi
cmp si, word [0x42c0c4]
jle 0x401628
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 - 0x6c], 0x1319e
mov eax, 0x4017d8
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x6c]
push eax
call sub.user32.dll_RemovePropA
test eax, eax
je 0x4016a2
mov ecx, edx
mov word [0x42c0dc], 0xf9de
cmp dword [0x42c07f], edx
jge 0x401689
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 [0x42c0ac], ecx
mov dword [0x42c041], edi
cmp si, word [0x42c0c4]
jle 0x4016cd
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 - 0x74], 0x52
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
je 0x401725
lea eax, [0x42c05e]
mov dword [eax], 0xf6
inc esi
mov dword [0x42c076], edx
mov byte [0x42c0ad], 0x15
dec edi
mov dword [ebp - 0x7c], 0x17a13
mov dword [ebp - 0x80], 0x17433
mov dword [ebp - 0x84], 0x13216
mov dword [ebp - 0x88], 0x12421
mov eax, dword [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_CreateIoCompletionPort
test eax, eax
jne 0x40179d
sub dword [0x42c065], ecx
mov eax, 0x5e
cmp byte [0x42c0ae], 0
jne 0x401794
mov dword [0x42c043], ebx
mov word [0x42c109], 0x1219
mov esi, 0x57
mov dword [esp - 0x28], ebx
jmp 0x401799
mov eax, edx
and edi, 5
xchg dword [esp - 0xc], edx
lea eax, [ebp - 0x220]
push eax
call sub.kernel32.dll_GetStartupInfoA
mov esp, ebp
pop ebp
ret