Function at 0x41c130
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4569bd
mov eax, dword fs:[0]
push eax
sub esp, 0xaec
mov eax, dword [0x472008]
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 ebx, ecx
push str.initEnv__
call fcn.004046d0
add esp, 4
mov ecx, 0x47492c
push 0x14
push str.tcp:__xupp.xyz:18830
call fcn.00403d00
push 0xb
push str.Client10001
mov ecx, 0x474944
call fcn.00403d00
push 0x12
push str.nKosPP_Client10001
mov ecx, 0x47495c
call fcn.00403d00
push 0xf
push str.HWBackend_df7s_
mov ecx, 0x474974
call fcn.00403d00
lea eax, [ebp - 0xac0]
push eax
call fcn.004088a0
push str.HWDevice
lea eax, [ebp - 0xac0]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xa78]
push eax
call fcn.00404f30
lea eax, [ebp - 0xa78]
mov byte [ebp - 4], 1
push eax
call fcn.00408b50
add esp, 0x14
test al, al
je 0x41c494
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0xa30]
push eax
call fcn.0040b9b0
add esp, 8
lea edi, [ebx + 8]
mov esi, eax
cmp edi, esi
je 0x41c254
cmp dword [edi + 0x14], 8
jb 0x41c22d
mov eax, dword [edi + 0x14]
inc eax
push 2
push eax
push dword [edi]
call fcn.004035c0
add esp, 0xc
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x41c245
mov eax, dword [edi]
jmp 0x41c247
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
push esi
call fcn.00408bf0
mov eax, dword [ebp - 0xa1c]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x41c275
inc eax
push 2
push eax
push dword [ebp - 0xa30]
call fcn.004035c0
add esp, 0xc
cmp dword [edi + 0x10], 0
jne 0x41c42f
lea eax, [ebp - 0xaf8]
push 6
push eax
call fcn.0040b730
mov esi, eax
mov byte [ebp - 4], 3
call fcn.00409b30
push edx
push eax
lea eax, [ebp - 0xae0]
push eax
call fcn.00409b90
push esi
push eax
lea eax, [ebp - 0xa30]
mov byte [ebp - 4], 4
push eax
call fcn.0040e0f0
add esp, 0x20
mov eax, dword [ebp - 0xacc]
cmp eax, 0x10
jb 0x41c2d8
inc eax
push 1
push eax
push dword [ebp - 0xae0]
call fcn.004035c0
add esp, 0xc
mov dword [ebp - 0xacc], 0xf
mov dword [ebp - 0xad0], 0
mov byte [ebp - 0xae0], 0
mov eax, dword [ebp - 0xae4]
mov byte [ebp - 4], 7
cmp eax, 0x10
jb 0x41c314
inc eax
push 1
push eax
push dword [ebp - 0xaf8]
call fcn.004035c0
add esp, 0xc
lea eax, [ebp - 0xa30]
mov dword [ebp - 0xae4], 0xf
push eax
lea eax, [ebp - 0xa60]
mov dword [ebp - 0xae8], 0
push eax
mov byte [ebp - 0xaf8], 0
call fcn.0040c720
push 0
lea eax, [ebp - 0xa60]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0xa78]
push eax
call fcn.0040cdf0
lea eax, [ebp - 0xa60]
add esp, 0x14
cmp edi, eax
je 0x41c374
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00401e20
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xac4], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x41c3a5
mov eax, dword [ecx]
jmp 0x41c3a7
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push edi
mov word [eax], dx
call fcn.00401e20
sub esp, 0x18
mov byte [ebp - 4], 9
mov ecx, esp
push str.create_cid1:
call fcn.004025f0
mov byte [ebp - 4], 8
call fcn.00404730
mov eax, dword [ebp - 0xa4c]
add esp, 0x30
cmp eax, 8
jb 0x41c3f1
inc eax
push 2
push eax
push dword [ebp - 0xa60]
call fcn.004035c0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0xa4c], 7
mov word [ebp - 0xa60], ax
mov eax, dword [ebp - 0xa1c]
mov dword [ebp - 0xa50], 0
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x41c42f
inc eax
push 1
push eax
push dword [ebp - 0xa30]
call fcn.004035c0
add esp, 0xc
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xac8], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x41c460
mov eax, dword [ecx]
jmp 0x41c462
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push edi
mov word [eax], dx
call fcn.00401e20
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov ecx, esp
push 0x45bf50
call fcn.004025f0
mov byte [ebp - 4], 1
call fcn.00404730
add esp, 0x30
jmp 0x41c606
lea eax, [ebp - 0xae0]
push 6
push eax
call fcn.0040b730
mov esi, eax
mov byte [ebp - 4], 0xb
call fcn.00409b30
push edx
push eax
lea eax, [ebp - 0xaf8]
push eax
call fcn.00409b90
push esi
push eax
lea eax, [ebp - 0xa30]
mov byte [ebp - 4], 0xc
push eax
call fcn.0040e0f0
add esp, 0x20
mov eax, dword [ebp - 0xae4]
cmp eax, 0x10
jb 0x41c4ed
inc eax
push 1
push eax
push dword [ebp - 0xaf8]
call fcn.004035c0
add esp, 0xc
mov dword [ebp - 0xae4], 0xf
mov dword [ebp - 0xae8], 0
mov byte [ebp - 0xaf8], 0
mov eax, dword [ebp - 0xacc]
mov byte [ebp - 4], 0xf
cmp eax, 0x10
jb 0x41c529
inc eax
push 1
push eax
push dword [ebp - 0xae0]
call fcn.004035c0
add esp, 0xc
lea eax, [ebp - 0xa30]
mov dword [ebp - 0xacc], 0xf
push eax
lea eax, [ebp - 0xa90]
mov dword [ebp - 0xad0], 0
push eax
mov byte [ebp - 0xae0], 0
call fcn.0040c720
push 0
lea eax, [ebp - 0xa90]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0xa78]
push eax
call fcn.0040cdf0
lea esi, [ebx + 8]
add esp, 0x14
lea eax, [ebp - 0xa90]
cmp esi, eax
je 0x41c58c
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00401e20
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xac8], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x41c5bd
mov eax, dword [ecx]
jmp 0x41c5bf
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push esi
mov word [eax], dx
call fcn.00401e20
sub esp, 0x18
mov byte [ebp - 4], 0x11
mov ecx, esp
push str.create_cid2:
call fcn.004025f0
mov byte [ebp - 4], 0x10
call fcn.00404730
add esp, 0x30
lea ecx, [ebp - 0xa90]
call fcn.00401c60
lea ecx, [ebp - 0xa30]
mov byte [ebp - 4], 1
call fcn.00402850
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.config.ini
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x200
lea eax, [ebp - 0x418]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x100
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0xa48]
call fcn.004025f0
cmp dword [ebp - 0xa38], 0
mov byte [ebp - 4], 0x12
je 0x41c91b
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xac8], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x41c6d3
mov eax, dword [ecx]
jmp 0x41c6d5
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0xa48]
push edx
push eax
call fcn.00401e20
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
push str.section
call fcn.004025f0
mov byte [ebp - 4], 0x12
call fcn.00404730
push 0x200
lea eax, [ebp - 0x618]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x218]
add esp, 0x3c
lea eax, [ebp - 0xa48]
cmp dword [ebp - 0xa34], 8
cmovae eax, dword [ebp - 0xa48]
push ecx
push 0x100
lea ecx, [ebp - 0x618]
push ecx
push 0x45ab98
push 0x45bf9c
push eax
call esi
lea eax, [ebp - 0x618]
push eax
lea ecx, [ebp - 0xa30]
call fcn.004025f0
sub esp, 0x18
mov byte [ebp - 4], 0x14
mov ecx, esp
mov dword [ebp - 0xac8], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x41c79c
mov eax, dword [ecx]
jmp 0x41c79e
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0xa30]
push edx
push eax
call fcn.00401e20
sub esp, 0x18
mov byte [ebp - 4], 0x15
mov ecx, esp
push 0x45bf9c
call fcn.004025f0
mov byte [ebp - 4], 0x14
call fcn.00404730
push 0x400
lea eax, [ebp - 0xa18]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x3c
lea ecx, [ebp - 0x218]
cmp dword [ebp - 0xa34], 8
lea eax, [ebp - 0xa48]
cmovae eax, dword [ebp - 0xa48]
push ecx
push 0x200
lea ecx, [ebp - 0xa18]
push ecx
push 0x45ab98
push 0x45bfa4
push eax
call esi
lea eax, [ebp - 0xa18]
push eax
lea ecx, [ebp - 0xaa8]
call fcn.004025f0
sub esp, 0x18
mov byte [ebp - 4], 0x16
mov ecx, esp
mov dword [ebp - 0xac8], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x41c85f
mov eax, dword [ecx]
jmp 0x41c861
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0xaa8]
push edx
push eax
call fcn.00401e20
sub esp, 0x18
mov byte [ebp - 4], 0x17
mov ecx, esp
push 0x45bfa4
call fcn.004025f0
mov byte [ebp - 4], 0x16
call fcn.00404730
lea ecx, [ebx + 0x38]
add esp, 0x30
lea eax, [ebp - 0xaa8]
cmp ecx, eax
je 0x41c8ab
push 0xffffffffffffffff
push 0
push eax
call fcn.00401e20
push 0x45bfac
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0xae0]
push eax
call fcn.00404f30
lea ecx, [ebp - 0xa30]
mov byte [ebp - 4], 0x18
push ecx
push eax
lea eax, [ebp - 0xaf8]
push eax
call fcn.00404e90
add esp, 0x18
lea esi, [ebx + 0x20]
mov ecx, esi
push eax
call fcn.00413bb0
lea ecx, [ebp - 0xaf8]
call fcn.00401c60
lea ecx, [ebp - 0xae0]
call fcn.00401c60
lea ecx, [ebp - 0xaa8]
call fcn.00401c60
lea ecx, [ebp - 0xa30]
mov byte [ebp - 4], 0x12
call fcn.00401c60
jmp 0x41c92a
lea esi, [ebx + 0x20]
push 0x45bfb0
mov ecx, esi
call fcn.00413c30
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xac8], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x41c95b
mov eax, dword [ecx]
jmp 0x41c95d
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push esi
mov word [eax], dx
call fcn.00401e20
sub esp, 0x18
mov byte [ebp - 4], 0x19
mov ecx, esp
push str.applicationId
call fcn.004025f0
mov byte [ebp - 4], 0x12
call fcn.00404730
add esp, 0x30
lea ecx, [ebp - 0xa48]
call fcn.00401c60
lea ecx, [ebp - 0xa78]
call fcn.00401c60
lea ecx, [ebp - 0xac0]
call fcn.00401c60
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.0040219c
mov esp, ebp
pop ebp
ret