Function at 0x407500
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cc41
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1128
call fcn.0040c860
mov eax, dword [0x413034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x112c], eax
lea eax, [ebp - 0x1018]
mov edi, esi
mov dword [ebp - 0x1134], esi
mov dword [ebp - 0x1128], ebx
mov dword [ebp - 0x1138], ecx
mov dword [ebp - 0x1124], 0
call fcn.00407ed0
test eax, eax
js 0x407987
lea edx, [ebp - 0x1124]
push edx
lea eax, [ebp - 0x1018]
push eax
call fcn.00407210
add esp, 8
test eax, eax
jne 0x407599
mov eax, 0x80020009
jmp 0x407987
call fcn.00408740
lea eax, [ebp - 0x1018]
mov edi, esi
call fcn.00407ed0
xor esi, esi
cmp eax, esi
jl 0x407987
movzx eax, word [ebp - 0x1124]
cmp eax, 0x13
jg 0x407852
je 0x40776f
cmp eax, 8
je 0x40773f
cmp eax, 0x11
jne 0x40796c
lea ecx, [ebp - 0x1018]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov dword [ebp - 0x1130], ebx
test bl, 1
jne 0x407685
cdq
sub eax, edx
mov edi, eax
sar edi, 1
xor eax, eax
mov dword [ebp - 0x1124], edi
mov dword [ebp - 0x1120], eax
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
cmp eax, eax
ja 0x407624
cmp edi, 0xffffffff
jbe 0x40762e
push 0x80070216
call fcn.00407a00
cmp edi, 0x100
jbe 0x40765a
lea edx, [ebp - 0x1120]
push edx
mov eax, edi
call fcn.004072c0
jmp 0x407666
lea eax, [ebp - 0x111c]
mov dword [ebp - 0x1120], eax
mov eax, dword [ebp - 0x1120]
test eax, eax
jne 0x40768f
lea ecx, [ebp - 0x111c]
test ecx, ecx
je 0x407685
lea eax, [ebp - 0x1120]
call fcn.00406a20
mov eax, 0x80004005
jmp 0x407987
push edi
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x4076f9
mov al, byte [ebp + esi - 0x1018]
movsx ecx, al
mov edx, esi
shr edx, 1
add edx, dword [ebp - 0x1120]
add ecx, 0xffffffd0
cmp ecx, 0x36
ja case.0x4076c4.58
movzx ecx, byte [ecx + 0x4079bc]
jmp dword [ecx*4 + 0x4079ac]
sub al, 0x30
jmp 0x4076d9
sub al, 0x37
jmp 0x4076d9
sub al, 0x57
jmp 0x4076d9
xor al, al
mov ecx, esi
and ecx, 1
add ecx, ecx
lea edi, [ecx + ecx]
mov ecx, 4
sub ecx, edi
shl al, cl
inc esi
or byte [edx], al
cmp esi, ebx
jl 0x4076a1
mov edi, dword [ebp - 0x1124]
mov ecx, dword [ebp - 0x1120]
mov edx, dword [ebp - 0x1128]
mov eax, dword [edx]
mov edx, dword [ebp - 0x112c]
push edi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebp - 0x111c]
cmp dword [ebp - 0x1120], eax
je 0x40795d
lea eax, [ebp - 0x1120]
call fcn.00406a20
jmp 0x40795d
lea ecx, [ebp - 0x1018]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebx]
inc eax
push eax
mov eax, dword [ebp - 0x112c]
lea edx, [ebp - 0x1018]
push edx
push 1
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
jmp 0x40795d
mov dword [ebp - 0x1128], esi
lea edx, [ebp - 0x1018]
push edx
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x1124]
inc eax
push ecx
mov dword [ebp - 0x1124], eax
call fcn.00407370
add esp, 4
test eax, eax
js 0x4077f0
mov edi, dword [ebp - 0x1124]
cmp edi, 0x400
jg 0x4077cc
push edi
call fcn.004073d0
add esp, 4
test al, al
je 0x4077cc
mov eax, edi
call fcn.0040c820
mov dword [ebp - 0x10], esp
mov esi, esp
jmp 0x4077db
mov eax, edi
lea esi, [ebp - 0x1128]
call fcn.004074c0
mov esi, eax
mov edx, edi
push 3
shr edx, 1
lea eax, [ebp - 0x1018]
call fcn.004073a0
test eax, eax
jne 0x407805
lea esi, [ebp - 0x1128]
call fcn.00407340
mov eax, 0x8007000e
jmp 0x407987
lea edx, [ebp - 0x1130]
push edx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x1130]
mov edx, dword [ebp - 0x112c]
push 4
lea ecx, [ebp - 0x1124]
push ecx
push 4
push 0
mov dword [ebp - 0x1124], eax
mov eax, dword [ebx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea esi, [ebp - 0x1128]
mov edi, eax
call fcn.00407340
jmp 0x40795d
cmp eax, 0x4008
jne 0x40796c
lea ecx, [ebp - 0x1018]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov dword [ebp - 0x1120], esi
xor ecx, ecx
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
cmp ecx, esi
ja 0x407885
cmp eax, 0xffffffff
jbe 0x40788f
push 0x80070216
call fcn.00407a00
cmp eax, 0x100
jbe 0x4078b2
lea edx, [ebp - 0x1120]
push edx
call fcn.004072c0
jmp 0x4078be
lea eax, [ebp - 0x111c]
mov dword [ebp - 0x1120], eax
mov edi, dword [ebp - 0x1120]
test edi, edi
je 0x40793f
cmp byte [ebp - 0x1018], 0
lea esi, [ebp - 0x1018]
je 0x407922
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
lea ecx, [ecx]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x4078fa
cmp byte [eax], 0x30
jne 0x4078fa
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x407917
mov byte [edi], cl
movzx ecx, byte [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x407915
mov al, byte [esi + 1]
inc esi
inc edi
test al, al
je 0x40791c
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x4078e0
mov ebx, dword [ebp - 0x1128]
mov eax, dword [ebp - 0x112c]
mov word [edi], 0
mov edx, dword [ebp - 0x1120]
push edx
push eax
push ebx
call fcn.004072f0
mov edi, eax
jmp 0x407944
mov edi, 0xe
lea ecx, [ebp - 0x111c]
cmp dword [ebp - 0x1120], ecx
je 0x40795d
lea eax, [ebp - 0x1120]
call fcn.00406a20
xor esi, esi
cmp edi, esi
je 0x40796c
mov eax, edi
call fcn.00407ec0
jmp 0x407987
mov eax, dword [ebp - 0x1138]
mov edi, dword [ebp - 0x1134]
call fcn.00407ed0
xor edx, edx
cmp eax, esi
setge dl
dec edx
and eax, edx
lea esp, [ebp - 0x1148]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040be38
mov esp, ebp
pop ebp
ret 8