Function at 0x10002270
Capabilities:
Check os version
Query environment variable
Read .ini file

Disassembly:
sub esp, 0x8d4
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebx, 2
call fcn.100134e0
mov ebp, eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x20], 0x105
call dword [0x1002294c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x38]
push 0x10020e40
push edx
call edi
mov eax, dword [esi + 0x14]
lea ecx, [esp + 0x38]
push eax
push ecx
call edi
mov edx, dword [0x1002215c]
lea eax, [esp + 0x38]
push edx
push eax
call edi
lea ecx, [esp + 0x38]
push ecx
call fcn.1000c4a0
add esp, 4
test al, al
jne 0x100022f1
lea edx, [esp + 0x38]
push 0x105
push edx
push 0x10022238
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0
lea eax, [esp + 0x3e0]
push 0x23
push eax
push 0
call dword [0x10023b9c]
lea ecx, [esp + 0x3dc]
push 0x10022208
push ecx
lea edx, [esp + 0x3e4]
push 0x10020f2c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1d4]
mov dword [esp + 0x18], 0x105
push eax
push ecx
push ebp
call dword [0x10022948]
mov edx, dword [0x1002215c]
lea eax, [esp + 0x1d4]
push edx
push eax
call edi
test ebp, ebp
je 0x10002360
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x1d4]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x3dc]
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
call fcn.1000c4a0
add esp, 4
test al, al
je 0x100023ae
lea ecx, [esp + 0x1d4]
lea edx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100023ae
lea eax, [esp + 0x1d4]
mov ebx, 3
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x140]
mov dword [esp + 0x140], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x150], 2
jne 0x100023e2
cmp dword [esp + 0x144], 5
jb 0x100023e2
mov ecx, esi
call fcn.10006be0
push 0x1000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
test ebx, ebx
mov dword [esp + 0x1c], ebp
jle 0x1000260d
lea edx, [esp + 0x2c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], edx
mov ecx, 0x400
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov ebx, dword [eax]
push ebx
push 0x1000
push ebp
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov ecx, dword [esp + 0x1c]
cmp byte [ecx], 0
je 0x100025ef
push ebp
mov ecx, esi
call fcn.100028e0
mov dword [esp + 0x20], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2dc]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x6e4]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x4e4]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x5e4]
push ebx
lea edx, [esp + 0x2e0]
rep stosd dword es:[edi], eax
push 0x100
push edx
mov ecx, 0x40
lea edi, [esp + 0x7f0]
push eax
push str._urOASCNWpoc__fEN_CTGhSCOVHP_QQ.__7__4
rep stosd dword es:[edi], eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x10002527
mov eax, dword [esi + 8]
xor ebx, ebx
test eax, eax
jle 0x10002523
xor edi, edi
mov edx, dword [esi + 0x1c]
mov eax, edi
add eax, edx
lea ecx, [esp + 0x2dc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x100024e0
mov eax, dword [esi + 8]
inc ebx
add edi, 0x301
cmp ebx, eax
jl 0x100024b6
jmp 0x10002523
mov edx, dword [esi + 0x1c]
lea edi, [ebx + ebx*2]
shl edi, 8
add edi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x6e4]
lea eax, [edi + edx + 0x200]
push eax
push ecx
call ebx
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x4e4]
lea eax, [edi + edx + 0x100]
push eax
push ecx
call ebx
mov edx, dword [esi + 0x1c]
mov byte [edi + edx + 0x300], 1
mov ebx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
lea eax, [esp + 0x5e8]
push 0x100
push eax
push 0
push str._xvZ_uk
push ebp
call edi
push ebx
lea ecx, [esp + 0x7e8]
push 0x100
push ecx
push 0
push 0x100221e4
push ebp
call edi
lea edx, [esp + 0x7e4]
mov ecx, esi
push edx
call fcn.100028e0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x6e4]
push eax
mov ecx, esi
call fcn.100028e0
mov ecx, dword [esp + 0x28]
mov edi, eax
lea edx, [esp + 0x5e4]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x4e8]
push edx
push eax
push edi
lea edx, [esp + 0x2ec]
push ecx
push edx
mov ecx, esi
call fcn.10010660
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100025bc
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
test edi, edi
je 0x100025c9
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100025da
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x10002438
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
add ecx, 4
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
jne 0x10002409
mov eax, dword [esi + 8]
xor ebx, ebx
test eax, eax
jle 0x1000266e
xor edi, edi
mov eax, dword [esi + 0x1c]
add eax, edi
mov cl, byte [eax + 0x300]
test cl, cl
jne 0x10002660
mov dl, byte [eax + 0x200]
lea ecx, [eax + 0x200]
test dl, dl
jne 0x10002641
mov dl, byte [eax + 0x100]
test dl, dl
je 0x10002660
push 0x10023144
lea edx, [eax + 0x100]
push 0x10023144
push edx
push ecx
push 0x10023144
push eax
mov ecx, esi
call fcn.10010660
mov eax, dword [esi + 8]
inc ebx
add edi, 0x301
cmp ebx, eax
jl 0x10002618
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8d4
ret