Function at 0x40b1b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x458f43
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x4727f0]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push ebp
push edi
mov eax, dword [0x4727f0]
xor eax, esp
push eax
lea eax, [esp + 0x424]
mov dword fs:[0], eax
push 0x200
lea eax, [esp + 0x24]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x20]
push 0x5c
push ecx
call fcn.0043e7c7
add esp, 8
cmp eax, ebx
je 0x40b214
mov word [eax + 2], bx
lea edx, [esp + 0x20]
push 0x200
push edx
call fcn.0043ef79
lea eax, [esp + 0x28]
add esp, 8
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b230
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x24]
lea edi, [esi + 0x6c]
push eax
mov ecx, edi
call fcn.00401e30
push 0x464e28
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.0040d120
add esp, 0xc
lea edi, [esi + 0x74]
push eax
mov ecx, edi
mov dword [esp + 0x430], ebx
call fcn.0040a330
mov dword [esp + 0x42c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b29f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push 0x487018
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40b32d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [edi]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x200
lea ecx, [esp + 0x28]
push ecx
push ebx
push str.PatchInfo
push str.Launcher
call ebp
lea eax, [esp + 0x20]
lea ecx, [esi + 0x7c]
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40b2e3
sub eax, ebx
sar eax, 1
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00401e30
lea eax, [esp + 0x20]
push 0x5c
push eax
call fcn.0043e7c7
add esp, 8
test eax, eax
jne 0x40b33f
lea ecx, [esp + 0x20]
push 0x2f
push ecx
call fcn.0043e7c7
add esp, 8
test eax, eax
jne 0x40b334
lea edx, [esp + 0x20]
push edx
mov eax, edx
push eax
jmp 0x40b348
xor eax, eax
jmp 0x40b81a
add eax, 2
push eax
lea ecx, [esp + 0x24]
push ecx
jmp 0x40b348
add eax, 2
push eax
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.launcher_
lea eax, [esi + 0x6c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040d120
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x28]
mov ebx, 1
push edx
mov dword [esp + 0x444], ebx
call fcn.0040d120
add esp, 0x18
lea ecx, [esi + 0x80]
push eax
mov byte [esp + 0x430], 2
call fcn.0040a330
mov byte [esp + 0x42c], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b3bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x42c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b3e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push eax
push 0x200
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x464f00
push str.Launcher
call ebp
lea eax, [esp + 0x20]
lea ecx, [esi + 0xa4]
lea edx, [eax + 2]
mov edi, edi
mov bx, word [eax]
add eax, 2
test bx, bx
jne 0x40b410
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00401e30
mov eax, dword [edi]
push eax
push 0x200
lea eax, [esp + 0x28]
push eax
push 0
push str.ManualURL
push str.Launcher
call ebp
lea eax, [esp + 0x20]
lea ecx, [esi + 0xa8]
lea edx, [eax + 2]
mov bx, word [eax]
add eax, 2
test bx, bx
jne 0x40b452
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00401e30
mov eax, dword [edi]
push eax
push 0x200
lea eax, [esp + 0x28]
push eax
push 0
push str.GameExe
push str.Launcher
call ebp
lea ecx, [esp + 0x20]
push ecx
lea ebx, [esi + 0x6c]
lea edx, [esp + 0x14]
push ebx
push edx
call fcn.0040d120
add esp, 0xc
lea ecx, [esi + 0x70]
push eax
mov dword [esp + 0x430], 3
call fcn.0040a330
mov dword [esp + 0x42c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b4dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push eax
push 0x200
lea ecx, [esp + 0x28]
push ecx
push 0
push str.GameConfig
push str.Launcher
call ebp
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0040d120
add esp, 0xc
lea ecx, [esi + 0x78]
push eax
mov dword [esp + 0x430], 4
call fcn.0040a330
mov dword [esp + 0x42c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b549
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push eax
push 0x200
lea ecx, [esp + 0x28]
push ecx
push 0
push str.ServerInfo
push str.Launcher
call ebp
lea eax, [esp + 0x20]
lea ecx, [esi + 0x84]
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40b571
sub eax, ebx
sar eax, 1
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00401e30
lea eax, [esp + 0x20]
push 0x5c
push eax
call fcn.0043e7c7
add esp, 8
test eax, eax
jne 0x40b5c6
lea ecx, [esp + 0x20]
push 0x2f
push ecx
call fcn.0043e7c7
add esp, 8
test eax, eax
jne 0x40b5bb
lea edx, [esp + 0x20]
push edx
mov eax, edx
push eax
jmp 0x40b5cf
add eax, 2
push eax
lea ecx, [esp + 0x24]
push ecx
jmp 0x40b5cf
add eax, 2
push eax
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.launcher_
lea eax, [esi + 0x6c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0040d120
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x24]
mov ebx, 5
push edx
mov dword [esp + 0x444], ebx
call fcn.0040d120
add esp, 0x18
lea ecx, [esi + 0x88]
push eax
mov byte [esp + 0x430], 6
call fcn.0040a330
mov byte [esp + 0x42c], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b642
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x42c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b66d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push eax
push 0x200
lea ecx, [esp + 0x28]
push ecx
push 0
push str.NewLauncher
push str.Launcher
call ebp
lea eax, [esp + 0x20]
lea ecx, [esi + 0x8c]
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40b695
sub eax, ebx
sar eax, 1
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00401e30
lea eax, [esp + 0x20]
push 0x5c
push eax
call fcn.0043e7c7
add esp, 8
test eax, eax
jne 0x40b6ea
lea ecx, [esp + 0x20]
push 0x2f
push ecx
call fcn.0043e7c7
add esp, 8
test eax, eax
jne 0x40b6df
lea edx, [esp + 0x20]
push edx
mov eax, edx
push eax
jmp 0x40b6f3
add eax, 2
push eax
lea ecx, [esp + 0x24]
push ecx
jmp 0x40b6f3
add eax, 2
push eax
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.launcher_
lea eax, [esi + 0x6c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040d120
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x2c]
mov ebx, 7
push edx
mov dword [esp + 0x444], ebx
call fcn.0040d120
add esp, 0x18
lea ecx, [esi + 0x90]
push eax
mov byte [esp + 0x430], 8
call fcn.0040a330
mov byte [esp + 0x42c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b766
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x42c], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b791
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
push ecx
push 0x200
lea edx, [esp + 0x28]
push edx
push 0
push str.LocalLauncher
push str.Launcher
call ebp
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b7b3
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esi + 0x94]
call fcn.00401e30
mov ecx, dword [edi]
push ecx
push 0x200
lea edx, [esp + 0x28]
push edx
push 0
push str.LocalGame
push str.Launcher
call ebp
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b7f5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esi + 0x98]
call fcn.00401e30
mov eax, 1
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0043d963
add esp, 0x420
ret