Function at 0x4083d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4282bc
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x43400c]
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, edx
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x224], 0
push eax
push 0x42f26c
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call fcn.00409290
lea ecx, [ebp - 0x4f8]
mov dword [ebp - 4], 0
call fcn.00403bc0
mov byte [ebp - 4], 1
cmp esi, 2
jle 0x4084b1
mov eax, dword [edi + 4]
mov ecx, 0x42f270
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408478
test dx, dx
je 0x408474
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408478
add eax, 4
add ecx, 4
test dx, dx
jne 0x408452
xor eax, eax
jmp 0x40847d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4084b1
mov edx, dword [edi + 8]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408490
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.00409290
jmp 0x408dbd
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x7ffffffe
test eax, eax
je 0x4087bd
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4084e0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.00409290
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x500], edx
test edx, edx
je 0x4087fd
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x234]
mov edi, dword [ebp - 0x234]
cmp ecx, 8
mov dword [ebp - 0x504], ecx
cmovae eax, edi
cmp word [eax + edx*2 - 2], 0x5c
je 0x4086e0
cmp edx, ecx
jae 0x408565
lea eax, [edx + 1]
cmp ecx, 8
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x234]
cmovae eax, edi
mov dword [eax + edx*2], 0x5c
jmp 0x4086de
mov eax, 0x7ffffffe
sub eax, edx
cmp eax, 1
jb 0x408e6c
lea esi, [edx + 1]
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x40858a
mov esi, 0x7ffffffe
jmp 0x4085a8
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4085a0
mov esi, 0x7ffffffe
jmp 0x4085a8
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea edx, [eax + eax]
mov dword [ebp - 0x4fc], edx
mov edx, dword [ebp - 0x500]
cmp eax, 0x7fffffff
jbe 0x4085cc
or eax, 0xffffffff
mov dword [ebp - 0x4fc], eax
jmp 0x4085d9
mov eax, dword [ebp - 0x4fc]
cmp eax, 0x1000
jb 0x40861a
add eax, 0x23
mov ecx, 0xffffffff
cmp eax, dword [ebp - 0x4fc]
cmovbe eax, ecx
push eax
call fcn.004102ca
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x408e71
mov edx, dword [ebp - 0x500]
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov edi, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x504]
jmp 0x40863d
test eax, eax
je 0x40863b
push eax
call fcn.004102ca
mov edi, dword [ebp - 0x234]
add esp, 4
mov edx, dword [ebp - 0x500]
mov ecx, dword [ebp - 0x504]
jmp 0x40863d
xor eax, eax
mov dword [ebp - 0x4fc], eax
lea eax, [edx + 1]
mov dword [ebp - 0x220], esi
lea esi, [edx + edx]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x4fc]
push esi
cmp ecx, 8
jb 0x4086bb
push edi
push eax
call fcn.004137c0
mov eax, dword [ebp - 0x4fc]
add esp, 0xc
mov dword [esi + eax], 0x5c
mov eax, dword [ebp - 0x504]
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x4086a3
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x408e71
mov edi, edx
push ecx
push edi
call fcn.004103f8
mov eax, dword [ebp - 0x4fc]
add esp, 8
mov dword [ebp - 0x234], eax
jmp 0x4086e0
lea ecx, [ebp - 0x234]
push ecx
push eax
call fcn.004137c0
mov eax, dword [ebp - 0x4fc]
add esp, 0xc
mov dword [esi + eax], 0x5c
mov dword [ebp - 0x234], eax
xor ecx, ecx
push ecx
lea ecx, [ebp - 0x234]
call fcn.0040d646
add esp, 4
test al, al
je 0x4087b8
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x24c]
call fcn.0040f0c3
push 0x42f278
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004093d0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x260], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x234]
movq qword [ebp - 0x514], xmm0
call fcn.00408fc0
movups xmm0, xmmword [ebp - 0x260]
movups xmmword [ebp - 0x234], xmm0
movq xmm0, qword [ebp - 0x514]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x238]
movq qword [ebp - 0x224], xmm0
cmp edx, 8
jb 0x408dbd
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4087a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408e71
push edx
push ecx
call fcn.004103f8
add esp, 8
jmp 0x408dbd
mov edi, 0x7ffffffe
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x500], edx
cmp edx, 0x10000
jb 0x4087fd
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
mov dword [ebp - 0x224], 0x10000
cmovae eax, dword [ebp - 0x234]
xor ecx, ecx
mov word [eax + 0x20000], cx
jmp 0x4089e8
mov ecx, dword [ebp - 0x220]
mov esi, 0x10000
mov eax, ecx
mov dword [ebp - 0x504], ecx
sub esi, edx
sub eax, edx
mov dword [ebp - 0x508], esi
cmp esi, eax
ja 0x408866
cmp ecx, 8
mov dword [ebp - 0x224], 0x10000
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
mov dword [ebp - 0x510], eax
lea edi, [eax + edx*2]
test esi, esi
je 0x408852
xor eax, eax
mov ecx, esi
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, dword [ebp - 0x510]
lea eax, [edx + esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x4089e8
mov eax, edi
sub eax, edx
cmp eax, esi
jb 0x408e76
mov esi, ecx
mov eax, edi
shr esi, 1
sub eax, esi
cmp ecx, eax
jbe 0x408885
mov esi, 0x7ffffffe
jmp 0x408892
lea eax, [ecx + esi]
mov esi, 0x10007
cmp eax, esi
cmova esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x4088a4
or ecx, 0xffffffff
jmp 0x4088ac
cmp ecx, 0x1000
jb 0x4088db
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.004102ca
add esp, 4
test eax, eax
je 0x408e71
mov edx, dword [ebp - 0x500]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4088fa
test ecx, ecx
je 0x4088f8
push ecx
call fcn.004102ca
mov edx, dword [ebp - 0x500]
add esp, 4
mov edi, eax
mov dword [ebp - 0x4fc], eax
jmp 0x408900
xor edi, edi
mov dword [ebp - 0x4fc], edi
cmp dword [ebp - 0x504], 8
mov dword [ebp - 0x220], esi
lea esi, [edx + edx]
mov dword [ebp - 0x224], 0x10000
push esi
jb 0x4089a3
mov eax, dword [ebp - 0x234]
push eax
push edi
mov dword [ebp - 0x50c], eax
call fcn.004137c0
mov edx, dword [ebp - 0x508]
add esp, 0xc
add esi, edi
test edx, edx
je 0x408958
xor eax, eax
mov ecx, edx
shr ecx, 1
mov edi, esi
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x4fc]
mov eax, dword [ebp - 0x500]
xor ecx, ecx
add eax, edx
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x504]
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x50c]
cmp ecx, 0x1000
jb 0x408997
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408e71
mov eax, edx
push ecx
push eax
call fcn.004103f8
add esp, 8
jmp 0x4089e2
lea eax, [ebp - 0x234]
push eax
push edi
call fcn.004137c0
mov edx, dword [ebp - 0x508]
add esp, 0xc
add esi, edi
test edx, edx
je 0x4089d4
xor eax, eax
mov ecx, edx
shr ecx, 1
mov edi, esi
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x4fc]
mov eax, dword [ebp - 0x500]
add eax, edx
xor ecx, ecx
mov word [edi + eax*2], cx
mov dword [ebp - 0x234], edi
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
push dword [ebp - 0x224]
cmovae eax, dword [ebp - 0x234]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, eax
mov dword [ebp - 0x510], edi
test edi, edi
jne 0x408a30
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
jmp 0x408dae
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x4fc], ecx
cmp edi, ecx
ja 0x408a6b
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
mov dword [ebp - 0x224], edi
cmovae eax, dword [ebp - 0x234]
xor ecx, ecx
mov word [eax + edi*2], cx
mov edi, dword [ebp - 0x234]
jmp 0x408c77
mov esi, dword [ebp - 0x220]
mov edx, edi
mov eax, esi
mov dword [ebp - 0x504], esi
sub edx, ecx
sub eax, ecx
mov dword [ebp - 0x50c], edx
cmp edx, eax
ja 0x408ad9
cmp esi, 8
mov dword [ebp - 0x224], edi
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
mov dword [ebp - 0x508], eax
lea edi, [eax + ecx*2]
test edx, edx
je 0x408abf
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, dword [ebp - 0x4fc]
lea eax, [ecx + edx]
mov ecx, dword [ebp - 0x508]
xor edx, edx
mov word [ecx + eax*2], dx
mov edi, dword [ebp - 0x234]
jmp 0x408c77
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, edx
jb 0x408e7b
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x408afc
mov esi, 0x7ffffffe
jmp 0x408b1f
mov eax, dword [ebp - 0x504]
mov edi, 0x7ffffffe
mov edx, eax
shr edx, 1
sub edi, edx
cmp eax, edi
jbe 0x408b18
mov esi, 0x7ffffffe
jmp 0x408b1f
add eax, edx
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea edx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x408b31
or edx, 0xffffffff
jmp 0x408b39
cmp edx, 0x1000
jb 0x408b68
lea eax, [edx + 0x23]
mov ecx, 0xffffffff
cmp eax, edx
cmovbe eax, ecx
push eax
call fcn.004102ca
add esp, 4
test eax, eax
je 0x408e71
mov ecx, dword [ebp - 0x4fc]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x408b81
test edx, edx
je 0x408b7f
push edx
call fcn.004102ca
mov ecx, dword [ebp - 0x4fc]
add esp, 4
mov edi, eax
jmp 0x408b81
xor edi, edi
cmp dword [ebp - 0x504], 8
mov eax, dword [ebp - 0x510]
mov dword [ebp - 0x220], esi
lea esi, [ecx + ecx]
mov dword [ebp - 0x500], edi
mov dword [ebp - 0x224], eax
push esi
jb 0x408c32
mov eax, dword [ebp - 0x234]
push eax
push edi
mov dword [ebp - 0x508], eax
call fcn.004137c0
mov edx, dword [ebp - 0x50c]
add esp, 0xc
add esi, edi
test edx, edx
je 0x408be1
xor eax, eax
mov ecx, edx
shr ecx, 1
mov edi, esi
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x500]
mov eax, dword [ebp - 0x4fc]
xor ecx, ecx
add eax, edx
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x504]
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x508]
cmp ecx, 0x1000
jb 0x408c20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408e71
mov eax, edx
push ecx
push eax
call fcn.004103f8
add esp, 8
mov dword [ebp - 0x234], edi
jmp 0x408c7d
lea eax, [ebp - 0x234]
push eax
push edi
call fcn.004137c0
mov edx, dword [ebp - 0x50c]
add esp, 0xc
add esi, edi
test edx, edx
je 0x408c63
xor eax, eax
mov ecx, edx
shr ecx, 1
mov edi, esi
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x500]
mov eax, dword [ebp - 0x4fc]
add eax, edx
xor ecx, ecx
mov word [edi + eax*2], cx
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x500], edi
cmp dword [ebp - 0x510], 0
jbe 0x408dbd
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x234]
mov eax, dword [ebp - 0x224]
cmovae ecx, edi
mov dword [ebp - 0x510], ecx
cmp eax, 1
jb 0x408d9e
dec eax
mov edx, 0xffffffff
cmp eax, 0xffffffff
cmovb edx, eax
lea esi, [ecx + edx*2]
mov edi, esi
sub edi, 0x430294
cmp word [esi], 0x5c
jne 0x408d2a
mov edx, 1
mov ecx, 0x430294
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x408d24
add ecx, 2
sub edx, 1
jne 0x408cd6
sub esi, dword [ebp - 0x510]
sar esi, 1
cmp esi, 0xffffffff
je 0x408d98
mov eax, dword [ebp - 0x224]
cmp esi, eax
ja 0x408d36
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
mov dword [ebp - 0x224], esi
cmovae eax, dword [ebp - 0x500]
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x408d46
mov ecx, dword [ebp - 0x510]
cmp esi, ecx
je 0x408d98
sub esi, 2
sub edi, 2
jmp 0x408cc6
push 0
sub esi, eax
lea ecx, [ebp - 0x234]
push esi
call fcn.0040aead
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x268]
call fcn.0040f0c3
push 0x42f278
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24c]
call fcn.00409a70
add esp, 4
lea ecx, [ebp - 0x234]
push eax
call fcn.00409020
lea ecx, [ebp - 0x24c]
call fcn.00408fc0
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call fcn.00408fc0
jmp 0x408dbd
mov edi, dword [ebp - 0x500]
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, edi
xor ecx, ecx
mov dword [ebp - 0x224], 0
mov word [eax], cx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x4f8]
call fcn.00403ed0
test al, al
jne 0x408dda
mov esi, 1
jmp 0x408e39
lea ecx, [ebp - 0x4f8]
call fcn.00404320
cmp byte [ebp - 0x4ea], 0
jne 0x408e37
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
nop word [eax + eax]
push 0
push 0
push 0
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x408e37
cmp eax, 0xffffffff
je 0x408e37
lea eax, [ebp - 0x250]
push eax
call esi
lea eax, [ebp - 0x250]
push eax
call edi
cmp byte [ebp - 0x4ea], 0
je 0x408e00
xor esi, esi
lea ecx, [ebp - 0x4f8]
call fcn.00407d90
lea ecx, [ebp - 0x234]
call fcn.00408fc0
mov eax, esi
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.004102b9
mov esp, ebp
pop ebp
ret
call fcn.0040a140
call fcn.00413f74
call fcn.0040a140
call fcn.0040a140
int3