Function at 0x40c010
Capabilities:
Delete registry key
Enumerate process modules
Enumerate processes
Query or enumerate registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428086
mov eax, dword fs:[0]
push eax
sub esp, 0xad8
mov eax, dword [0x524104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xac8], edi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f02
push 0
call esi
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x130b
push dword [edi + 0x2bdd0]
call ebx
cmp eax, 0xffffffff
jne 0x40c08e
push 0
push 0
push dword [edi + 0x2c368]
call sub.mfc140u.dll_AfxMessageBox
xor al, al
jmp 0x40cedc
mov ecx, edi
call fcn.00415380
test al, al
jne 0x40c0c0
push 0x7f00
push 0
call esi
push eax
mov eax, dword [sym.imp.USER32.dll_SetCursor]
call eax
push 0
push 0
push dword [edi + 0x2c3a0]
call sub.mfc140u.dll_AfxMessageBox
xor al, al
jmp 0x40cedc
mov ecx, edi
call fcn.004151e0
test al, al
jne 0x40c0f2
push 0
push 0
push dword [edi + 0x2c3a4]
call sub.mfc140u.dll_AfxMessageBox
push 0x7f00
push 0
call esi
push eax
mov eax, dword [sym.imp.USER32.dll_SetCursor]
call eax
xor al, al
jmp 0x40cedc
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 0xf
mov byte [ebp - 0x468], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 2
push eax
push 1
call fcn.0041e0f0
add esp, 8
test eax, eax
je 0x40c16f
push 0
push 0
push dword [edi + 0x2c37c]
jmp 0x40c1af
lea eax, [ebp - 0x468]
push eax
push 5
call fcn.0041e0f0
add esp, 8
test eax, eax
je 0x40c190
push 0
push 0
push dword [edi + 0x2c380]
jmp 0x40c1af
lea eax, [ebp - 0x438]
push eax
push 2
call fcn.0041e0f0
add esp, 8
test eax, eax
je 0x40c1dc
push 0
push 0
push dword [edi + 0x2c384]
call sub.mfc140u.dll_AfxMessageBox
lea ecx, [ebp - 0x438]
call fcn.00401810
lea ecx, [ebp - 0x468]
call fcn.00401810
lea ecx, [ebp - 0x450]
call fcn.00401810
xor al, al
jmp 0x40cedc
lea ecx, [ebp - 0x438]
call fcn.00401810
lea ecx, [ebp - 0x468]
call fcn.00401810
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 0xffffffff
call fcn.00401810
mov ecx, edi
call fcn.004143a0
test al, al
jne 0x40c236
push 0x7f00
push 0
call esi
push eax
mov eax, dword [sym.imp.USER32.dll_SetCursor]
call eax
push 0
push 0
push dword [edi + 0x2c388]
call sub.mfc140u.dll_AfxMessageBox
xor al, al
jmp 0x40cedc
push 0
push 0
push 0x1304
push dword [edi + 0x2b8c8]
mov dword [ebp - 0xacc], 0
call ebx
test eax, eax
jle 0x40c5b4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [edi + 0x100]
mov dword [ebp - 0xac0], ebx
nop dword [eax + eax]
mov ecx, ebx
call fcn.00417b70
test eax, eax
je 0x40c572
mov ecx, ebx
call fcn.00417b10
push 0
push 2
mov edi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40c29f
mov al, 1
jmp 0x40c37a
lea eax, [ebp - 0xabc]
mov dword [ebp - 0xabc], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40c2d0
push ebx
call esi
mov al, 1
jmp 0x40c37a
push dword [ebp - 0xab4]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40c35a
lea eax, [ebp - 0x890]
mov dword [ebp - 0x890], 0x428
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x40c310
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x40c360
mov eax, edi
lea ecx, [ebp - 0x670]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40c33e
test dx, dx
je 0x40c33a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40c33e
add ecx, 4
add eax, 4
test dx, dx
jne 0x40c318
xor eax, eax
jmp 0x40c343
sbb eax, eax
or eax, 1
test eax, eax
je 0x40c805
lea eax, [ebp - 0x890]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
jmp 0x40c2fb
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xabc]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40c2d0
push ebx
call esi
xor al, al
mov edi, dword [ebp - 0xac8]
mov ebx, dword [ebp - 0xac0]
test al, al
jne 0x40c572
mov eax, dword [ebx + 0x1070]
test eax, eax
je 0x40c572
push dword [edi + 0xf8]
mov ecx, ebx
push eax
call fcn.0041a700
cmp al, 1
je 0x40c421
push 0
push 0
lea eax, [ebp - 0xad0]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov ecx, ebx
call fcn.00417b10
push eax
push dword [ebp - 0xad0]
lea eax, [ebp - 0xa98]
push str._s_for_file__s
push eax
call fcn.00415740
add esp, 0x10
lea eax, [ebp - 0xa98]
push 0
push 0x40
push eax
call sub.mfc140u.dll_AfxMessageBox
push 0
push 0x40
mov ecx, ebx
call fcn.00417b10
push eax
call sub.mfc140u.dll_AfxMessageBox
push dword [ebp - 0xad0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, ebx
call fcn.00417d60
lea edx, [ebp - 0x670]
sub edx, eax
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [eax + edx - 2], cx
test cx, cx
jne 0x40c430
lea edi, [ebp - 0x670]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x40c450
mov eax, dword [0x42dc1c]
lea edx, [ebp - 0x670]
mov dword [edi], eax
add edx, 0xfffffffe
nop dword [eax]
mov cx, word [edx + 2]
lea edx, [edx + 2]
test cx, cx
jne 0x40c470
mov ecx, dword [0x42f048]
lea edi, [ebp - 0x670]
mov dword [edx], ecx
add edi, 0xfffffffe
mov ecx, dword [str.nitoring]
mov dword [edx + 4], ecx
mov ecx, dword [0x42f050]
mov dword [edx + 8], ecx
mov ecx, dword [0x42f054]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x42f058]
mov dword [edx + 0x10], ecx
mov cx, word [0x42f05c]
mov word [edx + 0x14], cx
nop dword [eax]
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x40c4c0
lea edx, [ebp - 0x670]
mov dword [edi], eax
add edx, 0xfffffffe
nop word [eax + eax]
mov cx, word [edx + 2]
add edx, 2
test cx, cx
jne 0x40c4e0
mov ecx, dword [str.J2534_API]
lea edi, [ebp - 0x670]
mov dword [edx], ecx
add edi, 0xfffffffe
mov ecx, dword [0x42ef04]
mov dword [edx + 4], ecx
mov ecx, dword [0x42ef08]
mov dword [edx + 8], ecx
mov ecx, dword [0x42ef0c]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x42ef10]
mov dword [edx + 0x10], ecx
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x40c521
mov dword [edi], eax
lea edi, [ebp - 0x670]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40c540
mov ecx, 6
lea eax, [ebp - 0x670]
mov esi, str.MessageSizes
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
mov edi, dword [ebp - 0xac8]
lea ecx, [edi + 0x15a84]
call fcn.0041a6b0
mov esi, dword [ebp - 0xacc]
add ebx, 0x1074
push 0
push 0
push 0x1304
push dword [edi + 0x2b8c8]
inc esi
mov dword [ebp - 0xac0], ebx
mov dword [ebp - 0xacc], esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jl 0x40c270
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
push esi
push esi
push 0x1304
push dword [edi + 0x2bdd0]
mov dword [ebp - 0xac0], esi
call ebx
test eax, eax
jle 0x40c71e
lea ebx, [edi + 0x15ab8]
nop dword [eax]
mov ecx, ebx
call fcn.00417d60
lea edx, [ebp - 0x670]
sub edx, eax
nop
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [eax + edx - 2], cx
test cx, cx
jne 0x40c5f0
push 0
lea eax, [ebp - 0xad0]
push eax
push 0
push 0xf003f
push 1
push 0
push 0
lea eax, [ebp - 0x670]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40c6f4
push dword [edi + 0xf8]
mov ecx, ebx
push dword [ebp - 0xad0]
call fcn.0041a700
cmp al, 1
je 0x40c686
push 0
push 0
lea eax, [ebp - 0xacc]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0
push 0x40
push dword [ebp - 0xacc]
call sub.mfc140u.dll_AfxMessageBox
push dword [ebp - 0xacc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea edi, [ebp - 0x670]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x40c690
mov eax, dword [0x42dc1c]
mov dword [edi], eax
lea edi, [ebp - 0x670]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40c6b0
mov ecx, 6
lea eax, [ebp - 0x670]
mov esi, str.MessageSizes
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
mov edi, dword [ebp - 0xac8]
lea ecx, [edi + 0x2b43c]
call fcn.0041a6b0
push dword [ebp - 0xad0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xac0]
push 0
push 0
push 0x1304
push dword [edi + 0x2bdd0]
inc esi
add ebx, 0x1074
mov dword [ebp - 0xac0], esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, eax
jl 0x40c5e0
lea ecx, [ebp - 0xad4]
mov dword [ebp - 0xadc], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0xad8]
mov dword [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_Ordinal_296]
cmp dword [edi + 0x2c3ec], 0x10
lea eax, [edi + 0x2c3d8]
mov byte [ebp - 4], 5
jb 0x40c75c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xad8]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__12]
lea eax, [ebp - 0xadc]
push eax
push 0x42f044
lea eax, [ebp - 0xacc]
push eax
lea ecx, [ebp - 0xad8]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
push eax
lea ecx, [ebp - 0xad4]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__17]
lea ecx, [ebp - 0xacc]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x42d99c
lea ecx, [ebp - 0xad4]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__10]
test eax, eax
je 0x40cafe
lea esi, [edi + 0x2c3c0]
mov dword [ebp - 0xae4], esi
nop
mov eax, 0x14
call fcn.00425b40
mov edi, esp
test edi, edi
je 0x40c86f
push 9
push edi
push 0xffffffffffffffff
xor eax, eax
push str.Products
push eax
push 3
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove edi, ecx
jmp 0x40c871
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea ecx, [ebp - 0xac4]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push edi
mov edi, dword [ebp - 0xac8]
lea eax, [ebp - 0xac4]
mov dword [ebp - 4], 3
push dword [edi + 0x2c3b4]
push 0x42dc10
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__16]
add esp, 0x10
push 0
push 0
push dword [ebp - 0xac4]
call sub.mfc140u.dll_AfxMessageBox
push ebx
call esi
lea ecx, [ebp - 0xac4]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov al, 1
jmp 0x40c380
xor edi, edi
cmp dword [esi + 0x14], 0x10
mov ebx, esi
jb 0x40c87b
mov ebx, dword [esi]
test ebx, ebx
je 0x40c8cb
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c884
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0xad0], eax
cmp eax, 0x3fffffff
jg 0x40c8cb
add eax, eax
call fcn.00425b70
mov esi, esp
test esi, esi
je 0x40c8cb
push dword [ebp - 0xad0]
xor eax, eax
push esi
push 0xffffffffffffffff
push ebx
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x40c8cd
xor esi, esi
push dword [ebp - 0xad4]
lea eax, [ebp - 0x420]
push edi
push esi
push str._s_s_s
push eax
call fcn.00415740
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 8
push eax
push 1
call fcn.0041e0f0
add esp, 0x1c
test eax, eax
jne 0x40ca5a
push str.LastUsed
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xa98]
push str._s_s
push eax
call fcn.00415740
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xac4]
add esp, 0x10
push eax
push 0xf003f
push 0
lea eax, [ebp - 0xa98]
push eax
push 0x80000001
call edi
test eax, eax
jne 0x40ca1b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0xac0]
xor esi, esi
mov dword [ebp - 0xac0], 0x208
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x670]
push eax
push esi
push dword [ebp - 0xac4]
call ebx
test eax, eax
jne 0x40ca01
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0xac4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xac0]
mov dword [ebp - 0xac0], 0x208
push eax
lea eax, [ebp - 0x670]
inc esi
push eax
push esi
push dword [ebp - 0xac4]
call ebx
test eax, eax
je 0x40c9c0
push dword [ebp - 0xac4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
mov dword [ebp - 0xac4], 0
jmp 0x40ca21
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xacc]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x420]
push eax
push 0x80000001
call edi
test eax, eax
jne 0x40ca5a
push str.LastUsed
push dword [ebp - 0xacc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0xacc]
call ebx
mov edx, dword [ebp - 0x424]
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x40ca98
mov ecx, dword [ebp - 0x438]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ca8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cd3f
push edx
push ecx
call fcn.00425b14
add esp, 8
lea eax, [ebp - 0xadc]
push eax
push 0x42f044
lea eax, [ebp - 0xae0]
push eax
lea ecx, [ebp - 0xad8]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
push eax
lea ecx, [ebp - 0xad4]
mov byte [ebp - 4], 9
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__17]
lea ecx, [ebp - 0xae0]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x42d99c
lea ecx, [ebp - 0xad4]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__10]
test eax, eax
je 0x40caf8
mov esi, dword [ebp - 0xae4]
jmp 0x40c7d0
mov edi, dword [ebp - 0xac8]
lea ebx, [edi + 0x1170]
mov dword [ebp - 0xacc], 0
mov dword [ebp - 0xac0], ebx
lea ecx, [ebx - 0x1070]
call fcn.00417d60
mov edi, eax
test edi, edi
je 0x40cb83
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cb30
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x40cb83
lea ebx, [ecx + ecx]
mov eax, ebx
call fcn.00425b70
mov esi, esp
test esi, esi
je 0x40cb7d
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp - 0xac0]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x40cb85
mov ebx, dword [ebp - 0xac0]
xor esi, esi
mov ecx, esi
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40cba5
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x438]
call fcn.004028a0
cmp dword [ebp - 0x428], 0
mov byte [ebp - 4], 0xa
je 0x40cd0f
push 1
push 0x42eee8
lea ecx, [ebp - 0x438]
call fcn.00402740
push 0x14
push str.MonitoringJ2534_API
lea ecx, [ebp - 0x438]
call fcn.00402740
lea ecx, [ebx - 0x1070]
call fcn.00417c80
push eax
lea ecx, [ebp - 0xac4]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
cmp dword [ebx], 0
mov byte [ebp - 4], 0xb
je 0x40ccdc
lea ecx, [ebp - 0xac4]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
lea edx, [ebp - 0x218]
sub edx, eax
nop dword [eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x40cc30
mov eax, 0x18
call fcn.00425b40
mov eax, esp
push 3
push 0xb
push 0x42f0b4
push eax
call fcn.004019a0
mov ecx, dword [ebp - 0xac4]
mov edi, eax
mov esi, dword [ebx]
mov ecx, dword [ecx - 0xc]
add ecx, ecx
push ecx
lea ecx, [ebp - 0xac4]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40ccca
lea ecx, [ebp - 0xac4]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 5
call fcn.00401810
mov esi, dword [ebp - 0xacc]
add ebx, 0x1074
inc esi
mov dword [ebp - 0xac0], ebx
mov dword [ebp - 0xacc], esi
cmp esi, 0x14
jb 0x40cb14
jmp 0x40cd4f
mov edi, dword [ebp - 0xac8]
push 0
push 0
push dword [edi + 0x2c390]
jmp 0x40ccec
mov edi, dword [ebp - 0xac8]
push 0
push 0
push dword [edi + 0x2c38c]
call sub.mfc140u.dll_AfxMessageBox
lea ecx, [ebp - 0xac4]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x438]
call fcn.00401810
xor bl, bl
jmp 0x40cec2
mov edx, dword [ebp - 0x424]
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x40cd4f
mov ecx, dword [ebp - 0x438]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cd45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40cd45
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00425b14
add esp, 8
mov edi, dword [ebp - 0xac8]
xor ebx, ebx
add edi, 0x16b28
nop dword [eax]
lea ecx, [edi - 0x1070]
call fcn.00417c80
push eax
lea ecx, [ebp - 0xac0]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea ecx, [edi - 0x1070]
mov byte [ebp - 4], 0xc
call fcn.00417b00
test eax, eax
je 0x40ce25
cmp dword [edi], 0
je 0x40cefe
lea ecx, [ebp - 0xac0]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
lea edx, [ebp - 0x218]
sub edx, eax
nop dword [eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x40cdb0
mov eax, 0x18
call fcn.00425b40
mov esi, esp
test esi, esi
je 0x40cdf1
push 0xb
push esi
push 0xffffffffffffffff
xor eax, eax
push 0x42f0b4
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x40cdf3
xor esi, esi
push 0x208
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40ce8b
mov eax, dword [ebp - 0xac8]
push 0
push 0
push dword [eax + 0x2c39c]
jmp 0x40cf20
cmp dword [edi], 0
je 0x40ce8b
mov ax, word [0x42d99c]
mov word [ebp - 0x218], ax
mov eax, 0x18
call fcn.00425b40
mov esi, esp
test esi, esi
je 0x40ce68
push 0xb
push esi
push 0xffffffffffffffff
xor eax, eax
push 0x42f0b4
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x40ce6a
xor esi, esi
push 0x208
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40cf10
lea ecx, [ebp - 0xac0]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
inc ebx
add edi, 0x1074
cmp ebx, 0x14
jb 0x40cd60
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
mov eax, dword [sym.imp.USER32.dll_SetCursor]
call eax
mov bl, 1
lea ecx, [ebp - 0xad8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xad4]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov al, bl
lea esp, [ebp - 0xaf4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425b22
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xac8]
push 0
push 0
push dword [eax + 0x2c398]
jmp 0x40cf20
mov eax, dword [ebp - 0xac8]
push 0
push 0
push dword [eax + 0x2c394]
call sub.mfc140u.dll_AfxMessageBox
lea ecx, [ebp - 0xac0]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
xor bl, bl
jmp 0x40cec2