Function at 0x40a200
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43894b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [esp + 0x44]
push ebx
push ebp
push esi
push edi
push eax
mov ebp, ecx
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
call fcn.00409bb0
xor ebx, ebx
mov edi, edi
push 4
lea edx, [ebx + ebx]
add dx, word [ebp + 0x40c]
push 0x46c60c
lea ecx, [esp + 0x18]
push ecx
lea eax, [ebp + 0x41c]
push eax
lea eax, [ebp + 4]
push edx
push eax
call sub.sx32w.dll_RNBOsproQuery
mov word [ebp], ax
mov ecx, 4
lea edi, [ebp + 0x420]
lea esi, [esp + 0x10]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40a285
sbb eax, eax
sbb eax, 0xffffffff
test ax, ax
mov word [ebp], ax
je 0x40a314
inc ebx
cmp ebx, 0x12
jl 0x40a240
mov ecx, ebp
call fcn.0040a0f0
test al, al
je 0x40a5cf
xor ebx, ebx
lea esp, [esp]
push 4
lea ecx, [ebx + ebx]
add cx, word [ebp + 0x40c]
push 0x46c60c
lea eax, [esp + 0x18]
push eax
lea eax, [ebp + 0x41c]
push eax
lea eax, [ebp + 4]
push ecx
push eax
call sub.sx32w.dll_RNBOsproQuery
mov word [ebp], ax
mov ecx, 4
lea edi, [ebp + 0x420]
lea esi, [esp + 0x10]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40a2f5
sbb eax, eax
sbb eax, 0xffffffff
test ax, ax
mov word [ebp], ax
je 0x40a314
inc ebx
cmp ebx, 0x12
jl 0x40a2b0
mov ecx, ebp
call fcn.0040a0f0
test al, al
jne 0x40a2a7
jmp 0x40a641
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov dword [ebp + 0x408], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a33d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x54], edi
mov dword [esp + 0x4c], 0
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 1
call fcn.0040aa50
mov eax, dword [edi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edi - 8]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x4c], 2
jge 0x40a3a6
push 0x104
lea ecx, [esp + 0x58]
call fcn.00401470
mov edi, dword [esp + 0x54]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test edi, edi
jne 0x40a3ba
xor eax, eax
jmp 0x40a3c9
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a3c0
sub eax, edx
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
push str.SuperPro.ini
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004020a0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebx - 0x10]
lea esi, [eax - 0x10]
cmp esi, ecx
mov byte [esp + 0x4c], 3
mov dword [esp + 0x18], ecx
je 0x40a49e
mov edx, dword [ecx + 0xc]
add ecx, 0xc
test edx, edx
jge 0x40a421
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401690
mov ebx, dword [esp + 0x14]
jmp 0x40a49e
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x40a443
cmp eax, dword [esi]
jne 0x40a443
mov ebx, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40a47c
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
mov ebx, eax
test ebx, ebx
jne 0x40a45a
call fcn.004011b0
mov edx, dword [esi + 4]
mov dword [ebx + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov eax, ecx
shr ecx, 2
add esi, 0x10
lea edi, [ebx + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a497
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a4c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebx
lea ecx, [esp + 0x24]
call fcn.0040b050
push str.Delay
push 0x43abd4
push str.Time
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
call fcn.0040b0a0
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR70.dll_atoi]
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a514
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, 0xc8
jb 0x40a527
cmp esi, 0x3e8
ja 0x40a527
push esi
jmp 0x40a52c
push 0xc8
mov ecx, ebp
call fcn.0040a110
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov esi, eax
xor eax, eax
mov ax, word [ebp + 0x410]
add ax, word [ebp + 0x408]
push eax
lea eax, [ebp + 4]
push eax
call sub.sx32w.dll_RNBOsproGetSubLicense
or edx, 0xffffffff
test ax, ax
mov word [ebp], ax
mov byte [esp + 0x4c], 2
je 0x40a5d3
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a580
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 1
call fcn.0040abb0
lea eax, [ebx - 0x10]
mov byte [esp + 0x4c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a5ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0xfffffff0
mov dword [esp + 0x4c], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a5cf
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
xor al, al
jmp 0x40a641
mov eax, esi
mov byte [ebp + 0x424], 1
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a5f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 1
call fcn.0040abb0
lea eax, [ebx - 0x10]
mov byte [esp + 0x4c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a61d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0xfffffff0
mov dword [esp + 0x4c], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a63f
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov al, 1
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4