Function at 0x40a0ab
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x440918
call fcn.004151bc
mov eax, 0x2ddc
call fcn.00416000
mov eax, dword [0x466c7c]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], eax
push 0x5e5
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004363be
push 1
push ebx
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0040bf1d
lea eax, [edi + 0x238]
push str.Setup.ini
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00432b8c
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00432a96
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004329a9
push dword [ebp - 0x24]
lea eax, [ebp - 0x2de8]
push 0x2800
push eax
push 0x467e68
push ebx
push str.REGISTRY
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, edi
call fcn.0040901d
mov ecx, dword [eax + 8]
xor edx, edx
cmp ecx, ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x20], edx
jbe 0x40a3dc
mov ecx, dword [eax + 4]
mov esi, dword [ecx + edx*4]
cmp dword [esi + 0x20], ebx
je 0x40a3c7
cmp byte [ebp - 0x2de8], bl
lea ecx, [ebp - 0x2de8]
mov dword [ebp - 0x1c], ecx
je 0x40a3c7
push dword [ebp - 0x24]
lea eax, [ebp - 0x5e8]
push 0x400
push eax
push str.Error
push dword [ebp - 0x1c]
push str.REGISTRY
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x5e8]
push str.Error
push eax
call fcn.00415510
pop ecx
test eax, eax
pop ecx
je 0x40a3a7
call fcn.00401158
mov ecx, eax
call fcn.004012df
test al, al
jne 0x40a2e0
lea eax, [ebp - 0x1e8]
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1e8], 0x1a8
push ebx
push ebx
call dword [0x467c50]
test eax, eax
je 0x40a35f
mov eax, dword [esi + 0x2c]
lea ecx, [ebp - 0x140]
push ecx
push eax
call fcn.00415490
pop ecx
test eax, eax
pop ecx
je 0x40a2cd
mov eax, dword [0x466c7c]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00432ae6
push ebx
push 0x453458
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00431c04
push 1
push eax
lea ecx, [ebp - 0x14]
call fcn.0043191a
push ebx
push 0x453458
lea ecx, [ebp - 0x14]
call fcn.00431c04
inc eax
lea ecx, [ebp - 0x14]
push eax
push ebx
call fcn.0043191a
push ebx
push 0x453458
lea ecx, [ebp - 0x14]
call fcn.00431c04
inc eax
lea ecx, [ebp - 0x14]
push eax
push ebx
call fcn.0043191a
push 1
push ecx
lea eax, [ebp - 0x5e8]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.00432a17
push ecx
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x3c], esp
push dword [ebp - 0x1c]
call fcn.00432a17
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
mov byte [ebp - 4], 6
call fcn.0043271e
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00409cc9
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004329a9
inc dword [ebp - 0x18]
lea eax, [ebp - 0x1e8]
push ebx
push eax
push dword [ebp - 0x18]
jmp 0x40a1ee
lea ecx, [ebp - 0x2c]
lea eax, [esi + 4]
push ecx
push ebx
push ebx
push ebx
push 4
push eax
push dword [esi]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x2c]
push eax
push ebx
lea eax, [esi + 4]
push 4
push eax
push dword [esi]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push ebx
push ecx
lea eax, [ebp - 0x5e8]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.00432a17
push ecx
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x3c], esp
push dword [ebp - 0x1c]
call fcn.00432a17
push ecx
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x30], esp
push dword [ebp - 0x18]
call fcn.0040a453
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00409cc9
push 0x462e98
lea ecx, [ebp - 0x10]
call fcn.00432ae6
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call fcn.00432c5f
push 0x462e94
lea ecx, [ebp - 0x10]
call fcn.00432c5f
lea eax, [ebp - 0x5e8]
lea ecx, [ebp - 0x10]
push eax
call fcn.00432c5f
push 1
push ebx
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0040bf1d
mov dword [ebp - 0x18], 1
push dword [ebp - 0x1c]
call fcn.00415410
pop ecx
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + eax + 1], bl
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x1c], eax
jne 0x40a187
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x20]
inc edx
cmp edx, dword [ebp - 0x38]
mov dword [ebp - 0x20], edx
jb 0x40a163
cmp dword [ebp - 0x18], ebx
jne 0x40a40f
push 0x5e4
lea ecx, [ebp - 0x10]
call fcn.004363be
push 0x462e98
lea ecx, [ebp - 0x28]
call fcn.00432ae6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00432c9b
push 1
push ebx
push dword [ebp - 0x28]
mov ecx, edi
call fcn.0040bf1d
push 1
push ebx
push 0x467e68
mov ecx, edi
call fcn.0040bf1d
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004329a9
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004329a9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004329a9
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret