Function at 0x4023b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x403e8c
mov eax, dword fs:[0]
push eax
sub esp, 0xdc8
mov eax, dword [0x40601c]
xor eax, esp
mov dword [esp + 0xdc0], eax
push ebx
push esi
push edi
mov eax, dword [0x40601c]
xor eax, esp
push eax
lea eax, [esp + 0xdd8]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor eax, eax
mov dword [esp + 0xde0], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x5c]
push ecx
mov edx, str._smartloader_
call fcn.00402930
mov esi, eax
xor eax, eax
cmp esi, eax
mov dword [esp + 0x1c], esi
je 0x4027ca
lea ecx, [esp + 0x90]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x20]
mov byte [esp + 0xde0], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x3c]
mov byte [esp + 0xde0], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x74]
mov byte [esp + 0xde0], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
mov edx, str._product_
lea ebx, [esp + 0x60]
mov byte [esp + 0xde8], 4
call fcn.00402930
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x94]
push edx
mov edx, str._qq_
mov dword [esp + 0x18], 0
call fcn.00402930
test eax, eax
mov esi, 0x10
je 0x4024eb
cmp dword [esp + 0xa8], esi
mov eax, dword [esp + 0x94]
jae 0x4024d7
lea eax, [esp + 0x94]
lea ecx, [esp + 0x18]
push ecx
push 0x4043e8
push eax
call dword [sym.imp.MSVCR80.dll_sscanf]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x40]
push eax
mov edx, str._fullname_
lea ebx, [esp + 0x60]
mov dword [esp + 0x18], 0
call fcn.00402930
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x78]
push edx
mov edx, str._extra_
mov dword [esp + 0x18], 0
call fcn.00402930
push 0x3ff
lea eax, [esp + 0x9d1]
push 0
push eax
mov byte [esp + 0x9d8], 0
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x84]
add esp, 0xc
cmp dword [esp + 0x8c], esi
jae 0x40255a
lea ecx, [esp + 0x78]
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x402568
lea eax, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push str._q__u__n__s__e__s
lea edx, [esp + 0x9dc]
push 0x3ff
push edx
call dword [sym.imp.MSVCR80.dll__snprintf]
push 0x3ff
lea eax, [esp + 0x5e9]
push 0
push eax
mov byte [esp + 0x5f0], 0
call sub.MSVCR80.dll_memset
add esp, 0x24
cmp dword [esp + 0x38], esi
mov esi, dword [esp + 0x24]
jae 0x4025b4
lea esi, [esp + 0x24]
lea ecx, [esp + 0x5cc]
call fcn.00401f80
push 0x103
lea ecx, [esp + 0x2b9]
push 0
push ecx
mov byte [esp + 0x2c0], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push str.kernelInfo.ini
push ecx
call fcn.00402100
add esp, 4
push eax
push str._s_s
mov eax, 0x104
lea edi, [esp + 0x2c0]
call entry0
add esp, 0xc
mov edx, edi
push edx
push 0
push str.version
push str.kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x103
mov ebx, eax
lea eax, [esp + 0x4c9]
push 0
push eax
mov byte [esp + 0x4d0], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ecx, edi
push ecx
push 0x104
lea edx, [esp + 0x4cc]
push edx
push str.KernelPackage.exe
push str.packetname
push str.kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x103
lea eax, [esp + 0x3c1]
push 0
push eax
mov byte [esp + 0x3c8], 0
call sub.MSVCR80.dll_memset
lea ecx, [esp + 0x4d0]
add esp, 0xc
push ecx
push ecx
call fcn.00402100
add esp, 4
push eax
push str._s_s
mov eax, 0x104
lea edi, [esp + 0x3c8]
call entry0
add esp, 0xc
mov edx, edi
push 0
push edx
call dword [sym.imp.MSVCR80.dll__access]
add esp, 8
test eax, eax
jne 0x402704
lea esi, [esp + 0xac]
call fcn.00401100
mov ecx, esi
call fcn.004012a0
cmp ebx, eax
jbe 0x402704
lea esi, [esp + 0xac]
call fcn.00401100
lea eax, [esp + 0x1b0]
push eax
mov ecx, edi
push ecx
push str.SetupPath
push str.Kernel
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebx
mov ecx, esi
call fcn.00401220
lea esi, [esp + 0x5cc]
call fcn.00401900
test eax, eax
mov esi, 0x10
jne 0x402748
cmp dword [esp + 0x54], esi
mov ecx, dword [esp + 0x40]
jae 0x402727
lea ecx, [esp + 0x40]
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x402735
lea eax, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x5d4]
push edx
lea ecx, [esp + 0x23]
call fcn.00401a30
cmp dword [esp + 0x54], esi
mov ecx, dword [esp + 0x40]
jae 0x402756
lea ecx, [esp + 0x40]
lea eax, [esp + 0x5cc]
neg eax
sbb eax, eax
neg eax
je 0x40277b
push eax
push ecx
lea eax, [esp + 0x9d4]
push eax
lea ecx, [esp + 0x5d8]
call fcn.00401db0
lea ecx, [esp + 0x74]
mov byte [esp + 0xde0], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x3c]
mov byte [esp + 0xde0], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x20]
mov byte [esp + 0xde0], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x90]
mov byte [esp + 0xde0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x58]
mov dword [esp + 0xde0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0xdd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xdc0]
xor ecx, esp
call fcn.0040339f
mov esp, ebp
pop ebp
ret