Function at 0x10004c20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a60f
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x100b400c]
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 edi, ecx
mov dword [ebp - 0x220], edi
push 0x208
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push 0
mov dword [ebp - 0x228], edi
push eax
mov dword [ebp - 0x224], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [edi], 0
call fcn.10004310
mov ecx, eax
test ecx, ecx
je 0x10004fd0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 1
push 0x1a
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
mov dword [ebp - 0x224], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x218]
mov edx, eax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004cd1
sub ecx, esi
sar ecx, 1
je 0x10004dc8
test edx, edx
je 0x10004dc8
push ecx
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.10003db0
mov ecx, dword [edi]
mov esi, dword [ecx - 0xc]
cmp esi, 1
jg 0x10004d15
push edi
lea ecx, [ebp - 0x220]
call fcn.10003920
jmp 0x10004d48
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x10004d25
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x10004d31
call fcn.10004310
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
mov eax, dword [edi]
lea ecx, [ebp - 0x220]
push 1
lea eax, [eax + esi*2]
add eax, 0xfffffffe
push eax
call fcn.10003b70
mov eax, dword [ebp - 0x220]
mov edx, 0x10094924
mov dword [ebp - 0x224], 3
mov ecx, eax
nop
mov si, word [ecx]
cmp si, word [edx]
jne 0x10004d86
test si, si
je 0x10004d82
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x10004d86
add ecx, 4
add edx, 4
test si, si
jne 0x10004d60
xor esi, esi
jmp 0x10004d8b
sbb esi, esi
or esi, 1
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10004da3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x10004db5
push 1
push 0x10094924
mov ecx, edi
call fcn.10003c70
push 8
push str.Anvsoft_
mov ecx, edi
call fcn.10003c70
jmp 0x10004fab
push 0x208
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10004fab
call fcn.10004310
mov ecx, eax
test ecx, ecx
je 0x10004fda
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004e11
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.10003db0
mov esi, dword [ebp - 0x21c]
push 0x5c
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 8
or ebx, 0xffffffff
test eax, eax
je 0x10004f92
sub eax, esi
sar eax, 1
cmp eax, ebx
je 0x10004f92
xor ebx, ebx
add eax, 1
cmovns ebx, eax
cmp ebx, dword [esi - 0xc]
jl 0x10004e7d
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.10003920
jmp 0x10004ea7
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x10004e8d
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x10004e99
call fcn.10004310
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push ebx
push esi
lea ecx, [ebp - 0x220]
call fcn.10003b70
mov dword [ebp - 0x224], 5
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x21c]
call fcn.100037a0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x220]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10004eeb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x21c]
mov dword [ebp - 0x220], 0
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x10004f11
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10004f27
call fcn.10004310
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10004fe4
mov eax, dword [ecx]
call dword [eax + 0xc]
push 7
push str.appdata
push dword [esi - 0xc]
add eax, 0x10
mov dword [ebp - 0x224], 0xd
mov edx, esi
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x220]
call fcn.10003bf0
add esp, 0xc
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.100037a0
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x224], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10004f92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10004fab
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [edi]
call fcn.100049e0
mov eax, edi
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.1007fac0
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100045d0
push 0x80004005
call fcn.100045d0
push 0x80004005
call fcn.100045d0
int3