Function at 0x40a2e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572648
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d2614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x40a4a4
call fcn.00448a4d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a337
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
mov eax, dword [edi - 8]
mov esi, dword [ebp + 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40a371
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00401de0
mov edi, dword [ebp - 0x14]
push esi
push 0x104
push edi
push 0
push str.ExecuteName
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0054213d
add esp, 8
test eax, eax
jl 0x40a501
cmp eax, dword [edi - 8]
jg 0x40a501
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
cmp dword [edi - 0xc], ecx
je 0x40a484
call fcn.00448a4d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a3d4
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.004064c0
add esp, 4
lea esi, [ebp - 0x10]
call fcn.00407ee0
mov eax, dword [edi - 0xc]
push eax
push edi
mov ecx, esi
call fcn.00403ee0
mov edx, esi
push edx
call fcn.00406ee0
mov ebx, dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x40a464
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov esi, esp
push eax
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
lea eax, [ebx - 0x10]
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
mov byte [ebp - 4], 4
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp + 0x18]
add esp, 4
mov byte [ebp - 4], 3
call fcn.0040a100
add esp, 0x10
add ebx, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40a484
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add edi, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a4a4
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a4c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a4ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401fd0
int3