Function at 0x1002a920
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004ef51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x33cc
call fcn.10036fa0
mov eax, dword [0x1005d330]
push ebx
push esi
push edi
mov ecx, 0x1005fbec
mov dword [esp + 0x33d4], eax
call fcn.10001290
xor ebx, ebx
xor eax, eax
mov byte [esp + 0x1a0], bl
mov ecx, 0x41
lea edi, [esp + 0x1a1]
rep stosd dword es:[edi], eax
push 0x105
lea eax, [esp + 0x1a4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x1a0]
push 0x5c
push ecx
call fcn.10037c60
mov byte [eax], bl
xor eax, eax
lea edx, [esp + 0x1a8]
push edx
mov byte [esp + 0x2b4], bl
mov ecx, 0x41
lea edi, [esp + 0x2b5]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2b4]
push str._sCCProxy.ini
push eax
call fcn.10036e11
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x14
mov byte [esp + 0x7b8], bl
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0x7b9]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2a8]
push ecx
push 0x400
lea edx, [esp + 0xfc0]
push edx
push 0x10050713
stosw word es:[edi], ax
push str.RegCode
push str.System
stosb byte es:[edi], al
call esi
lea eax, [esp + 0x2a8]
push eax
push 0x400
lea ecx, [esp + 0x3b8]
push ecx
push 0x10050713
push 0x100509a4
push str.System
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrTrimA]
push 0x10050c04
lea edx, [esp + 0xfbc]
push edx
call esi
push 0x10050c04
lea eax, [esp + 0x3b4]
push eax
call esi
call fcn.10045d33
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x33e4], ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3b4]
push ecx
lea edx, [esp + 0xfc0]
push edx
call fcn.1002a110
mov ecx, dword [esp + 0x20]
mov dword [0x1005fbd0], eax
mov eax, dword [ecx - 0xc]
add esp, 0xc
cmp eax, ebx
je 0x1002aaf9
push ecx
lea ecx, [esp + 0x14]
call fcn.10001dc0
mov esi, dword [eax]
cmp esi, ebx
mov byte [esp + 0x33e4], 1
je 0x1002aad5
cmp dword [esi + 4], ebx
jne 0x1002aad0
mov eax, dword [esi]
push eax
call fcn.10044980
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x1002aad7
xor esi, esi
push esi
push ebx
push ebx
push ebx
mov ecx, 0x1005f3a8
call fcn.10019ed0
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
mov byte [esp + 0x33e4], bl
je 0x1002aaf9
call fcn.100027a0
push 8
lea ecx, [esp + 0x3b4]
push str.Bondevik
push ecx
call fcn.10040b84
add esp, 0xc
test eax, eax
jne 0x1002ab20
mov dword [0x1005fbd0], 3
jmp 0x1002ab2c
cmp dword [0x1005fbd0], ebx
je 0x1002aca6
cmp byte [esp + 0x3b5], 0x30
jne 0x1002aca6
push 0x104
lea edx, [esp + 0x9c]
xor eax, eax
mov byte [esp + 0x9c], bl
mov ecx, 0x41
lea edi, [esp + 0x9d]
push edx
mov byte [esp + 0x3c4], bl
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x98]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x1002ab73
mov eax, dword [str.Win.ini]
mov ecx, dword [0x10052c60]
mov dl, byte [0x10052c64]
mov dword [edi], eax
lea eax, [esp + 0x98]
push eax
mov dword [edi + 4], ecx
push ebx
lea ecx, [esp + 0x3b8]
push ecx
push str.Product
mov byte [edi + 8], dl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0xffffffffffffffff
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
call fcn.1001cf50
lea ecx, [esp + 0x18]
push ecx
call fcn.10038fa4
add esp, 4
cmp eax, ebx
je 0x1002abeb
mov edi, dword [eax + 0x14]
add edi, 0x76c
jmp 0x1002abed
xor edi, edi
lea edx, [esp + 0x18]
push edx
call fcn.10038fa4
add esp, 4
cmp eax, ebx
je 0x1002ac04
mov esi, dword [eax + 0x10]
inc esi
jmp 0x1002ac06
xor esi, esi
lea eax, [esp + 0x18]
push eax
call fcn.10038fa4
add esp, 4
cmp eax, ebx
je 0x1002ac1c
mov eax, dword [eax + 0xc]
jmp 0x1002ac1e
xor eax, eax
imul edi, edi, 0x16d
imul esi, esi, 0x1e
add edi, eax
mov eax, dword [esp + 0x10]
add esi, edi
cmp eax, ebx
jne 0x1002ac88
mov byte [esp + 0xbb8], bl
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0xbb9]
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
lea ecx, [esp + 0xbbc]
push 0x10050868
push ecx
stosb byte es:[edi], al
call fcn.10036e11
add esp, 0xc
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0xbbc]
push eax
lea ecx, [esp + 0x3b8]
push ecx
push str.Product
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x1002aca6
sub esi, eax
js 0x1002aca0
lea edx, [esp + 0x3ba]
push edx
call fcn.10036ef1
add esp, 4
cmp esi, eax
jl 0x1002aca6
mov dword [0x1005fbd0], ebx
mov al, 0x43
lea edi, [esp + 0x30]
mov byte [esp + 0x30], al
mov byte [esp + 0x31], al
mov byte [esp + 0x32], 0x50
mov byte [esp + 0x33], 0x72
mov byte [esp + 0x34], 0x6f
mov byte [esp + 0x35], 0x78
mov byte [esp + 0x36], 0x79
mov byte [esp + 0x37], bl
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x1002acd2
mov ax, word [0x10050c04]
mov ecx, dword [str.6.64]
mov dl, byte [0x100517c0]
mov word [edi], ax
mov dword [esp + 0x23c8], ecx
xor eax, eax
mov byte [esp + 0x23cc], dl
mov ecx, 0x3ff
lea edi, [esp + 0x23cd]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x23c8]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1002ad16
lea edi, [esp + 0x30]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x1002ad24
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, 0x400
lea edi, [esp + 0x13c1]
mov byte [esp + 0x13c0], bl
rep stosd dword es:[edi], eax
cmp dword [0x1005fbd0], ebx
je 0x1002ad84
lea eax, [esp + 0x13c0]
push eax
push 0x100506fc
call fcn.1000e160
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x13cc]
push edx
lea eax, [esp + 0x7c8]
push eax
jmp 0x1002adab
lea ecx, [esp + 0x13c0]
push ecx
push str._s_Demo_version_only_supports_3_users_
call fcn.1000e160
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x13cc]
push eax
lea ecx, [esp + 0x7c8]
push ecx
call fcn.10036e11
mov eax, dword [ebp + 8]
add esp, 0x14
cmp eax, ebx
je 0x1002ae17
lea edx, [esp + 0x7b8]
push edx
lea ecx, [esp + 0x14]
call fcn.10001dc0
mov esi, dword [eax]
cmp esi, ebx
mov byte [esp + 0x33e4], 2
je 0x1002adee
cmp dword [esi + 4], ebx
jne 0x1002ade9
mov eax, dword [esi]
push eax
call fcn.10044980
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x1002adf0
xor esi, esi
push esi
push ebx
push 0xc
push ebx
mov ecx, 0x1005f3a8
call fcn.10019ed0
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
mov byte [esp + 0x33e4], bl
je 0x1002ae17
call fcn.100027a0
mov dword [esp + 0x10], ebx
mov ecx, dword [0x1005fbd0]
push ecx
push ebx
push 0x8066
push ebx
mov ecx, 0x1005f3a8
call fcn.10019ed0
push 0x1005fbf4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
mov esi, dword [0x1005fbd0]
add eax, 0xfffffff0
mov dword [esp + 0x33e4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1002ae69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x33dc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x33d4]
mov eax, esi
call fcn.10036c09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret