Function at 0x42de60
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x424]
sub esp, 0x424
push 0xffffffffffffffff
push 0x4862d6
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4b7b70]
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.00460290
mov edx, dword [0x4bc8f8]
mov eax, dword [edx - 0xc]
add esp, 0xc
test eax, eax
jne 0x42deea
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 0x42df3d
push str.COCfg.XML
lea edx, [ebp - 0x18]
push 0x4bc8f8
push edx
call fcn.00411ab0
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 0x42df10
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 0x42df3d
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.0042cfd0
add esp, 4
test al, al
je 0x42e22f
lea ecx, [ebp - 0x20]
call fcn.00429500
lea edx, [ebp + 0x20]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.004290d0
test eax, eax
je 0x42e224
push 1
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push eax
lea ecx, [ebp - 0x20]
call fcn.004298f0
lea ecx, [ebp - 0x3c]
call fcn.004294a0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004290b0
test eax, eax
je 0x42e218
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4936d4
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00429b10
lea ecx, [ebp - 0x54]
call fcn.004294a0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.004290b0
test eax, eax
je 0x42e20c
lea ecx, [ebp - 0x48]
call fcn.004292e0
lea ecx, [ebp - 0x10]
call fcn.004111b0
mov eax, dword [ebx + 4]
sub eax, 0
mov byte [ebp - 4], 4
je 0x42e007
sub eax, 1
je 0x42e000
sub eax, 1
jne 0x42e014
push str.Chinesetraditional
jmp 0x42e00c
push str.English
jmp 0x42e00c
push str.ChineseSimp
lea ecx, [ebp - 0x10]
call fcn.00411da0
lea ecx, [ebp - 0x48]
call fcn.004290b0
test eax, eax
je 0x42e1f8
push ecx
mov edx, esp
mov dword [ebp - 0x14], esp
push str.item
push edx
lea ecx, [ebp - 0x48]
call fcn.00429c00
lea ecx, [ebp - 0x2c]
call fcn.004295d0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004290c0
test eax, eax
je 0x42e1ec
lea ecx, [ebp - 0x2c]
call fcn.00429360
cmp eax, 1
jl 0x42e1ec
lea ecx, [ebp - 0x2c]
call fcn.00429360
mov ebx, eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], ebx
call fcn.004111b0
xor esi, esi
mov byte [ebp - 4], 6
mov dword [ebp - 0x18], esi
test ebx, ebx
jle 0x42e190
push 1
push ecx
mov eax, esp
mov dword [ebp - 0x68], esp
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.004293b0
lea ecx, [ebp - 0x64]
call fcn.004294a0
push str.value
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 7
call fcn.004299d0
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.004118e0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.0042a9f0
mov edi, dword [ebp - 0x24]
test edi, edi
jne 0x42e0de
xor eax, eax
jmp 0x42e10a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42e0f1
xor eax, eax
jmp 0x42e10a
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00460f20
mov eax, esp
push 3
push ebx
push edi
push eax
call fcn.0040f410
mov ebx, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00403100
push eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.0042d2b0
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0xb
call fcn.00403140
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x88]
call fcn.0042d2e0
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.0042dc90
lea ecx, [ebp - 0x88]
call fcn.0042d270
lea ecx, [ebp]
call fcn.0042d270
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.004292f0
inc esi
cmp esi, ebx
mov dword [ebp - 0x18], esi
jl 0x42e08b
or edi, 0xffffffff
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x24]
mov dword [eax + 8], 1
call fcn.0042a9f0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00429340
lea ecx, [ebp - 0x10]
call fcn.0042a9f0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.004292f0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.004292f0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.004292f0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.00429320
mov eax, 1
jmp 0x42e231
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00429340
lea ecx, [ebp - 0x10]
call fcn.0042a9f0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.004292f0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.004292f0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.004292f0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.00429320
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.00460f10
add ebp, 0x424
mov esp, ebp
pop ebp
ret