Function at 0x402860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416467
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x423028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x36c], edi
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 1
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
lea eax, [ebp - 0x118]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
mov edx, dword [ebp + 0x1c]
cmp edx, 3
jae 0x4029f4
mov ax, word [0x417260]
mov esi, 3
mov dword [ebp - 0x268], 0
mov word [ebp - 0x268], ax
mov al, byte [0x417262]
mov dword [ebp - 0x254], 0xf
mov dword [ebp - 0x258], esi
mov byte [ebp - 0x266], al
mov byte [ebp - 0x265], 0
mov ecx, esi
mov dword [ebp - 0x238], 0
sub ecx, edx
mov byte [ebp - 4], 2
cmp esi, ecx
mov dword [ebp - 0x228], 0
lea eax, [ebp - 0x268]
mov dword [ebp - 0x224], 0xf
cmovb ecx, esi
mov byte [ebp - 0x238], 0
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00401d40
cmp dword [ebp - 0x224], 0x10
lea eax, [ebp - 0x238]
push dword [ebp - 0x228]
cmovae eax, dword [ebp - 0x238]
lea ecx, [ebp + 0xc]
push eax
mov byte [ebp - 4], 3
call fcn.00403770
mov edx, dword [ebp - 0x224]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x4029b6
mov ecx, dword [ebp - 0x238]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4029ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e66
push edx
push ecx
call fcn.00403d14
add esp, 8
mov edx, dword [ebp - 0x254]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x4029f4
mov ecx, dword [ebp - 0x268]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4029ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e66
push edx
push ecx
call fcn.00403d14
add esp, 8
cmp dword [ebp + 0x20], 0x10
lea ecx, [ebp - 0x220]
push ecx
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push 0
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x402b1d
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x254], 0xf
mov dword [ebp - 0x258], eax
mov byte [ebp - 0x268], al
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 4
push eax
mov ecx, edi
call fcn.004023b0
mov edx, dword [ebp - 0x254]
cmp edx, 0x10
jb 0x402a86
mov ecx, dword [ebp - 0x268]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402a7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e66
push edx
push ecx
call fcn.00403d14
add esp, 8
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x402aba
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402ab0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e66
push edx
push ecx
call fcn.00403d14
add esp, 8
mov edx, dword [ebp + 0x38]
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0xf
mov byte [ebp + 0xc], 0
cmp edx, 0x10
jb 0x402b00
mov ecx, dword [ebp + 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402af6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e66
push edx
push ecx
call fcn.00403d14
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403d22
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x240], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x23c], 0xf
mov byte [ebp - 0x250], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402b50
sub ecx, edx
lea eax, [ebp - 0x220]
push ecx
push eax
lea ecx, [ebp - 0x250]
call fcn.00401d40
cmp dword [ebp + 0x34], 0
mov byte [ebp - 4], 5
jbe 0x402d8f
cmp dword [ebp - 0x23c], 0x10
lea esi, [ebp - 0x250]
cmovae esi, dword [ebp - 0x250]
cmp dword [ebp - 0x240], 0
je 0x402d8f
push 0x100
lea eax, [ebp - 0x368]
push 0
push eax
call fcn.00405740
add esp, 0xc
mov ecx, str..TMP
nop word [eax + eax]
movzx eax, byte [ecx]
inc ecx
mov byte [ebp + eax - 0x368], 1
cmp ecx, 0x417268
jne 0x402bc0
mov edx, dword [ebp - 0x240]
or ecx, 0xffffffff
lea eax, [edx - 1]
cmp eax, ecx
cmovb ecx, eax
movzx eax, byte [ecx + esi]
add ecx, esi
mov al, byte [ebp + eax - 0x368]
test al, al
jne 0x402c0e
cmp ecx, esi
je 0x402d8f
movzx eax, byte [ecx - 1]
dec ecx
mov al, byte [ebp + eax - 0x368]
test al, al
je 0x402bf6
sub ecx, esi
cmp ecx, 0xffffffff
je 0x402d8f
dec ecx
mov dword [ebp - 0x238], 0
cmp edx, ecx
mov dword [ebp - 0x228], 0
lea eax, [ebp - 0x250]
mov dword [ebp - 0x224], 0xf
cmovb ecx, edx
mov byte [ebp - 0x238], 0
cmp dword [ebp - 0x23c], 0x10
push ecx
cmovae eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x238]
push eax
call fcn.00401d40
push 0x2e
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 6
call fcn.004038d0
movups xmm0, xmmword [ebp - 0x238]
mov byte [ebp - 0x238], 0
movups xmmword [ebp - 0x268], xmm0
movq xmm0, qword [ebp - 0x228]
movq qword [ebp - 0x258], xmm0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0xf
cmp dword [ebp + 0x38], 0x10
lea eax, [ebp + 0x24]
push dword [ebp + 0x34]
cmovae eax, dword [ebp + 0x24]
lea ecx, [ebp - 0x268]
push eax
mov byte [ebp - 4], 7
call fcn.00403770
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x23c]
movq qword [ebp - 0x370], xmm1
movups xmmword [ebp - 0x230], xmm0
cmp edx, 0x10
jb 0x402d3e
mov ecx, dword [ebp - 0x250]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402d25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e6b
push edx
push ecx
call fcn.00403d14
movups xmm0, xmmword [ebp - 0x230]
add esp, 8
movq xmm1, qword [ebp - 0x370]
mov edx, dword [ebp - 0x254]
movq qword [ebp - 0x240], xmm1
mov byte [ebp - 4], 6
movups xmmword [ebp - 0x250], xmm0
cmp edx, 0x10
jb 0x402d8b
mov ecx, dword [ebp - 0x268]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402d81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e6b
push edx
push ecx
call fcn.00403d14
add esp, 8
mov byte [ebp - 4], 5
lea eax, [ebp - 0x250]
mov ecx, edi
push eax
call fcn.004023b0
mov edx, dword [ebp - 0x23c]
cmp edx, 0x10
jb 0x402dd7
mov ecx, dword [ebp - 0x250]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402dcd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e66
push edx
push ecx
call fcn.00403d14
add esp, 8
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0xf
mov byte [ebp - 0x250], 0
cmp edx, 0x10
jb 0x402e22
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402e18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e66
push edx
push ecx
call fcn.00403d14
add esp, 8
mov edx, dword [ebp + 0x38]
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0xf
mov byte [ebp + 0xc], 0
cmp edx, 0x10
jb 0x402b00
mov ecx, dword [ebp + 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402af6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402af6
call fcn.00406f9f
call fcn.00406f9f
int3