Function at 0x47c960
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x424]
sub esp, 0x424
push 0xffffffffffffffff
push 0x519456
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x56c3c0]
xor eax, ebp
mov dword [ebp + 0x420], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov ebx, ecx
push 0x3fe
push eax
lea ecx, [ebp + 0x22]
push ecx
mov dword [ebp - 0x30], ebx
mov word [ebp + 0x20], ax
call fcn.004d5720
mov edx, dword [0x571568]
mov eax, dword [edx - 0xc]
add esp, 0xc
test eax, eax
jne 0x47c9ea
push 1
push 0x1a
lea eax, [ebp + 0x20]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.ESafeNet_Out_NewVersionCOCfg.XML
lea ecx, [ebp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
or edi, 0xffffffff
jmp 0x47ca3d
push str.COCfg.XML
lea edx, [ebp - 0x18]
push 0x571568
push edx
call fcn.0044cf90
mov esi, dword [ebp - 0x18]
lea edx, [ebp + 0x20]
add esp, 0xc
mov eax, esi
sub edx, esi
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x47ca10
lea eax, [esi - 0x10]
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ca3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 0x20]
push ecx
call fcn.0047b300
add esp, 4
test al, al
je 0x47cd2f
lea ecx, [ebp - 0x20]
call fcn.00472b70
lea edx, [ebp + 0x20]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.00471650
test eax, eax
je 0x47cd24
push 1
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push eax
lea ecx, [ebp - 0x20]
call fcn.00474160
lea ecx, [ebp - 0x3c]
call fcn.004728d0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004715e0
test eax, eax
je 0x47cd18
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x52c46c
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00474f70
lea ecx, [ebp - 0x54]
call fcn.004728d0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.004715e0
test eax, eax
je 0x47cd0c
lea ecx, [ebp - 0x48]
call fcn.00472010
lea ecx, [ebp - 0x10]
call fcn.0044c620
mov eax, dword [ebx + 4]
sub eax, 0
mov byte [ebp - 4], 4
je 0x47cb07
sub eax, 1
je 0x47cb00
sub eax, 1
jne 0x47cb14
push str.Chinesetraditional
jmp 0x47cb0c
push str.English
jmp 0x47cb0c
push str.ChineseSimp
lea ecx, [ebp - 0x10]
call fcn.0044d300
lea ecx, [ebp - 0x48]
call fcn.004715e0
test eax, eax
je 0x47ccf8
push ecx
mov edx, esp
mov dword [ebp - 0x14], esp
push str.item
push edx
lea ecx, [ebp - 0x48]
call fcn.00475530
lea ecx, [ebp - 0x2c]
call fcn.00472e90
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00471750
test eax, eax
je 0x47ccec
lea ecx, [ebp - 0x2c]
call fcn.004723f0
cmp eax, 1
jl 0x47ccec
lea ecx, [ebp - 0x2c]
call fcn.004723f0
mov ebx, eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], ebx
call fcn.0044c620
xor esi, esi
mov byte [ebp - 4], 6
mov dword [ebp - 0x18], esi
test ebx, ebx
jle 0x47cc90
push 1
push ecx
mov eax, esp
mov dword [ebp - 0x68], esp
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00472490
lea ecx, [ebp - 0x64]
call fcn.004728d0
push str.value
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 7
call fcn.00474e30
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.0044cdc0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.0044c650
mov edi, dword [ebp - 0x24]
test edi, edi
jne 0x47cbde
xor eax, eax
jmp 0x47cc0a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x47cbf1
xor eax, eax
jmp 0x47cc0a
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004d6570
mov eax, esp
push 3
push ebx
push edi
push eax
call fcn.0044a300
mov ebx, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00411a40
push eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.0047bc40
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0xb
call fcn.00411ab0
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x88]
call fcn.0047bcd0
lea ecx, [ebp - 0x88]
push ecx
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x94]
push edx
add ecx, 0xc
mov byte [ebp - 4], 0xc
call fcn.0047c790
lea ecx, [ebp - 0x88]
call fcn.0047ba50
lea ecx, [ebp]
call fcn.0047ba20
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.00472020
inc esi
cmp esi, ebx
mov dword [ebp - 0x18], esi
jl 0x47cb8b
or edi, 0xffffffff
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x24]
mov dword [eax + 8], 1
call fcn.0044c650
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004723d0
lea ecx, [ebp - 0x10]
call fcn.0044c650
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00472020
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00472020
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00472020
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.00472320
mov eax, 1
jmp 0x47cd31
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004723d0
lea ecx, [ebp - 0x10]
call fcn.0044c650
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00472020
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00472020
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00472020
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.00472320
xor eax, eax
lea esp, [ebp - 0xc0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x420]
xor ecx, ebp
call fcn.004d6555
add ebp, 0x424
mov esp, ebp
pop ebp
ret