Function at 0x40bd90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x41403c]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x5c], 0
push 0x426fa8
push 0x40
lea eax, [ebp - 0x58]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0xa
lea edx, [ebp - 0x180]
push edx
mov eax, dword [0x4272d8]
push eax
call fcn.00401409
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x40be43
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004081c0
movzx ecx, byte [0x4272c5]
test ecx, ecx
je 0x40be13
push 0x416120
push 0x416b78
push str.HWID
push 0x416448
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
movzx edx, byte [ebp + 0x14]
test edx, edx
je 0x40be2a
mov eax, dword [0x415e04]
add eax, 1
mov dword [0x415e04], eax
jmp 0x40be39
mov ecx, dword [0x41633c]
add ecx, 1
mov dword [0x41633c], ecx
mov eax, 2
jmp 0x40c025
lea edx, [ebp - 0x10]
push edx
push str.AddService
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x40c011
lea edx, [ebp - 0x5c]
push edx
push 2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetIntField]
push 0x4272d0
push 0xfe
lea ecx, [ebp - 0x280]
push ecx
push 1
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
mov eax, dword [ebp - 0x5c]
and eax, 2
je 0x40beb8
push 0x4272d0
push 0xfe
lea ecx, [ebp - 0x160]
push ecx
push 3
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
jne 0x40bf1a
lea eax, [ebp - 0x10]
push eax
push str.AddService
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupFindNextMatchLineA]
test eax, eax
jne 0x40bee8
mov edx, dword [0x41611c]
add edx, 1
mov dword [0x41611c], edx
mov eax, 1
jmp 0x40c025
lea eax, [ebp - 0x5c]
push eax
push 2
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetIntField]
push 0x4272d0
push 0xfe
lea edx, [ebp - 0x280]
push edx
push 1
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
jmp 0x40be8f
lea ecx, [ebp - 0x280]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x160]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040b010
mov dword [ebp - 0x284], eax
cmp dword [ebp - 0x284], 6
ja case.default.0x40bf52
mov eax, dword [ebp - 0x284]
jmp dword [eax*4 + 0x40c038]
movzx ecx, byte [0x4272c5]
test ecx, ecx
je 0x40bf7e
push 0x416120
push 0x416b78
push str.HWID
push 0x416448
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
movzx edx, byte [ebp + 0x14]
test edx, edx
je 0x40bf95
mov eax, dword [0x415e04]
add eax, 1
mov dword [0x415e04], eax
jmp 0x40bfa4
mov ecx, dword [0x41633c]
add ecx, 1
mov dword [0x41633c], ecx
mov eax, 2
jmp 0x40c025
mov edx, dword [0x41611c]
add edx, 1
mov dword [0x41611c], edx
mov eax, 1
jmp 0x40c025
mov eax, dword [0x41611c]
add eax, 1
mov dword [0x41611c], eax
xor eax, eax
jmp 0x40c025
mov ecx, dword [0x41611c]
add ecx, 1
mov dword [0x41611c], ecx
mov eax, 1
jmp 0x40c025
mov edx, dword [0x41611c]
add edx, 1
mov dword [0x41611c], edx
xor eax, eax
jmp 0x40c025
mov eax, dword [0x41611c]
add eax, 1
mov dword [0x41611c], eax
mov eax, 1
jmp 0x40c025
jmp 0x40c020
mov ecx, dword [0x41611c]
add ecx, 1
mov dword [0x41611c], ecx
mov eax, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00401035
mov esp, ebp
pop ebp
ret 0x10