Function at 0x4082a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fdb3
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x42807c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x260], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x25c], esi
xor ecx, ecx
push eax
or eax, 0xffffffff
lea edi, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], cx
call fcn.00401390
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x258], 0x3f
cmp ecx, esi
jbe 0x408468
mov dword [ebp - 0x254], ecx
cmp ecx, 1
jb 0x408468
cmp dword [ebp - 0x220], 8
mov edi, dword [ebp - 0x234]
jae 0x408350
lea edi, [ebp - 0x234]
lea ebx, [ebx]
mov eax, edi
test ecx, ecx
je 0x408468
lea ebx, [ebx]
cmp word [eax], 0x3f
je 0x408371
add eax, 2
dec ecx
jne 0x408360
jmp 0x408468
test eax, eax
je 0x408468
mov esi, 1
lea edx, [ebp - 0x258]
mov ecx, eax
jmp 0x408390
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x408522
add ecx, 2
add edx, 2
dec esi
jne 0x408390
mov edx, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x234]
cmp edx, 8
jae 0x4083bc
lea ecx, [ebp - 0x234]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x408468
mov edi, dword [ebp - 0x224]
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x258], 0x3f
cmp edx, 8
jae 0x4083ea
lea eax, [ebp - 0x234]
mov dword [ebp - 0x254], eax
mov ecx, edi
test edi, edi
je 0x408406
cmp word [eax], 0x3f
je 0x408555
add eax, 2
dec ecx
jne 0x4083f6
or eax, 0xffffffff
mov edi, 8
push eax
xor ecx, ecx
lea eax, [ebp - 0x250]
lea edx, [ebp - 0x234]
call fcn.00405010
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], edi
jb 0x40842d
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x408432
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x234]
call fcn.00401540
mov byte [ebp - 4], 0
cmp dword [ebp - 0x23c], edi
jb 0x408468
mov eax, dword [ebp - 0x250]
push eax
call fcn.0040ed52
add esp, 4
lea ecx, [ebp - 0x234]
push ecx
lea edi, [ebp - 0x258]
mov dword [ebp - 0x258], 0x2f
call fcn.0040b570
cmp eax, 0xffffffff
je 0x4084cc
lea ecx, [eax + 1]
push 0xffffffffffffffff
lea eax, [ebp - 0x250]
lea edx, [ebp - 0x234]
call fcn.00405010
mov edi, eax
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.00401320
mov byte [ebp - 4], 0
cmp dword [ebp - 0x23c], 8
jb 0x4084cc
mov edx, dword [ebp - 0x250]
push edx
call fcn.0040ed52
add esp, 4
mov eax, dword [ebp - 0x224]
cmp eax, 4
jb 0x4085ca
lea ecx, [eax - 4]
push 0xffffffffffffffff
lea eax, [ebp - 0x250]
lea edx, [ebp - 0x234]
call fcn.00405010
mov ecx, eax
mov byte [ebp - 4], 3
mov eax, dword [ecx + 0x10]
push str..exe
mov edi, 4
mov dword [ebp - 0x25c], 1
call fcn.004068c0
test eax, eax
jne 0x4085ca
xor bl, bl
jmp 0x4085cc
mov cx, word [ecx]
cmp cx, word [edx]
sbb edx, edx
and edx, 0xfffffffe
inc edx
je 0x4083a5
mov ecx, eax
sub ecx, edi
sar ecx, 1
or edx, 0xffffffff
sub edx, ecx
mov ecx, dword [ebp - 0x254]
add ecx, edx
mov dword [ebp - 0x254], ecx
lea edi, [eax + 2]
jmp 0x408350
test eax, eax
je 0x408406
mov esi, 1
lea edx, [ebp - 0x258]
mov ecx, eax
lea ebx, [ebx]
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x4085a3
add ecx, 2
add edx, 2
dec esi
jne 0x408570
mov ecx, dword [ebp - 0x234]
mov edi, 8
cmp dword [ebp - 0x220], edi
jae 0x40859a
lea ecx, [ebp - 0x234]
sub eax, ecx
sar eax, 1
jmp 0x40840e
mov cx, word [ecx]
cmp cx, word [edx]
sbb edx, edx
and edx, 0xfffffffe
inc edx
je 0x408581
mov ecx, eax
sub ecx, dword [ebp - 0x254]
or edx, 0xffffffff
sar ecx, 1
sub edx, ecx
add edi, edx
add eax, 2
jmp 0x4083ea
mov bl, 1
xor edi, edi
mov dword [ebp - 4], edi
test byte [ebp - 0x25c], 1
je 0x4085f2
cmp dword [ebp - 0x23c], 8
jb 0x4085f2
mov eax, dword [ebp - 0x250]
push eax
call fcn.0040ed52
add esp, 4
test bl, bl
je 0x408608
push 4
mov eax, str..exe
lea ecx, [ebp - 0x234]
call fcn.00402bd0
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x218], cx
call fcn.00412f10
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40864d
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0040fd51
mov esi, dword [ebp - 0x260]
add esp, 0xc
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
lea eax, [ebp - 0x218]
mov word [esi], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408680
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
call fcn.00401540
cmp dword [ebp - 0x220], 8
jb 0x4086b5
mov eax, dword [ebp - 0x234]
push eax
call fcn.0040ed52
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ed5d
mov esp, ebp
pop ebp
ret