Function at 0x4109f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423d46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x12dc
call fcn.0041a210
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x12d8], ecx
mov word [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1020]
push eax
mov ecx, dword [ebp - 0x12d8]
call fcn.0040f480
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x410a56
mov eax, dword [ebp - 0x20]
jmp 0x4111ba
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x1020]
push edx
call fcn.00411280
add esp, 8
test eax, eax
jne 0x410a77
mov eax, 0x80020009
jmp 0x4111ba
mov eax, dword [ebp - 0x12d8]
mov ecx, dword [eax]
mov dl, byte [ecx]
push edx
mov ecx, dword [ebp - 0x12d8]
call fcn.00411340
test eax, eax
je 0x410aaa
mov eax, dword [ebp - 0x12d8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov edx, dword [ebp - 0x12d8]
mov dword [edx], eax
jmp 0x410a77
lea eax, [ebp - 0x1020]
push eax
mov ecx, dword [ebp - 0x12d8]
call fcn.0040f480
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x410acd
mov eax, dword [ebp - 0x20]
jmp 0x4111ba
movzx ecx, word [ebp - 0x1c]
mov dword [ebp - 0x12dc], ecx
cmp dword [ebp - 0x12dc], 0x13
jg 0x410b08
cmp dword [ebp - 0x12dc], 0x13
je 0x410d05
cmp dword [ebp - 0x12dc], 8
je 0x410b19
cmp dword [ebp - 0x12dc], 0x11
je 0x410f67
jmp 0x411180
cmp dword [ebp - 0x12dc], 0x4008
je 0x410b4d
jmp 0x411180
lea edx, [ebp - 0x1020]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea eax, [ebp - 0x1020]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x18], eax
jmp 0x411180
lea ecx, [ebp - 0x1020]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x112c], eax
mov dword [ebp - 0x1128], 0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x112c]
push edx
lea ecx, [ebp - 0x1128]
call fcn.00412310
jmp 0x410b92
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1128], 0
je 0x410cd9
mov eax, dword [ebp - 0x1128]
mov dword [ebp - 0x1130], eax
lea ecx, [ebp - 0x1020]
mov dword [ebp - 0x1134], ecx
mov dword [ebp - 0x112c], 0
mov edx, dword [ebp - 0x1134]
movsx eax, byte [edx]
test eax, eax
je 0x410cb8
mov ecx, dword [ebp - 0x1134]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x1138], eax
mov edx, dword [ebp - 0x1134]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x410c35
mov ecx, dword [ebp - 0x1138]
movsx edx, byte [ecx]
cmp edx, 0x30
jne 0x410c35
mov eax, dword [ebp - 0x1130]
mov byte [eax], 0
mov ecx, dword [ebp - 0x1130]
add ecx, 1
mov dword [ebp - 0x1130], ecx
mov edx, dword [ebp - 0x1138]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x1134], eax
jmp 0x410ca4
mov eax, dword [ebp - 0x1130]
mov ecx, dword [ebp - 0x1134]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x1134]
mov cl, byte [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x410c86
mov edx, dword [ebp - 0x1130]
add edx, 1
mov dword [ebp - 0x1130], edx
mov eax, dword [ebp - 0x1134]
add eax, 1
mov dword [ebp - 0x1134], eax
mov ecx, dword [ebp - 0x1130]
mov edx, dword [ebp - 0x1134]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x1130]
add ecx, 1
mov dword [ebp - 0x1130], ecx
mov edx, dword [ebp - 0x1134]
add edx, 1
mov dword [ebp - 0x1134], edx
mov eax, dword [ebp - 0x112c]
add eax, 1
mov dword [ebp - 0x112c], eax
jmp 0x410bc8
mov ecx, dword [ebp - 0x1130]
mov byte [ecx], 0
mov edx, dword [ebp - 0x1128]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00411220
mov dword [ebp - 0x18], eax
jmp 0x410ce0
mov dword [ebp - 0x18], 0xe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1124]
cmp dword [ebp - 0x1128], ecx
je 0x410d00
lea ecx, [ebp - 0x1128]
call fcn.00412350
jmp 0x411180
call dword [0x42a058]
mov dword [ebp - 0x1148], eax
mov dword [ebp - 0x1150], 0
lea edx, [ebp - 0x1020]
mov dword [ebp - 0x1140], edx
cmp dword [ebp - 0x1140], 0
jne 0x410d3f
mov dword [ebp - 0x12e0], 0
jmp 0x410e8c
mov eax, dword [ebp - 0x1140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x114c], eax
mov ecx, dword [ebp - 0x114c]
shl ecx, 1
cmp ecx, 0x400
ja 0x410da7
mov edx, dword [ebp - 0x114c]
shl edx, 1
push edx
call fcn.0040e170
add esp, 4
movzx eax, al
test eax, eax
je 0x410da7
mov eax, dword [ebp - 0x114c]
shl eax, 1
add eax, 3
and eax, 0xfffffffc
call fcn.0041a210
mov dword [ebp - 0x12e4], esp
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp - 0x12e4]
mov dword [ebp - 0x12bc], ecx
jmp 0x410e0a
mov edx, dword [ebp - 0x12b4]
mov dword [ebp - 0x12bc], edx
mov eax, dword [ebp - 0x114c]
lea ecx, [eax + eax + 8]
push ecx
call fcn.0041ab97
add esp, 4
mov dword [ebp - 0x12b0], eax
cmp dword [ebp - 0x12b0], 0
jne 0x410de1
mov dword [ebp - 0x12bc], 0
jmp 0x410e0a
mov edx, dword [ebp - 0x12b0]
mov eax, dword [ebp - 0x1150]
mov dword [edx], eax
mov ecx, dword [ebp - 0x12b0]
mov dword [ebp - 0x1150], ecx
mov edx, dword [ebp - 0x12b0]
add edx, 8
mov dword [ebp - 0x12bc], edx
mov eax, dword [ebp - 0x12c0]
mov dword [ebp - 0x12e0], eax
cmp dword [ebp - 0x12bc], 0
je 0x410e28
cmp dword [ebp - 0x1140], 0
jne 0x410e34
mov dword [ebp - 0x12e0], 0
jmp 0x410e8c
mov ecx, dword [ebp - 0x12bc]
mov word [ecx], 0
mov edx, dword [ebp - 0x114c]
push edx
mov eax, dword [ebp - 0x12bc]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x1140]
push ecx
push 0
mov edx, dword [ebp - 0x1148]
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x12b8], eax
cmp dword [ebp - 0x12b8], 0
jne 0x410e80
mov dword [ebp - 0x12e0], 0
jmp 0x410e8c
mov eax, dword [ebp - 0x12bc]
mov dword [ebp - 0x12e0], eax
mov ecx, dword [ebp - 0x12e0]
mov dword [ebp - 0x1144], ecx
cmp dword [ebp - 0x1144], 0
jne 0x410eea
mov dword [ebp - 0x1270], 0x8007000e
cmp dword [ebp - 0x1150], 0
je 0x410edf
mov edx, dword [ebp - 0x1150]
mov dword [ebp - 0x12c4], edx
mov eax, dword [ebp - 0x1150]
mov ecx, dword [eax]
mov dword [ebp - 0x1150], ecx
mov edx, dword [ebp - 0x12c4]
push edx
call fcn.0041a820
add esp, 4
jmp 0x410eab
mov eax, dword [ebp - 0x1270]
jmp 0x4111ba
lea eax, [ebp - 0x1154]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x1144]
push ecx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp - 0x1154]
mov dword [ebp - 0x12c8], edx
push 4
lea eax, [ebp - 0x12c8]
push eax
push 4
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x1150], 0
je 0x410f62
mov ecx, dword [ebp - 0x1150]
mov dword [ebp - 0x12cc], ecx
mov edx, dword [ebp - 0x1150]
mov eax, dword [edx]
mov dword [ebp - 0x1150], eax
mov ecx, dword [ebp - 0x12cc]
push ecx
call fcn.0041a820
add esp, 4
jmp 0x410f2e
jmp 0x411180
lea edx, [ebp - 0x1020]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x115c], eax
mov eax, dword [ebp - 0x115c]
and eax, 1
je 0x410f8f
mov eax, 0x80004005
jmp 0x4111ba
mov eax, dword [ebp - 0x115c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1158], eax
mov dword [ebp - 0x1268], 0
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1158]
push ecx
lea ecx, [ebp - 0x1268]
call fcn.00412310
jmp 0x410fcf
mov dword [ebp - 4], 3
cmp dword [ebp - 0x1268], 0
jne 0x411014
mov dword [ebp - 0x1274], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x1264]
cmp dword [ebp - 0x1268], edx
je 0x411009
lea ecx, [ebp - 0x1268]
call fcn.00412350
mov eax, dword [ebp - 0x1274]
jmp 0x4111ba
mov eax, dword [ebp - 0x1158]
push eax
push 0
mov ecx, dword [ebp - 0x1268]
push ecx
call fcn.00419e10
add esp, 0xc
mov dword [ebp - 0x126c], 0
jmp 0x411047
mov edx, dword [ebp - 0x126c]
add edx, 1
mov dword [ebp - 0x126c], edx
mov eax, dword [ebp - 0x126c]
cmp eax, dword [ebp - 0x115c]
jge 0x41112f
mov eax, dword [ebp - 0x126c]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x1268]
mov dword [ebp - 0x12e8], eax
mov ecx, dword [ebp - 0x126c]
mov dl, byte [ebp + ecx - 0x1020]
mov byte [ebp - 0x12cd], dl
movsx eax, byte [ebp - 0x12cd]
mov dword [ebp - 0x12ec], eax
mov ecx, dword [ebp - 0x12ec]
sub ecx, 0x30
mov dword [ebp - 0x12ec], ecx
cmp dword [ebp - 0x12ec], 0x36
ja case.0x4110b5.10
mov edx, dword [ebp - 0x12ec]
movzx eax, byte [edx + 0x4111e3]
jmp dword [eax*4 + 0x4111d3]
movsx ecx, byte [ebp - 0x12cd]
sub ecx, 0x30
mov byte [ebp - 0x12ce], cl
jmp 0x4110f9
movsx edx, byte [ebp - 0x12cd]
sub edx, 0x37
mov byte [ebp - 0x12ce], dl
jmp 0x4110f9
movsx eax, byte [ebp - 0x12cd]
sub eax, 0x57
mov byte [ebp - 0x12ce], al
jmp 0x4110f9
mov byte [ebp - 0x12ce], 0
mov ecx, dword [ebp - 0x126c]
and ecx, 1
mov edx, 1
sub edx, ecx
shl edx, 2
movzx eax, byte [ebp - 0x12ce]
mov ecx, edx
shl eax, cl
mov ecx, dword [ebp - 0x12e8]
movzx edx, byte [ecx]
or edx, eax
mov eax, dword [ebp - 0x12e8]
mov byte [eax], dl
jmp 0x411038
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 0x12d4], edx
mov eax, dword [ebp - 0x1158]
push eax
mov ecx, dword [ebp - 0x1268]
push ecx
push 3
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x12d4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1264]
cmp dword [ebp - 0x1268], ecx
je 0x411180
lea ecx, [ebp - 0x1268]
call fcn.00412350
cmp dword [ebp - 0x18], 0
je 0x41119b
mov dword [ebp - 0x14], 0x204
mov edx, dword [ebp - 0x18]
push edx
call fcn.00410600
add esp, 4
jmp 0x4111ba
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x12d8]
call fcn.0040f480
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x4111b8
mov eax, dword [ebp - 0x20]
jmp 0x4111ba
xor eax, eax
lea esp, [ebp - 0x12f8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc