Function at 0x4021c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd74
xchg dword [0x42c104], ebx
mov esi, dword [0x42c020]
mov dword [0x42c106], ecx
mov dword [0x42c065], eax
cmp byte [0x42c0a8], 0
jge 0x402200
lea ecx, [0x42c031]
mov dword [ecx], edx
mov dword [0x42c01b], ecx
mov dword [0x42c056], eax
jmp 0x402210
mov dword [0x42c0e5], 0x1021e
mov dword [0x42c0de], ecx
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 - 4], 0x179bc
mov eax, 0x402d6c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_RemovePropA
xchg dword [0x42c104], ebx
mov esi, dword [0x42c020]
mov dword [0x42c106], ecx
mov dword [0x42c065], eax
cmp byte [0x42c0a8], 0
jge 0x40228a
lea ecx, [0x42c031]
mov dword [ecx], edx
mov dword [0x42c01b], ecx
mov dword [0x42c056], eax
jmp 0x40229a
mov dword [0x42c0e5], 0x1021e
mov dword [0x42c0de], ecx
call fcn.004020a0
mov dword [ebp - 0xc], 0x2a
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
je 0x4022e4
mov dword [0x42c109], edi
mov dword [0x42c0fc], edx
mov dword [0x42c0ad], 0x1573c
mov word [0x42c049], 0x981b
mov dword [0x42c048], ecx
lea eax, [ebp - 0xf4]
push eax
call sub.kernel32.dll_GetStartupInfoA
call fcn.00404610
mov dword [0x42c0ac], ecx
mov dword [0x42c041], edi
cmp si, word [0x42c0c4]
jle 0x402320
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 - 0x14], 0x56
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 [0x42c109], edi
mov dword [0x42c0fc], edx
mov dword [0x42c0ad], 0x1573c
mov word [0x42c049], 0x981b
mov dword [0x42c048], ecx
push edx
push edx
call fcn.00404610
mov ecx, edx
mov word [0x42c0dc], 0xf9de
cmp dword [0x42c07f], edx
jge 0x4023a9
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
lea eax, [ebp - 0x138]
push eax
call sub.kernel32.dll_GetStartupInfoA
test ecx, ecx
je 0x4023da
mov dword [0x42c0a5], esi
jmp 0x4023f6
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]
call fcn.0040206c
mov dword [ebp - 0x1c], 0x17
mov eax, dword [0x42e4fc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetTempPathA
test eax, eax
je 0x40246f
sub dword [0x42c065], ecx
mov eax, 0x5e
cmp byte [0x42c0ae], 0
jne 0x402466
mov dword [0x42c043], ebx
mov word [0x42c109], 0x1219
mov esi, 0x57
mov dword [esp - 0x28], ebx
jmp 0x40246b
mov eax, edx
and edi, 5
xchg dword [esp - 0xc], edx
mov dword [ebp - 0x24], 0x1a760
mov dword [ebp - 0x28], 0x18508
mov dword [ebp - 0x2c], 0x1b12d
mov dword [ebp - 0x30], 0x1c68e
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
jne 0x4024c9
mov dword [0x42c109], edi
mov dword [0x42c0fc], edx
mov dword [0x42c0ad], 0x1573c
mov word [0x42c049], 0x981b
mov dword [0x42c048], ecx
xchg dword [0x42c104], ebx
mov esi, dword [0x42c020]
mov dword [0x42c106], ecx
mov dword [0x42c065], eax
cmp byte [0x42c0a8], 0
jge 0x402500
lea ecx, [0x42c031]
mov dword [ecx], edx
mov dword [0x42c01b], ecx
mov dword [0x42c056], eax
jmp 0x402510
mov dword [0x42c0e5], 0x1021e
mov dword [0x42c0de], ecx
lea eax, [ebp - 0x17c]
push eax
call sub.kernel32.dll_GetStartupInfoA
call fcn.00404610
test ecx, ecx
je 0x40252d
mov dword [0x42c0a5], esi
jmp 0x402549
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]
call fcn.00403160
cmp byte [0x42c0df], bl
jle 0x40257b
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 0x4025c8
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 - 0x34], 0x10f31
mov dword [ebp - 0x38], 0x1ce12
mov dword [ebp - 0x3c], 0x16b5b
mov dword [ebp - 0x40], 0x179e6
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_CreateIoCompletionPort
test ecx, ecx
je 0x40261d
mov dword [0x42c0a5], esi
jmp 0x402639
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 - 0x1c0]
push eax
call sub.kernel32.dll_GetStartupInfoA
mov ecx, edx
mov word [0x42c0dc], 0xf9de
cmp dword [0x42c07f], edx
jge 0x402686
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 - 0x44], 0x1ab49
mov dword [ebp - 0x48], 0x17fd8
mov dword [ebp - 0x4c], 0x10ece
mov dword [ebp - 0x50], 0x1b0b7
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
test eax, eax
jne 0x402749
cmp byte [0x42c0df], bl
jle 0x4026e4
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 0x402731
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 - 0x204]
push eax
call sub.kernel32.dll_GetStartupInfoA
cmp byte [0x42c0df], bl
jle 0x402765
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 0x4027b2
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], 0x19b36
mov eax, 0x402d80
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x54]
push eax
call sub.user32.dll_RemovePropA
test eax, eax
jne 0x402805
lea eax, [0x42c05e]
mov dword [eax], 0xf6
inc esi
mov dword [0x42c076], edx
mov byte [0x42c0ad], 0x15
dec edi
lea eax, [ebp - 0x248]
push eax
call sub.kernel32.dll_GetStartupInfoA
xchg dword [0x42c104], ebx
mov esi, dword [0x42c020]
mov dword [0x42c106], ecx
mov dword [0x42c065], eax
cmp byte [0x42c0a8], 0
jge 0x402848
lea ecx, [0x42c031]
mov dword [ecx], edx
mov dword [0x42c01b], ecx
mov dword [0x42c056], eax
jmp 0x402858
mov dword [0x42c0e5], 0x1021e
mov dword [0x42c0de], ecx
test ecx, ecx
je 0x402864
mov dword [0x42c0a5], esi
jmp 0x402880
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 - 0x28c]
push eax
call sub.kernel32.dll_GetStartupInfoA
sub dword [0x42c065], ecx
mov eax, 0x5e
cmp byte [0x42c0ae], 0
jne 0x4028d7
mov dword [0x42c043], ebx
mov word [0x42c109], 0x1219
mov esi, 0x57
mov dword [esp - 0x28], ebx
jmp 0x4028dc
mov eax, edx
and edi, 5
xchg dword [esp - 0xc], edx
mov dword [ebp - 0x5c], 0x110e8
mov eax, 0x402d8c
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.user32.dll_RemovePropA
push ebx
push ecx
mov edx, 0x42c08a
call fcn.004017e0
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 0x40293d
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 0x40298a
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 - 0x64], 0x76
mov eax, dword [0x42e4fc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_GetTempPathA
test eax, eax
jne 0x402a0a
mov dword [0x42c0ac], ecx
mov dword [0x42c041], edi
cmp si, word [0x42c0c4]
jle 0x4029ed
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.004017e0
mov ecx, edx
mov word [0x42c0dc], 0xf9de
cmp dword [0x42c07f], edx
jge 0x402a33
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 - 0x6c], 0x1b66e
mov eax, 0x402d9c
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x6c]
push eax
call sub.user32.dll_RemovePropA
sub dword [0x42c065], ecx
mov eax, 0x5e
cmp byte [0x42c0ae], 0
jne 0x402a96
mov dword [0x42c043], ebx
mov word [0x42c109], 0x1219
mov esi, 0x57
mov dword [esp - 0x28], ebx
jmp 0x402a9b
mov eax, edx
and edi, 5
xchg dword [esp - 0xc], edx
mov dword [ebp - 0x74], 0x3b
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 0x402b34
cmp byte [0x42c0df], bl
jle 0x402acf
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 0x402b1c
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 - 0x7c], 0x138e0
mov dword [ebp - 0x80], 0x190c8
mov dword [ebp - 0x84], 0x1fb57
mov dword [ebp - 0x88], 0x13906
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 0x402b76
push esi
call fcn.004017e0
mov ecx, edx
mov word [0x42c0dc], 0xf9de
cmp dword [0x42c07f], edx
jge 0x402b9f
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.00403160
mov dword [ebp - 0x8c], 0x17261
mov eax, 0x402dac
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x8c]
push eax
call sub.user32.dll_RemovePropA
test eax, eax
jne 0x402bf8
push 0x42c030
push 0x42c044
push 0x42c0e1
call fcn.004017e0
xchg dword [0x42c104], ebx
mov esi, dword [0x42c020]
mov dword [0x42c106], ecx
mov dword [0x42c065], eax
cmp byte [0x42c0a8], 0
jge 0x402c34
lea ecx, [0x42c031]
mov dword [ecx], edx
mov dword [0x42c01b], ecx
mov dword [0x42c056], eax
jmp 0x402c44
mov dword [0x42c0e5], 0x1021e
mov dword [0x42c0de], ecx
call fcn.004020a0
mov dword [ebp - 0x94], 0x1472d
mov eax, 0x402db0
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x94]
push eax
call sub.user32.dll_RemovePropA
test eax, eax
jne 0x402cb2
mov ecx, edx
mov word [0x42c0dc], 0xf9de
cmp dword [0x42c07f], edx
jge 0x402c99
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 - 0x9c], 0x17332
mov dword [ebp - 0xa0], 0x1d393
mov dword [ebp - 0xa4], 0x17f62
mov dword [ebp - 0xa8], 0x19e84
mov eax, dword [ebp - 0xa8]
push eax
mov eax, dword [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0x9c]
push eax
call sub.kernel32.dll_CreateIoCompletionPort
sub dword [0x42c065], ecx
mov eax, 0x5e
cmp byte [0x42c0ae], 0
jne 0x402d29
mov dword [0x42c043], ebx
mov word [0x42c109], 0x1219
mov esi, 0x57
mov dword [esp - 0x28], ebx
jmp 0x402d2e
mov eax, edx
and edi, 5
xchg dword [esp - 0xc], edx
mov dword [ebp - 0xac], 0x19
mov eax, dword [0x42e4fc]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
push eax
mov eax, dword [ebp - 0xac]
push eax
call sub.kernel32.dll_GetTempPathA
mov eax, 0x42c0c1
push eax
call fcn.00401014
mov esp, ebp
pop ebp
ret