Function at 0x40a670
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af4d0
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 0x40a709
call fcn.00416de3
mov ecx, eax
test ecx, ecx
je 0x40a944
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 0x40a6eb
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.0054f54f
mov esp, ebp
pop ebp
ret
push str._launcher.ini
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0
call fcn.00413f40
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
mov edx, dword [esi]
lea ecx, [ebp - 0x1c]
push eax
call fcn.004141c0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [eax]
test eax, eax
je 0x40a743
mov eax, dword [eax]
jmp 0x40a745
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 0x40a7ad
lea eax, [esi + 8]
push eax
call ecx
test eax, eax
jne 0x40a7a0
test esi, esi
je 0x40a7a0
mov eax, dword [esi]
test eax, eax
je 0x40a77e
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a795
push eax
call fcn.00415055
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054f560
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 0x40a7f3
lea eax, [esi + 8]
push eax
call ecx
test eax, eax
jne 0x40a7f3
mov eax, dword [esi]
test eax, eax
je 0x40a7d1
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a7e8
push eax
call fcn.00415055
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054f560
add esp, 8
call fcn.00416de3
mov ecx, eax
test ecx, ecx
je 0x40a94e
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 0x40a831
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 0x40a85f
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.0058ca4f
add esp, 8
test eax, eax
js 0x40a93a
cmp eax, dword [esi - 8]
jg 0x40a93a
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 0x40a8c1
cmp ecx, dword [esi]
jne 0x40a8c1
mov ebx, esi
lock inc dword [eax]
jmp 0x40a8f0
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x40a958
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 0x40a912
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 0x40a6eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40a6eb
push 0x80070057
call fcn.004048a0
push 0x80004005
call fcn.004048a0
push 0x80004005
call fcn.004048a0
call fcn.00404720
int3