Function at 0x403e49
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572fd7
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1288
call fcn.00548d90
mov eax, dword [0x5e3c30]
xor eax, ebp
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1280], ecx
xor eax, eax
mov word [ebp - 0x1c], ax
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x1028]
push eax
mov ecx, dword [ebp - 0x1280]
call fcn.00403c4f
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x403eb6
mov eax, dword [ebp - 0x20]
jmp 0x404463
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1028]
push eax
call fcn.00403a4c
pop ecx
pop ecx
test eax, eax
jne 0x403ee1
push 0x20f
mov ecx, dword [ebp - 0x1280]
call fcn.00402b63
jmp 0x404463
mov ecx, dword [ebp - 0x1280]
call fcn.00403c1f
lea eax, [ebp - 0x1028]
push eax
mov ecx, dword [ebp - 0x1280]
call fcn.00403c4f
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x403f0f
mov eax, dword [ebp - 0x20]
jmp 0x404463
movzx eax, word [ebp - 0x1c]
mov dword [ebp - 0x1284], eax
cmp dword [ebp - 0x1284], 8
je 0x403f4d
cmp dword [ebp - 0x1284], 0x11
je 0x4042a8
cmp dword [ebp - 0x1284], 0x13
je 0x404131
cmp dword [ebp - 0x1284], 0x4008
je 0x403f69
jmp 0x40442d
push 1
lea eax, [ebp - 0x1028]
push eax
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0040273e
mov dword [ebp - 0x18], eax
jmp 0x40442d
lea eax, [ebp - 0x1028]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
inc eax
mov dword [ebp - 0x1134], eax
lea ecx, [ebp - 0x1130]
call fcn.0041d433
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
push dword [ebp - 0x1134]
lea ecx, [ebp - 0x1130]
call fcn.004060e6
jmp 0x403fae
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1130]
call fcn.00408b0b
test eax, eax
je 0x404116
lea ecx, [ebp - 0x1130]
call fcn.00408b0b
mov dword [ebp - 0x1138], eax
lea eax, [ebp - 0x1028]
mov dword [ebp - 0x113c], eax
and dword [ebp - 0x1134], 0
mov eax, dword [ebp - 0x113c]
movsx eax, byte [eax]
test eax, eax
je 0x4040db
push dword [ebp - 0x113c]
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x1140], eax
mov eax, dword [ebp - 0x113c]
movsx eax, byte [eax]
cmp eax, 0x5c
jne 0x404052
mov eax, dword [ebp - 0x1140]
movsx eax, byte [eax]
cmp eax, 0x30
jne 0x404052
mov eax, dword [ebp - 0x1138]
mov byte [eax], 0
mov eax, dword [ebp - 0x1138]
inc eax
mov dword [ebp - 0x1138], eax
push dword [ebp - 0x1140]
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x113c], eax
jmp 0x4040c9
mov eax, dword [ebp - 0x1138]
mov ecx, dword [ebp - 0x113c]
mov cl, byte [ecx]
mov byte [eax], cl
mov eax, dword [ebp - 0x113c]
movzx eax, byte [eax]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4040af
mov eax, dword [ebp - 0x1138]
inc eax
mov dword [ebp - 0x1138], eax
mov eax, dword [ebp - 0x113c]
inc eax
mov dword [ebp - 0x113c], eax
mov eax, dword [ebp - 0x113c]
movsx eax, byte [eax]
test eax, eax
jne 0x40409f
jmp 0x4040db
mov eax, dword [ebp - 0x1138]
mov ecx, dword [ebp - 0x113c]
mov cl, byte [ecx]
mov byte [eax], cl
mov eax, dword [ebp - 0x1138]
inc eax
mov dword [ebp - 0x1138], eax
mov eax, dword [ebp - 0x113c]
inc eax
mov dword [ebp - 0x113c], eax
mov eax, dword [ebp - 0x1134]
inc eax
mov dword [ebp - 0x1134], eax
jmp 0x403fe9
mov eax, dword [ebp - 0x1138]
mov byte [eax], 0
mov eax, dword [ebp - 0x1138]
inc eax
mov dword [ebp - 0x1138], eax
mov eax, dword [ebp - 0x1138]
mov byte [eax], 0
lea ecx, [ebp - 0x1130]
call fcn.00408b0b
push eax
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0040278e
mov dword [ebp - 0x18], eax
jmp 0x40411d
mov dword [ebp - 0x18], 0xe
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1130]
call fcn.00406106
jmp 0x40442d
call fcn.004018b7
mov dword [ebp - 0x1150], eax
lea ecx, [ebp - 0x1158]
call fcn.0041d433
mov dword [ebp - 4], 3
lea eax, [ebp - 0x1028]
mov dword [ebp - 0x1148], eax
cmp dword [ebp - 0x1148], 0
jne 0x40416f
and dword [ebp - 0x1288], 0
jmp 0x404230
push dword [ebp - 0x1148]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 0x1154], eax
push 2
push dword [ebp - 0x1154]
lea eax, [ebp - 0x1154]
push eax
call fcn.0040176f
add esp, 0xc
test eax, eax
jge 0x4041a6
and dword [ebp - 0x128c], 0
jmp 0x404224
cmp dword [ebp - 0x1154], 0x400
jg 0x4041e7
push dword [ebp - 0x1154]
call fcn.004017e8
pop ecx
movzx eax, al
test eax, eax
je 0x4041e7
mov eax, dword [ebp - 0x1154]
call fcn.00548d60
mov dword [ebp - 0x1290], esp
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 0x1290]
mov dword [ebp - 0x1294], eax
jmp 0x4041fe
push dword [ebp - 0x1154]
lea ecx, [ebp - 0x1158]
call fcn.00401d61
mov dword [ebp - 0x1294], eax
push dword [ebp - 0x1150]
mov eax, dword [ebp - 0x1154]
shr eax, 1
push eax
push dword [ebp - 0x1148]
push dword [ebp - 0x1294]
call fcn.004018bf
mov dword [ebp - 0x128c], eax
mov eax, dword [ebp - 0x128c]
mov dword [ebp - 0x1288], eax
mov eax, dword [ebp - 0x1288]
mov dword [ebp - 0x114c], eax
cmp dword [ebp - 0x114c], 0
jne 0x404269
mov dword [ebp - 0x1278], 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1158]
call fcn.00401da7
mov eax, dword [ebp - 0x1278]
jmp 0x404463
lea eax, [ebp - 0x115c]
push eax
push 0
push 0
push dword [ebp - 0x114c]
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x115c]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00402713
mov dword [ebp - 0x18], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1158]
call fcn.00401da7
jmp 0x40442d
lea eax, [ebp - 0x1028]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1164], eax
mov eax, dword [ebp - 0x1164]
and eax, 1
je 0x4042d0
mov eax, 0x80004005
jmp 0x404463
mov eax, dword [ebp - 0x1164]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1160], eax
lea ecx, [ebp - 0x1270]
call fcn.0041d433
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
push dword [ebp - 0x1160]
lea ecx, [ebp - 0x1270]
call fcn.004060e6
jmp 0x404317
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x1270]
call fcn.00408b0b
test eax, eax
jne 0x404351
mov dword [ebp - 0x127c], 0x80004005
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1270]
call fcn.00406106
mov eax, dword [ebp - 0x127c]
jmp 0x404463
push dword [ebp - 0x1160]
push 0
lea ecx, [ebp - 0x1270]
call fcn.00408b0b
push eax
call fcn.00547d40
add esp, 0xc
and dword [ebp - 0x1274], 0
jmp 0x404383
mov eax, dword [ebp - 0x1274]
inc eax
mov dword [ebp - 0x1274], eax
mov eax, dword [ebp - 0x1274]
cmp eax, dword [ebp - 0x1164]
jge 0x4043f3
mov eax, dword [ebp - 0x1274]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
lea ecx, [ebp - 0x1270]
call fcn.00408b0b
add eax, esi
mov dword [ebp - 0x1298], eax
mov eax, dword [ebp - 0x1274]
and eax, 1
xor esi, esi
inc esi
sub esi, eax
shl esi, 2
mov eax, dword [ebp - 0x1274]
movzx eax, byte [ebp + eax - 0x1028]
push eax
call fcn.00403afb
pop ecx
movzx eax, al
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x1298]
movzx ecx, byte [ecx]
or ecx, eax
mov eax, dword [ebp - 0x1298]
mov byte [eax], cl
jmp 0x404376
push dword [ebp - 0x1160]
lea ecx, [ebp - 0x1270]
call fcn.00408b0b
push eax
push 3
push 0
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00408b0b
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x18], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1270]
call fcn.00406106
cmp dword [ebp - 0x18], 0
je 0x404445
mov dword [ebp - 0x14], 0x204
push dword [ebp - 0x18]
call fcn.00401fdb
pop ecx
jmp 0x404463
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1280]
call fcn.00403c4f
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x404461
mov eax, dword [ebp - 0x20]
jmp 0x404463
xor eax, eax
lea esp, [ebp - 0x12a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00543a33
leave
ret 0xc