Function at 0x40a500
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af310
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x623fcc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x40a599
call fcn.00416c73
mov ecx, eax
test ecx, ecx
je 0x40a7d4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x6029b8
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00404490
test al, al
jne 0x40a57b
push 0
push 0x6029b8
mov ecx, edi
call fcn.004048f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054f3d2
mov esp, ebp
pop ebp
ret
push str._launcher.ini
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0
call fcn.00413dd0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
mov edx, dword [esi]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00414050
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [eax]
test eax, eax
je 0x40a5d3
mov eax, dword [eax]
jmp 0x40a5d5
xor eax, eax
push eax
lea ecx, [ebp - 0x18]
call fcn.00404a10
mov esi, dword [ebp - 0x1c]
mov ecx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
je 0x40a63d
lea eax, [esi + 8]
push eax
call ecx
test eax, eax
jne 0x40a630
test esi, esi
je 0x40a630
mov eax, dword [esi]
test eax, eax
je 0x40a60e
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a625
push eax
call fcn.00414ee5
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054f3e3
add esp, 8
mov ecx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x40a683
lea eax, [esi + 8]
push eax
call ecx
test eax, eax
jne 0x40a683
mov eax, dword [esi]
test eax, eax
je 0x40a661
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a678
push eax
call fcn.00414ee5
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054f3e3
add esp, 8
call fcn.00416c73
mov ecx, eax
test ecx, ecx
je 0x40a7de
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x6029b8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00404490
test al, al
jne 0x40a6c1
push 0
push 0x6029b8
lea ecx, [ebp - 0x14]
call fcn.004048f0
mov byte [ebp - 4], 7
mov ecx, 1
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or ecx, eax
jge 0x40a6ef
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00404770
mov esi, dword [ebp - 0x14]
push ebx
push 0x104
push esi
push 0x6029b8
push str.path
push str.Launcher
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.0058c8cf
add esp, 8
test eax, eax
js 0x40a7ca
cmp eax, dword [esi - 8]
jg 0x40a7ca
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
add esi, 0xfffffff0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x40a751
cmp ecx, dword [esi]
jne 0x40a751
mov ebx, esi
lock inc dword [eax]
jmp 0x40a780
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x40a7e8
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
lea eax, [esi + 0x10]
mov ecx, dword [esi + 4]
inc ecx
push ecx
push eax
push ecx
lea eax, [ebx + 0x10]
push eax
call fcn.00404810
add esp, 0x10
lea eax, [ebx + 0x10]
mov byte [ebp - 4], 5
or ebx, 0xffffffff
mov dword [edi], eax
mov eax, ebx
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40a7a2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40a57b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40a57b
push 0x80070057
call fcn.004048a0
push 0x80004005
call fcn.004048a0
push 0x80004005
call fcn.004048a0
call fcn.00404720
int3