Function at 0x41e330
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423f24
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00413110
movsx ecx, word [0x42ca60]
mov edx, dword [0x42ca80]
xor ebx, ebx
push ecx
push edx
mov dword [ebp - 4], ebx
call fcn.0040e9f0
mov ecx, dword [0x42ca88]
add esp, 0xc
add ecx, 0x113e0001
cmp word [0x42ca52], bx
mov byte [0x42ca50], al
mov dword [0x42ca88], ecx
jne 0x41e3a0
cmp word [0x42ca60], bx
jne 0x41e3a0
xor eax, eax
jmp 0x41e3a5
mov eax, 1
mov cl, byte [0x42ca4c]
mov edi, dword [ebp - 0x20]
add cl, al
cmp edi, 4
mov byte [0x42ca4c], cl
jbe 0x41e850
movsx eax, word [0x42ca56]
movsx ecx, byte [0x42ca4e]
movsx dx, byte [0x42ca48]
and eax, ecx
mov ecx, dword [0x42ca84]
mov dword [0x42ca70], eax
mov al, byte [0x42c848]
sub al, 0xb
sub edx, ecx
add word [0x42ca58], dx
and eax, 0xff
add eax, 3
and al, 0xfc
call fcn.00422b60
mov eax, esp
push 0x42c848
push eax
call fcn.00420bc0
mov esi, eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
add esp, 8
add edi, 0xfffffffc
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push ecx
push edi
push edx
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 4], 1
repne scasb al, byte es:[edi]
mov eax, dword [edx + 8]
not ecx
dec ecx
push ecx
push esi
push eax
push ebx
mov ecx, edx
call dword [sym.imp.MSVCP60.dll_public:_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::compare_unsigned_int__unsigned_int__char_const___unsigned_int_const]
push 1
lea ecx, [ebp - 0x38]
mov esi, eax
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
cmp esi, ebx
je 0x41e601
mov edi, dword [0x42ca70]
movsx edx, word [0x42ca5a]
movsx eax, byte [0x42ca51]
cmp edi, ebx
push edx
setne cl
push eax
mov byte [0x42ca48], cl
call fcn.0040e840
push 0xe08bffff
push 0x7789ffff
mov dword [0x42ca84], eax
call fcn.0040e7a0
mov cl, byte [0x42ca4e]
add esp, 0x10
add cl, al
mov al, byte [0x42c848]
sub al, 0xb
mov byte [0x42ca4e], cl
and eax, 0xff
add eax, 3
and al, 0xfc
call fcn.00422b60
mov eax, esp
push 0x42c848
push eax
call fcn.00420bc0
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x38]
push ecx
push edx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0x14
mov eax, dword [eax + 4]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp eax, ebx
mov byte [ebp - 4], 2
jne 0x41e4f8
mov eax, edx
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
jne 0x41e501
mov ecx, edx
push ebx
push eax
push ecx
call dword [0x42d08c]
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 0
cmp eax, ebx
je 0x41e532
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41e529
cmp al, 0xff
je 0x41e529
dec al
mov byte [ecx], al
jmp 0x41e532
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
movsx eax, word [0x42ca54]
push 0x9697ffff
push eax
call fcn.0040e8d0
mov cl, byte [0x42ca4c]
add esp, 8
add cl, al
mov al, byte [0x42c848]
sub al, 0xb
mov byte [0x42ca4c], cl
and eax, 0xff
add eax, 3
and al, 0xfc
call fcn.00422b60
mov eax, esp
push 0x42c848
push eax
call fcn.00420bc0
mov ebx, eax
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x20]
sub edx, ecx
cmp edx, esi
ja 0x41e5a2
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x41e5e6
mov eax, dword [ebp - 0x20]
push 0
add eax, esi
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41e5e6
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov byte [ecx + eax], 0
mov eax, dword [0x42ca6c]
dec word [0x42ca5e]
xor edx, edx
test eax, eax
setne dl
mov dword [0x42ca84], edx
xor ebx, ebx
or ax, 0xffff
push 0xe53bffff
sub ax, word [0x42ca5c]
push 0xc3d7ffff
mov word [0x42ca56], ax
mov al, byte [0x42ca4a]
inc al
mov byte [0x42ca4a], al
call fcn.0040e960
mov dword [0x42ca8c], eax
mov al, byte [0x42c818]
sub al, 0xb
add esp, 8
and eax, 0xff
add eax, 3
and al, 0xfc
call fcn.00422b60
mov eax, esp
lea ecx, [ebp - 0x14]
push ebx
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push 0x42c818
push eax
call fcn.00420bc0
add esp, 8
push eax
push SysReAllocString
call dword [0x42d00c]
test eax, eax
je 0x41e6c1
mov al, byte [0x42c818]
sub al, 0xb
and eax, 0xff
add eax, 3
and al, 0xfc
call fcn.00422b60
mov eax, esp
lea edx, [ebp - 0x14]
push ebx
push edx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push 0x42c818
push eax
call fcn.00420bc0
add esp, 8
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [0x42d00c]
test eax, eax
jne 0x41e827
movsx ax, byte [0x42ca4f]
and ax, word [0x42ca60]
mov cl, byte [ebp - 0xd]
mov byte [ebp - 0x38], cl
mov dword [ebp - 0x34], ebx
add word [0x42ca5e], ax
mov al, byte [0x42ca4d]
inc al
mov dword [ebp - 0x30], ebx
mov byte [0x42ca4d], al
mov dword [ebp - 0x2c], ebx
mov edx, dword [0x42ca8c]
mov eax, dword [0x42ca74]
push edx
push eax
mov byte [ebp - 4], 3
call fcn.0040e840
push 0xdb17ffff
push 0x72c1ffff
mov word [0x42ca52], ax
call fcn.0040e9b0
add word [0x42ca56], ax
lea ecx, [ebp - 0x38]
push ecx
push 7
call fcn.0040ea80
mov edx, dword [0x42ca6c]
mov ax, word [0x42ca60]
and dx, ax
push 0x6eb5ffff
add ax, dx
mov word [0x42ca60], ax
movsx eax, word [0x42ca64]
push eax
call fcn.0040e7e0
mov cl, byte [0x42ca48]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
add cl, al
add esp, 0x20
mov byte [0x42ca48], cl
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
jne 0x41e779
mov ecx, edx
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x41e782
mov eax, edx
mov edx, dword [ebp - 0x20]
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
movsx ecx, byte [0x42ca4f]
movsx edx, word [0x42ca58]
push ecx
push edx
call fcn.0040e9b0
mov edx, dword [0x42ca7c]
mov word [0x42ca60], ax
movsx eax, byte [0x42ca4e]
mov ecx, 0x9fc3ffff
add esp, 8
sub ecx, eax
mov byte [0x42ca4a], 0xff
add edx, ecx
mov dword [0x42ca7c], edx
mov edx, dword [ebp - 0x14]
push edx
call dword [0x42d008]
push 0x40f9ffff
push 0x599fffff
call fcn.0040ea40
mov cl, byte [0x42ca4c]
add esp, 8
add cl, al
mov byte [ebp - 4], 0
mov byte [0x42ca4c], cl
mov ecx, dword [ebp - 0x34]
cmp ecx, ebx
je 0x41e827
mov al, byte [ecx - 1]
test al, al
je 0x41e81d
cmp al, 0xff
je 0x41e81d
dec al
mov byte [ecx - 1], al
jmp 0x41e827
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, byte [0x42ca5c]
mov dl, byte [0x42ca4d]
mov cl, byte [0x42ca4f]
add al, dl
add cl, al
mov byte [0x42ca4f], cl
mov cl, byte [0x42ca51]
dec cl
mov byte [0x42ca48], cl
mov edx, dword [0x42ca70]
push 0x3b5dffff
push edx
call fcn.0040e8d0
mov ecx, dword [ebp - 0x24]
add esp, 8
cmp ecx, ebx
mov byte [0x42ca4b], 0xfe
je 0x41e8a0
mov al, byte [ecx - 1]
test al, al
je 0x41e896
cmp al, 0xff
je 0x41e896
dec al
mov byte [ecx - 1], al
lea esp, [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret