Function at 0x100396a6
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov dword [ebp - 4], 0x80
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x24], 0x80
lea ecx, [ebp - 0x30]
call fcn.1000bed0
lea ecx, [ebp - 0x30]
call fcn.10073cc2
push str.SOFTWAREPKPMMAINPATH
push 0x1008a828
call fcn.10066ab0
add esp, 8
lea eax, [ebp - 0x14c]
push eax
push 0xf003f
push 0
push 0x1008a828
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003972a
mov dword [ebp - 0x300], 0
lea ecx, [ebp - 0x30]
call fcn.10073d37
mov eax, dword [ebp - 0x300]
jmp 0x10039ac0
push str.CFG_SL
lea ecx, [ebp - 0x2f0]
push ecx
call fcn.10066ab0
add esp, 8
mov dword [ebp - 0x2f4], 0xc8
lea edx, [ebp - 0x2f4]
push edx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x228]
push ecx
push 0
lea edx, [ebp - 0x2f0]
push edx
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x2f8], eax
cmp dword [ebp - 0x2f8], 0
jne 0x10039791
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x30]
call fcn.10073e74
mov edx, dword [ebp - 0x14c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20]
call fcn.1000bed0
push 0x1008a8ac
lea ecx, [ebp - 0x158]
call fcn.10073da5
push str.PKPM.ini
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x304]
push ecx
call fcn.10073ed9
push eax
lea ecx, [ebp - 0x20]
call fcn.10073e24
lea ecx, [ebp - 0x304]
call fcn.10073d37
lea ecx, [ebp - 0x20]
call fcn.1000f820
push eax
push 0x100
lea edx, [ebp - 0x138]
push edx
lea ecx, [ebp - 0x158]
call fcn.1000f820
push eax
push str.DestInterrupt
push str.CFG_DEVICE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x158]
push ecx
call fcn.10072767
add esp, 8
lea ecx, [ebp - 0x158]
call fcn.1000f820
push eax
call fcn.1006737d
add esp, 4
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x148], 0x4f
mov dword [ebp - 0xc], 0x60c1
mov dword [ebp - 0x14], 0x6d4c
mov dword [ebp - 0x1c], 0x452c
mov dword [ebp - 0x2c], 0x2b42
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x154], 2
lea edx, [ebp - 0x15c]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov ecx, dword [ecx]
mov edx, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov eax, dword [edx]
mov edx, dword [eax]
call dword [edx + 0xe2c]
mov eax, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov ecx, dword [eax]
mov edx, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov eax, dword [edx]
mov edx, dword [eax]
call dword [edx + 0xe30]
mov eax, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov ecx, dword [eax]
mov edx, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov eax, dword [edx]
mov edx, dword [eax]
call dword [edx + 0xe34]
mov eax, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov ecx, dword [eax]
mov edx, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov eax, dword [edx]
mov edx, dword [eax]
call dword [edx + 0xe38]
mov dword [ebp - 0x13c], 0x45
mov dword [ebp - 0x140], 8
mov dword [ebp - 0x144], 3
mov dword [ebp - 0x150], 0x4f
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x148]
push ecx
lea edx, [ebp - 0x144]
push edx
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov ecx, dword [edx]
mov eax, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov edx, dword [eax]
mov eax, dword [edx]
call dword [eax + 0xe54]
mov ecx, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov ecx, dword [ecx]
mov edx, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov eax, dword [edx]
mov edx, dword [eax]
call dword [edx + 0xe3c]
mov dword [ebp - 0x38], 1
jmp 0x10039985
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jg 0x10039a36
mov dword [ebp - 0x2fc], 1
jmp 0x100399aa
mov ecx, dword [ebp - 0x2fc]
add ecx, 1
mov dword [ebp - 0x2fc], ecx
cmp dword [ebp - 0x2fc], 0x32
jg 0x100399cc
mov edx, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov ecx, dword [edx]
mov eax, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov edx, dword [eax]
mov eax, dword [edx]
call dword [eax + 0xe40]
jmp 0x1003999b
mov ecx, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov ecx, dword [ecx]
mov edx, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov eax, dword [edx]
mov edx, dword [eax]
call dword [edx + 0xe44]
mov eax, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov ecx, dword [eax]
mov edx, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov eax, dword [edx]
mov edx, dword [eax]
call dword [edx + 0xe48]
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov ecx, dword [ecx]
mov edx, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov eax, dword [edx]
mov edx, dword [eax]
call dword [edx + 0xe4c]
cmp dword [ebp - 0x154], 0
jne 0x10039a31
jmp 0x10039a36
jmp 0x1003997c
mov eax, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov ecx, dword [eax]
mov edx, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov eax, dword [edx]
mov edx, dword [eax]
call dword [edx + 0xe50]
cmp dword [ebp - 0x28], 0
jne 0x10039a95
cmp dword [ebp - 0x18], 1
jne 0x10039a95
cmp dword [ebp - 0x10], 0
jne 0x10039a95
cmp dword [ebp - 0x154], 0
jne 0x10039a95
mov dword [ebp - 0x308], 1
lea ecx, [ebp - 0x158]
call fcn.10073d37
lea ecx, [ebp - 0x20]
call fcn.10073d37
lea ecx, [ebp - 0x30]
call fcn.10073d37
mov eax, dword [ebp - 0x308]
jmp 0x10039ac0
mov dword [ebp - 0x30c], 0
lea ecx, [ebp - 0x158]
call fcn.10073d37
lea ecx, [ebp - 0x20]
call fcn.10073d37
lea ecx, [ebp - 0x30]
call fcn.10073d37
mov eax, dword [ebp - 0x30c]
mov esp, ebp
pop ebp
ret