Function at 0x403da0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1288
call fcn.00413b90
mov eax, dword [0x425060]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1270], ecx
xor eax, eax
mov word [ebp - 0xc], ax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1018]
push ecx
mov ecx, dword [ebp - 0x1270]
call fcn.00403b80
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x403df4
mov eax, dword [ebp - 0x10]
jmp 0x404399
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x1018]
push eax
call fcn.004038a0
add esp, 8
test eax, eax
jne 0x403e20
push 0x20f
mov ecx, dword [ebp - 0x1270]
call fcn.00402930
jmp 0x404399
mov ecx, dword [ebp - 0x1270]
call fcn.00403b40
lea ecx, [ebp - 0x1018]
push ecx
mov ecx, dword [ebp - 0x1270]
call fcn.00403b80
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x403e4e
mov eax, dword [ebp - 0x10]
jmp 0x404399
movzx edx, word [ebp - 0xc]
mov dword [ebp - 0x1274], edx
cmp dword [ebp - 0x1274], 0x13
jg 0x403e89
cmp dword [ebp - 0x1274], 0x13
je 0x404079
cmp dword [ebp - 0x1274], 8
je 0x403e9a
cmp dword [ebp - 0x1274], 0x11
je 0x4041f5
jmp 0x40435f
cmp dword [ebp - 0x1274], 0x4008
je 0x403eb7
jmp 0x40435f
push 1
lea eax, [ebp - 0x1018]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402510
mov dword [ebp - 8], eax
jmp 0x40435f
lea edx, [ebp - 0x1018]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov dword [ebp - 0x1124], eax
lea ecx, [ebp - 0x1120]
call fcn.0040abd0
mov eax, dword [ebp - 0x1124]
push eax
lea ecx, [ebp - 0x1120]
call fcn.0040ac10
lea ecx, [ebp - 0x1120]
call fcn.00406b90
test eax, eax
je 0x404062
lea ecx, [ebp - 0x1120]
call fcn.00406b90
mov dword [ebp - 0x1128], eax
lea ecx, [ebp - 0x1018]
mov dword [ebp - 0x112c], ecx
mov dword [ebp - 0x1124], 0
mov edx, dword [ebp - 0x112c]
movsx eax, byte [edx]
test eax, eax
je 0x404024
mov ecx, dword [ebp - 0x112c]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x1130], eax
mov edx, dword [ebp - 0x112c]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x403f91
mov ecx, dword [ebp - 0x1130]
movsx edx, byte [ecx]
cmp edx, 0x30
jne 0x403f91
mov eax, dword [ebp - 0x1128]
mov byte [eax], 0
mov ecx, dword [ebp - 0x1128]
add ecx, 1
mov dword [ebp - 0x1128], ecx
mov edx, dword [ebp - 0x1130]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x112c], eax
jmp 0x404010
mov eax, dword [ebp - 0x1128]
mov ecx, dword [ebp - 0x112c]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x112c]
movzx ecx, byte [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x403ff2
mov edx, dword [ebp - 0x1128]
add edx, 1
mov dword [ebp - 0x1128], edx
mov eax, dword [ebp - 0x112c]
add eax, 1
mov dword [ebp - 0x112c], eax
mov ecx, dword [ebp - 0x112c]
movsx edx, byte [ecx]
test edx, edx
jne 0x403fe2
jmp 0x404024
mov eax, dword [ebp - 0x1128]
mov ecx, dword [ebp - 0x112c]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x1128]
add eax, 1
mov dword [ebp - 0x1128], eax
mov ecx, dword [ebp - 0x112c]
add ecx, 1
mov dword [ebp - 0x112c], ecx
mov edx, dword [ebp - 0x1124]
add edx, 1
mov dword [ebp - 0x1124], edx
jmp 0x403f24
mov eax, dword [ebp - 0x1128]
mov byte [eax], 0
mov ecx, dword [ebp - 0x1128]
add ecx, 1
mov dword [ebp - 0x1128], ecx
mov edx, dword [ebp - 0x1128]
mov byte [edx], 0
lea ecx, [ebp - 0x1120]
call fcn.00406b90
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402570
mov dword [ebp - 8], eax
jmp 0x404069
mov dword [ebp - 8], 0xe
lea ecx, [ebp - 0x1120]
call fcn.0040abf0
jmp 0x40435f
call fcn.004018d0
mov dword [ebp - 0x1140], eax
lea ecx, [ebp - 0x1148]
call fcn.0040abd0
lea ecx, [ebp - 0x1018]
mov dword [ebp - 0x1138], ecx
cmp dword [ebp - 0x1138], 0
jne 0x4040b3
mov dword [ebp - 0x1278], 0
jmp 0x404182
mov edx, dword [ebp - 0x1138]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x1144], eax
push 2
mov eax, dword [ebp - 0x1144]
push eax
lea ecx, [ebp - 0x1144]
push ecx
call fcn.00401690
add esp, 0xc
test eax, eax
jge 0x4040f4
mov dword [ebp - 0x127c], 0
jmp 0x404176
cmp dword [ebp - 0x1144], 0x400
jg 0x404135
mov edx, dword [ebp - 0x1144]
push edx
call fcn.004017f0
add esp, 4
movzx eax, al
test eax, eax
je 0x404135
mov eax, dword [ebp - 0x1144]
call fcn.00419860
mov dword [ebp - 0x1280], esp
mov ecx, dword [ebp - 0x1280]
mov dword [ebp - 0x1284], ecx
jmp 0x40414d
mov edx, dword [ebp - 0x1144]
push edx
lea ecx, [ebp - 0x1148]
call fcn.0040a940
mov dword [ebp - 0x1284], eax
mov eax, dword [ebp - 0x1140]
push eax
mov ecx, dword [ebp - 0x1144]
shr ecx, 1
push ecx
mov edx, dword [ebp - 0x1138]
push edx
mov eax, dword [ebp - 0x1284]
push eax
call fcn.004018e0
mov dword [ebp - 0x127c], eax
mov ecx, dword [ebp - 0x127c]
mov dword [ebp - 0x1278], ecx
mov edx, dword [ebp - 0x1278]
mov dword [ebp - 0x113c], edx
cmp dword [ebp - 0x113c], 0
jne 0x4041b7
mov dword [ebp - 0x1268], 0x8007000e
lea ecx, [ebp - 0x1148]
call fcn.0040a990
mov eax, dword [ebp - 0x1268]
jmp 0x404399
lea eax, [ebp - 0x114c]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x113c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp - 0x114c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.004024e0
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x1148]
call fcn.0040a990
jmp 0x40435f
lea ecx, [ebp - 0x1018]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1154], eax
mov edx, dword [ebp - 0x1154]
and edx, 1
je 0x40421d
mov eax, 0x80004005
jmp 0x404399
mov eax, dword [ebp - 0x1154]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1150], eax
lea ecx, [ebp - 0x1260]
call fcn.0040abd0
mov eax, dword [ebp - 0x1150]
push eax
lea ecx, [ebp - 0x1260]
call fcn.0040ac10
lea ecx, [ebp - 0x1260]
call fcn.00406b90
test eax, eax
jne 0x40427a
mov dword [ebp - 0x126c], 0x80004005
lea ecx, [ebp - 0x1260]
call fcn.0040abf0
mov eax, dword [ebp - 0x126c]
jmp 0x404399
mov ecx, dword [ebp - 0x1150]
push ecx
push 0
lea ecx, [ebp - 0x1260]
call fcn.00406b90
push eax
call fcn.0040fe60
add esp, 0xc
mov dword [ebp - 0x1264], 0
jmp 0x4042b2
mov edx, dword [ebp - 0x1264]
add edx, 1
mov dword [ebp - 0x1264], edx
mov eax, dword [ebp - 0x1264]
cmp eax, dword [ebp - 0x1154]
jge 0x404327
lea ecx, [ebp - 0x1260]
call fcn.00406b90
mov ecx, eax
mov eax, dword [ebp - 0x1264]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [ebp - 0x1288], ecx
mov edx, dword [ebp - 0x1264]
movzx eax, byte [ebp + edx - 0x1018]
push eax
call fcn.00403970
add esp, 4
movzx edx, al
mov eax, dword [ebp - 0x1264]
and eax, 1
mov ecx, 1
sub ecx, eax
shl ecx, 2
shl edx, cl
mov ecx, dword [ebp - 0x1288]
movzx eax, byte [ecx]
or eax, edx
mov ecx, dword [ebp - 0x1288]
mov byte [ecx], al
jmp 0x4042a3
mov edx, dword [ebp - 0x1150]
push edx
lea ecx, [ebp - 0x1260]
call fcn.00406b90
push eax
push 3
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406b90
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x1260]
call fcn.0040abf0
cmp dword [ebp - 8], 0
je 0x40437a
mov dword [ebp - 4], 0x204
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401d90
add esp, 4
jmp 0x404399
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x1270]
call fcn.00403b80
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x404397
mov eax, dword [ebp - 0x10]
jmp 0x404399
xor eax, eax
lea esp, [ebp - 0x1288]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040f346
mov esp, ebp
pop ebp
ret 0xc