Function at 0x4162d0
Capabilities:
Enumerate services
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a82f3
push eax
mov eax, 0x10fc
mov dword fs:[0], esp
call fcn.004a6750
push ebx
push ebp
mov dword [esp + 0x64], ecx
push esi
push edi
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_5
mov eax, dword [0x545f7c]
lea edx, [esp + 0x14]
xor ebx, ebx
mov ecx, dword [eax*4 + 0x4cf0b0]
mov dword [esp + 0x1114], ebx
push ecx
push 0x4cd9cc
push 0x4cd9c0
push edx
call sub.MFC42u.DLL_CString::Format
mov esi, dword [esp + 0x1138]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x1134]
add esp, 0x10
mov eax, dword [esi]
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
push 1
mov ecx, edi
call sub.MFC42u.DLL_CListCtrl::InsertItem
mov ebp, dword [esi]
lea ecx, [esp + 0x14]
inc ebp
mov dword [esi], ebp
mov edx, dword [0x545f7c]
mov eax, dword [edx*4 + 0x4cf0b0]
push eax
push 0x4cb1f8
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [edi + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0xc
push ebx
push ebx
push 0x1004
push edx
call esi
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
push 1
mov ecx, edi
call sub.MFC42u.DLL_CListCtrl::InsertItem
mov edx, dword [edi + 0x20]
push ebx
push ebx
push 0x1004
push edx
call esi
push ebx
push ebx
push ebx
push ebx
push 0x545dc4
push eax
push 1
mov ecx, edi
call sub.MFC42u.DLL_CListCtrl::InsertItem
mov eax, dword [edi + 0x20]
push ebx
push ebx
push 0x1004
push eax
call esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x80], eax
mov dword [esp + 0x90], ebx
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1114], 1
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0x9c]
mov byte [esp + 0x1114], 2
call sub.MFC42u.DLL_CString::CString_5
mov cl, byte [esp + 0x7f]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x28], cl
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
lea ecx, [esp + 0x44]
mov byte [esp + 0x1114], 4
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0x48]
mov byte [esp + 0x1114], 5
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1114], 6
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0x50]
mov byte [esp + 0x1114], 7
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0x54]
mov byte [esp + 0x1114], 8
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0x58]
mov byte [esp + 0x1114], 9
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1114], 0xa
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0x60]
mov byte [esp + 0x1114], 0xb
call sub.MFC42u.DLL_CString::CString_5
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
mov byte [esp + 0x1114], 0xc
mov ebp, eax
mov edi, ecx
mov esi, eax
je 0x4164c9
push ebx
mov ecx, esi
call fcn.0041a710
add esi, 0x24
cmp esi, edi
jne 0x4164ba
push 0xf003f
push ebx
push ebx
mov dword [esp + 0x3c], ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
cmp ebp, ebx
je 0x4167d9
lea edx, [esp + 0x90]
lea eax, [esp + 0x88]
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0xf4]
push 0x24
push edx
push 3
push 0x30
push ebp
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4167d2
mov eax, dword [esp + 0x20]
add eax, 0x24
mov dword [esp + 0x20], eax
lea eax, [eax + eax*8]
shl eax, 2
push eax
call sub.MFC42u.DLL_operatornew
add esp, 4
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x4167d2
lea ecx, [esp + 0x90]
lea edx, [esp + 0x88]
push ecx
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x28]
push ecx
push edx
push eax
push 3
push 0x30
push ebp
call esi
cmp eax, 1
jne 0x4167c3
mov eax, dword [esp + 0x88]
xor ebx, ebx
test eax, eax
jbe 0x4167c3
mov eax, dword [esp + 0x24]
lea esi, [eax + 0xc]
mov ecx, dword [esp + 0x111c]
cmp dword [ecx], 1
je 0x4167c3
lea ecx, [esp + 0x44]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esp + 0x48]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esp + 0x4c]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esp + 0x50]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esp + 0x54]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esp + 0x58]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esp + 0x5c]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esp + 0x60]
call sub.MFC42u.DLL_CString::Empty
mov dword [esp + 0x64], 1
mov edx, dword [esi - 0xc]
push edx
lea eax, [esp + 0x48]
push 0x4cb1f8
push eax
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esi]
add esp, 0xc
cmp eax, 7
ja 0x41660b
test eax, eax
jne 0x416611
mov dword [esi], 8
mov eax, dword [esi]
dec eax
and eax, 7
mov dword [esi], eax
mov ecx, dword [0x545f7c]
lea edx, [ecx + eax*2]
lea ecx, [esp + 0x48]
add eax, edx
mov eax, dword [eax*4 + 0x4cee90]
push eax
push 0x4cb1f8
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esi - 0xc]
add esp, 0xc
push 1
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x41679b
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10c]
push eax
push 0x1000
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x416794
mov eax, dword [esp + 0x110]
mov byte [esp + 0x110b], 0
cmp eax, 4
mov byte [esp + 0x110a], 0
jbe 0x41669e
mov eax, 4
mov dword [esp + 0x110], eax
mov edx, dword [0x545f7c]
lea ecx, [edx + eax*2]
add eax, ecx
mov edx, dword [eax*4 + 0x4ceef0]
lea eax, [esp + 0x4c]
push edx
push 0x4cb1f8
push eax
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x124]
add esp, 0xc
lea edx, [esp + 0x10]
push ecx
push 0x4cb1f8
push edx
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x78]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call fcn.00417a30
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x54]
push ecx
push 0x4cb1f8
push edx
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x78]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call fcn.00417b70
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.0040ab80
mov eax, dword [esp + 0x18]
add esp, 8
lea ecx, [esp + 0x58]
push eax
push 0x4cb1f8
push ecx
call sub.MFC42u.DLL_CString::Format
lea edx, [esp + 0x64]
push edx
call fcn.0040b4a0
add esp, 0x10
test eax, eax
jne 0x41674b
mov dword [esp + 0x64], eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10c]
push eax
push 0x1000
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
test eax, eax
je 0x416794
mov edx, dword [esp + 0x10c]
lea eax, [esp + 0x50]
push edx
push 0x4cb1f8
push eax
mov byte [esp + 0x1117], 0
mov byte [esp + 0x1116], 0
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x44]
push ecx
push 1
push edx
lea ecx, [esp + 0x34]
call fcn.0041a270
mov eax, dword [esp + 0x88]
inc ebx
add esi, 0x24
cmp ebx, eax
jb 0x41658a
mov eax, dword [esp + 0x24]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor ebx, ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0x70]
mov byte [esp + 0x1114], 0xd
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1114], 0xe
call fcn.0043f5c0
lea ecx, [esp + 0xa0]
mov byte [esp + 0x1114], 0xf
call fcn.0043f5c0
mov byte [esp + 0x1114], 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
and eax, 0xff
push 0x100000
mov dword [esp + 0xb8], eax
call esi
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x8c], edi
je 0x416f82
push 0x100000
call esi
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x68], esi
je 0x416f78
push str.RegistryMachineSYSTEMCurrentControlSetServices
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0xb8]
push eax
push str.RegistryMachineSYSTEMCurrentControlSetServices
call fcn.0043f800
lea ecx, [esp + 0x98]
push ecx
push 0x20019
lea ecx, [esp + 0xc0]
call fcn.0043f6a0
push eax
lea ecx, [esp + 0xc4]
call fcn.0043f6b0
push eax
call fcn.0042f560
add esp, 0x10
cmp al, 1
jne 0x416f6e
mov dword [esp + 0x78], ebx
mov edx, dword [esp + 0x111c]
cmp dword [edx], 1
je 0x416f55
mov edi, dword [esp + 0x8c]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x98]
push ebx
push ebx
push ebx
push ebx
push 0x100000
push edi
push ebx
push eax
push ecx
push 0x20
call fcn.0042f5e0
add esp, 0x28
cmp al, 1
jne 0x416f5c
mov dword [esp + 0x24], edi
mov edx, dword [esp + 0x111c]
cmp dword [edx], 1
je 0x4168c9
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x3c]
mov eax, dword [edi + 0xc]
lea esi, [edi + 0x10]
shr eax, 1
push eax
push esi
call sub.MFC42u.DLL_CString::CString_1
push str.RegistryMachineSYSTEMCurrentControlSetServices
mov byte [esp + 0x1118], 0x11
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0xa0]
push eax
push str.RegistryMachineSYSTEMCurrentControlSetServices
call fcn.0043f800
push 1
push 0x4cb224
lea ecx, [esp + 0xa8]
call fcn.0043f820
mov ecx, dword [edi + 0xc]
shr ecx, 1
push ecx
push esi
lea ecx, [esp + 0xa8]
call fcn.0043f820
lea ecx, [esp + 0x70]
xor edi, edi
xor ebp, ebp
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::Empty
lea edx, [esp + 0x38]
lea ecx, [esp + 0xa0]
push edx
push 0x20019
call fcn.0043f6a0
push eax
lea ecx, [esp + 0xac]
call fcn.0043f6b0
push eax
call fcn.0042f560
add esp, 0x10
cmp al, 1
jne 0x416f1c
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x38]
push ebx
push ebx
push ebx
push ebx
push 0x100000
push eax
push 1
push ebx
push ecx
push 0x21
call fcn.0042f5e0
add esp, 0x28
cmp al, 1
jne 0x416b9d
mov esi, dword [esp + 0x68]
mov edx, dword [esp + 0x111c]
cmp dword [edx], 1
je 0x416b9d
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x416b6e
shr eax, 1
push eax
lea eax, [esi + 0x14]
push eax
lea ecx, [esp + 0x48]
call sub.MFC42u.DLL_CString::CString_1
mov ecx, dword [esp + 0x40]
push str.ImagePath
push ecx
mov byte [esp + 0x111c], 0x12
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
cmp eax, ebx
jne 0x416aa9
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x416b5d
mov edx, dword [esi + 0xc]
add eax, esi
shr edx, 1
push edx
push eax
lea ecx, [esp + 0x7c]
call sub.MFC42u.DLL_CString::CString_1
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x1118], 0x13
call fcn.004177b0
cmp eax, 1
je 0x416b7b
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x10]
push ecx
push 0x4cb1f8
push edx
mov ebp, 1
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov byte [esp + 0x1114], 0x12
lea ecx, [esp + 0x74]
jmp 0x416b58
mov eax, dword [esp + 0x40]
push str.Start
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
cmp eax, ebx
jne 0x416ae9
mov eax, dword [esi + 8]
mov edi, 1
cmp eax, 0xffffffff
je 0x416adc
mov ecx, dword [eax + esi]
mov dword [esp + 0x84], ecx
jmp 0x416b5d
mov dword [esp + 0x84], 5
jmp 0x416b5d
mov edx, dword [esp + 0x40]
push str.Description
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
cmp eax, ebx
jne 0x416b5d
cmp dword [esp + 0xb4], 6
je 0x416b5d
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x416b5d
mov ecx, dword [esi + 0xc]
add eax, esi
shr ecx, 1
push ecx
push eax
lea ecx, [esp + 0x9c]
call sub.MFC42u.DLL_CString::CString_1
mov edx, dword [esp + 0x94]
lea eax, [esp + 0x70]
push edx
push 0x4cb1f8
push eax
mov byte [esp + 0x1120], 0x14
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov byte [esp + 0x1114], 0x12
lea ecx, [esp + 0x94]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x1114], 0x11
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esi]
cmp eax, ebx
je 0x416b9d
add esi, eax
jmp 0x4169f5
lea ecx, [esp + 0x74]
mov byte [esp + 0x1114], 0x12
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x1114], 0x11
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 1
jne 0x416f1c
cmp ebp, edi
jne 0x416f1c
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp esi, eax
je 0x416bf3
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
mov eax, dword [esi]
mov edx, dword [esp + 0x3c]
push eax
push edx
call edi
add esp, 8
cmp eax, ebx
je 0x416be9
mov eax, dword [esp + 0x30]
add esi, 0x24
cmp esi, eax
jne 0x416bcb
jmp 0x416bf3
cmp esi, dword [esp + 0x30]
jne 0x416d2a
lea ecx, [esp + 0x44]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esp + 0x48]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esp + 0x4c]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esp + 0x50]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esp + 0x54]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esp + 0x58]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esp + 0x5c]
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esp + 0x60]
call sub.MFC42u.DLL_CString::Empty
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x44]
push eax
push 0x4cb1f8
push ecx
mov dword [esp + 0x70], 1
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov dword [esp + 0x64], ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, ebx
je 0x416ceb
mov edx, dword [esp + 0x3c]
push 5
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
je 0x416ce4
lea eax, [esp + 0xcc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x416cdd
mov eax, dword [esp + 0xd0]
cmp eax, 7
ja 0x416ca8
cmp eax, ebx
jne 0x416cad
mov eax, 8
mov ecx, dword [0x545f7c]
dec eax
and eax, 7
mov dword [esp + 0xd0], eax
lea edx, [ecx + eax*2]
lea ecx, [esp + 0x48]
add eax, edx
mov eax, dword [eax*4 + 0x4cee90]
push eax
push 0x4cb1f8
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x44]
push edx
push 1
push eax
lea ecx, [esp + 0x34]
call fcn.0041a270
mov esi, dword [esp + 0x2c]
cmp esi, ebx
jne 0x416d0c
xor edx, edx
jmp 0x416d23
mov ecx, dword [esp + 0x30]
mov eax, 0x38e38e39
sub ecx, esi
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea edx, [edx + edx*8]
lea esi, [esi + edx*4 - 0x24]
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Empty
push str.Parameters
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0xa0]
push eax
push str.Parameters
call fcn.0043f820
lea eax, [esp + 0x38]
lea ecx, [esp + 0xa0]
push eax
push 0x20019
call fcn.0043f6a0
push eax
lea ecx, [esp + 0xac]
call fcn.0043f6b0
push eax
call fcn.0042f560
add esp, 0x10
cmp al, 1
jne 0x416de8
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x38]
push 0x100000
push edi
push str.ServiceDll
push 1
push ecx
call fcn.0042f860
add esp, 0x14
cmp al, 1
jne 0x416ddd
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x416ddd
mov ecx, dword [edi + 0xc]
add eax, ecx
mov ecx, edi
mov byte [eax + edi], 0
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
add edx, edi
mov byte [edx + eax + 1], 0
mov ebp, dword [edi + 8]
add ecx, ebp
lea edx, [esp + 0x18]
push ecx
push 0x4cb1f8
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x84]
cmp eax, 4
jbe 0x416e00
mov eax, 4
mov dword [esp + 0x84], eax
mov ecx, dword [0x545f7c]
lea edx, [ecx + eax*2]
lea ecx, [esi + 8]
add eax, edx
mov eax, dword [eax*4 + 0x4ceef0]
push eax
push 0x4cb1f8
push ecx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x7c]
add esp, 0xc
cmp dword [eax - 8], ebx
je 0x416e3f
push eax
lea edx, [esi + 0xc]
push 0x4cb1f8
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov ebp, dword [esp + 0x6c]
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
call fcn.00417a30
mov ecx, dword [esp + 0x10]
lea edi, [esi + 0x10]
push ecx
push 0x4cb1f8
push edi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.00417b70
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.0040ab80
mov edx, dword [esp + 0x24]
add esp, 8
push edx
push 0x4cb1f8
push edi
call sub.MFC42u.DLL_CString::Format
lea eax, [esp + 0x28]
push eax
call fcn.0040b4a0
add esp, 0x10
test eax, eax
jne 0x416ea8
mov dword [esp + 0x64], ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00417a30
mov edx, dword [esp + 0x18]
lea eax, [esi + 0x18]
push edx
push 0x4cb1f8
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00417b70
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.0040ab80
mov ecx, dword [esp + 0x24]
add esp, 8
add esi, 0x1c
push ecx
push 0x4cb1f8
push esi
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x24]
add esp, 0xc
cmp dword [edx - 8], ebx
je 0x416f1c
lea eax, [esp + 0x1c]
push eax
call fcn.0040b4a0
add esp, 4
test eax, eax
jne 0x416f1c
mov dword [esp + 0x64], ebx
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x78]
inc ecx
mov byte [esp + 0x1114], 0x10
mov eax, dword [esi]
mov dword [esp + 0x78], ecx
cmp eax, ebx
lea ecx, [esp + 0x3c]
je 0x416f4b
call sub.MFC42u.DLL_CString::CString
add esi, dword [esi]
mov dword [esp + 0x24], esi
jmp 0x41690e
call sub.MFC42u.DLL_CString::CString
jmp 0x4168c9
mov edi, dword [esp + 0x8c]
mov ecx, dword [esp + 0x98]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x68]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp esi, eax
je 0x417017
mov edi, dword [esp + 0x1120]
add esi, 0x1c
cmp edi, 1
jne 0x416fa8
cmp dword [esi + 4], ebx
je 0x416fac
jmp 0x417009
cmp edi, ebx
jne 0x417009
mov edx, dword [esi]
mov eax, dword [esi - 4]
mov ecx, dword [esi - 8]
push edx
mov edx, dword [esi - 0xc]
push eax
mov eax, dword [esi - 0x14]
push ecx
mov ecx, dword [esi - 0x18]
push edx
mov edx, dword [esi - 0x1c]
push eax
push ecx
push edx
push 0x4cd9cc
lea eax, [esp + 0x34]
push str._s__s____s____s____s____s____s____s
push eax
call sub.MFC42u.DLL_CString::Format
mov ebp, dword [esp + 0x114c]
add esp, 0x28
mov ecx, dword [ebp + 0x20]
push ebx
push ebx
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
push edx
push eax
push 1
mov ecx, ebp
call sub.MFC42u.DLL_CListCtrl::InsertItem
mov ecx, dword [esp + 0x30]
add esi, 0x24
lea eax, [esi - 0x1c]
cmp eax, ecx
jne 0x416f9c
mov esi, dword [esp + 0x1124]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
mov ecx, dword [esi + 0x20]
push 0x1004
push ecx
call edi
cmp dword [esp + 0x80], eax
jne 0x41707f
mov edx, dword [0x545f7c]
lea ecx, [esp + 0x14]
mov eax, dword [edx*4 + 0x4cbb78]
push eax
push 0x4cd9cc
push str._s__s
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esi + 0x20]
add esp, 0x10
push ebx
push ebx
push 0x1004
push edx
call edi
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
push 1
mov ecx, esi
call sub.MFC42u.DLL_CListCtrl::InsertItem
lea ecx, [esp + 0xa0]
mov byte [esp + 0x1114], 0xf
call fcn.0043f670
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1114], 0xe
call fcn.0043f670
lea ecx, [esp + 0x70]
mov byte [esp + 0x1114], 0xd
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x1114], 0xc
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x60]
mov byte [esp + 0x1114], 0x1b
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1114], 0x1a
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x58]
mov byte [esp + 0x1114], 0x19
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x54]
mov byte [esp + 0x1114], 0x18
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x1114], 0x17
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1114], 0x16
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x1114], 0x15
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x1114], 4
call sub.MFC42u.DLL_CString::CString
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
cmp esi, edi
mov dword [esp + 0x80], esi
je 0x4171fe
mov bl, 0x1c
lea ecx, [esi + 0x1c]
mov byte [esp + 0x1114], 0x22
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x18]
mov byte [esp + 0x1114], 0x21
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x14]
mov byte [esp + 0x1114], 0x20
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x10]
mov byte [esp + 0x1114], 0x1f
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0xc]
mov byte [esp + 0x1114], 0x1e
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 8]
mov byte [esp + 0x1114], 0x1d
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 4]
mov byte [esp + 0x1114], bl
call sub.MFC42u.DLL_CString::CString
mov ecx, esi
mov byte [esp + 0x1114], 3
call sub.MFC42u.DLL_CString::CString
add esi, 0x24
cmp esi, edi
mov dword [esp + 0x80], esi
jne 0x41716a
mov esi, dword [esp + 0x2c]
push esi
call sub.MFC42u.DLL_operatordelete
xor eax, eax
add esp, 4
lea ecx, [esp + 0x9c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x1114], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1114], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1114], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x1114], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x110c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1108
ret 0x10