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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427637
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x820
push ebx
push esi
push edi
push 0
lea ecx, [esp + 0x1c]
call fcn.004010f0
mov esi, dword [ebp + 0xc]
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x838], 0
call fcn.00402310
mov eax, dword [esp + 0xc]
push 0x2f
push eax
mov byte [esp + 0x83c], 1
call fcn.0040e194
add esp, 8
test eax, eax
jne 0x403a17
or eax, 0xffffffff
jmp 0x403a1b
sub eax, dword [esp + 0xc]
inc eax
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402080
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x838], 2
call fcn.00401fd0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x834], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403a63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov byte [esp + 0x28], 0
mov ecx, 0xff
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x28]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402310
lea edx, [esp + 0xc]
push edx
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x840], 3
call fcn.00403140
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x838], 4
call fcn.00401fd0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x834], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403ae9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x834], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
push 0
push eax
push esi
lea ecx, [esp + 0x30]
call fcn.004014d0
test eax, eax
je 0x403b3e
mov eax, dword [esp + 0xc]
mov byte [esp + 0x834], 0
or edx, 0xffffffff
jmp 0x403bd0
xor eax, eax
mov byte [esp + 0x428], 0
mov ecx, 0xff
lea edi, [esp + 0x429]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xc]
push eax
push 0x400
lea ecx, [esp + 0x430]
push ecx
push 0x4287c8
push str.version
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [ebp + 8]
lea eax, [esp + 0x428]
lea ebx, [ebx]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x403bb8
test cl, cl
je 0x403bb4
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x403bb8
add eax, 2
add esi, 2
test cl, cl
jne 0x403b90
xor eax, eax
jmp 0x403bbd
sbb eax, eax
sbb eax, 0xffffffff
or edx, 0xffffffff
test eax, eax
mov eax, dword [esp + 0xc]
mov byte [esp + 0x834], 0
jne 0x403c14
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403be7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x18]
mov dword [esp + 0x834], 0xffffffff
call fcn.00401110
xor eax, eax
mov ecx, dword [esp + 0x82c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x18]
mov dword [esp + 0x834], 0xffffffff
call fcn.00401110
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8