Function at 0x498160
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a222b
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x4cf094]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push edx
mov edx, esi
lea ecx, [ebp - 0x2a4]
call fcn.00498ab0
add esp, 4
push 0x200
lea eax, [ebp - 0x214]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00443480
add esp, 0xc
lea eax, [ebp - 0x214]
push dword [ebp + 8]
push 0x4bb4f8
push eax
call fcn.0040b2ce
add esp, 0xc
mov dword [ebp - 0x260], 0xf
mov dword [ebp - 0x264], 0
mov byte [ebp - 0x274], 0
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x230], 7
mov dword [ebp - 0x234], 0
mov word [ebp - 0x244], ax
cmp word [esi], ax
jne 0x498219
xor ecx, ecx
jmp 0x49822f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x498220
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x244]
call fcn.004027c5
lea edx, [ebp - 0x244]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x22c]
call fcn.0040d236
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x49825d
mov eax, dword [eax]
lea ecx, [ebp - 0x274]
push ecx
lea edx, [ebp - 0x214]
mov ecx, eax
call fcn.0040ff1d
mov byte [ebp - 4], 2
add esp, 4
mov eax, dword [ebp - 0x218]
cmp eax, 0x10
jb 0x4982c8
mov ecx, dword [ebp - 0x22c]
inc eax
cmp eax, 0x1000
jb 0x4982bf
test cl, 0x1f
je 0x49829b
call fcn.0044a6e1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4982a7
call fcn.0044a6e1
sub ecx, eax
cmp ecx, 4
jae 0x4982b3
call fcn.0044a6e1
cmp ecx, 0x23
jbe 0x4982bd
call fcn.0044a6e1
mov ecx, eax
push ecx
call fcn.00483c80
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x22c], 0
cmp eax, 8
jb 0x498349
mov ecx, dword [ebp - 0x244]
inc eax
cmp eax, 0x7fffffff
jbe 0x498305
call fcn.0044a6e1
add eax, eax
cmp eax, 0x1000
jb 0x498340
test byte [ebp - 0x244], 0x1f
je 0x49831c
call fcn.0044a6e1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x498328
call fcn.0044a6e1
sub ecx, eax
cmp ecx, 4
jae 0x498334
call fcn.0044a6e1
cmp ecx, 0x23
jbe 0x49833e
call fcn.0044a6e1
mov ecx, eax
push ecx
call fcn.00483c80
add esp, 4
mov dword [ebp - 0x248], 0xf
mov dword [ebp - 0x24c], 0
mov byte [ebp - 0x25c], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x274]
mov eax, dword [ebp - 0x264]
lea edx, [ebp - 0x2a8]
mov esi, dword [ebp - 0x260]
cmp esi, 0x10
mov dword [ebp - 0x2a8], eax
lea eax, [ebp - 0x25c]
cmovae ecx, dword [ebp - 0x274]
push eax
call fcn.00410092
add esp, 4
mov dword [ebp - 0x230], 0xf
cmp dword [ebp - 0x290], 0x10
lea edx, [ebp - 0x2a4]
mov dword [ebp - 0x234], 0
cmovae edx, dword [ebp - 0x2a4]
mov byte [ebp - 0x244], 0
cmp byte [edx], 0
jne 0x4983d7
xor ecx, ecx
jmp 0x4983e9
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4983e0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x244]
call fcn.0040665b
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28c]
cmp dword [0x4fb2cc], 0x10
mov edx, 0x4fb2b8
push str.yh87Yx6EotW2RHhQlrSlh3ep1
cmovae edx, dword [0x4fb2b8]
call fcn.00410247
add esp, 4
mov edx, eax
mov byte [ebp - 4], 6
cmp dword [edx + 0x14], 0x10
jb 0x49842e
mov edx, dword [edx]
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x22c], 0
cmp byte [edx], 0
jne 0x498452
xor ecx, ecx
jmp 0x498460
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x498457
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x22c]
call fcn.0040665b
cmp dword [ebp - 0x218], 0x10
lea ecx, [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x2a8], 0
push ecx
push 0
push 0x20006
push 0
push 0x4bb1cc
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x2ac], 0
cmovae eax, dword [ebp - 0x22c]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push dword [ebp - 0x24c]
cmp dword [ebp - 0x248], 0x10
lea ecx, [ebp - 0x25c]
lea eax, [ebp - 0x244]
cmovae ecx, dword [ebp - 0x25c]
cmp dword [ebp - 0x230], 0x10
push ecx
cmovae eax, dword [ebp - 0x244]
push 1
push 0
push eax
push dword [ebp - 0x2a8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x218]
cmp eax, 0x10
jb 0x49854f
mov ecx, dword [ebp - 0x22c]
inc eax
cmp eax, 0x1000
jb 0x498546
test cl, 0x1f
je 0x498522
call fcn.0044a6e1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x49852e
call fcn.0044a6e1
sub ecx, eax
cmp ecx, 4
jae 0x49853a
call fcn.0044a6e1
cmp ecx, 0x23
jbe 0x498544
call fcn.0044a6e1
mov ecx, eax
push ecx
call fcn.00483c80
add esp, 4
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x22c], 0
cmp eax, 0x10
jb 0x4985ba
mov ecx, dword [ebp - 0x28c]
inc eax
cmp eax, 0x1000
jb 0x4985b1
test cl, 0x1f
je 0x49858d
call fcn.0044a6e1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x498599
call fcn.0044a6e1
sub ecx, eax
cmp ecx, 4
jae 0x4985a5
call fcn.0044a6e1
cmp ecx, 0x23
jbe 0x4985af
call fcn.0044a6e1
mov ecx, eax
push ecx
call fcn.00483c80
add esp, 4
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x278], 0xf
mov dword [ebp - 0x27c], 0
mov byte [ebp - 0x28c], 0
cmp eax, 0x10
jb 0x498625
mov ecx, dword [ebp - 0x244]
inc eax
cmp eax, 0x1000
jb 0x49861c
test cl, 0x1f
je 0x4985f8
call fcn.0044a6e1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x498604
call fcn.0044a6e1
sub ecx, eax
cmp ecx, 4
jae 0x498610
call fcn.0044a6e1
cmp ecx, 0x23
jbe 0x49861a
call fcn.0044a6e1
mov ecx, eax
push ecx
call fcn.00483c80
add esp, 4
mov eax, dword [ebp - 0x248]
cmp eax, 0x10
jb 0x498675
mov ecx, dword [ebp - 0x25c]
inc eax
cmp eax, 0x1000
jb 0x49866c
test cl, 0x1f
je 0x498648
call fcn.0044a6e1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x498654
call fcn.0044a6e1
sub ecx, eax
cmp ecx, 4
jae 0x498660
call fcn.0044a6e1
cmp ecx, 0x23
jbe 0x49866a
call fcn.0044a6e1
mov ecx, eax
push ecx
call fcn.00483c80
add esp, 4
mov dword [ebp - 0x248], 0xf
mov dword [ebp - 0x24c], 0
mov byte [ebp - 0x25c], 0
cmp esi, 0x10
jb 0x4986a9
push 1
lea eax, [esi + 1]
push eax
push dword [ebp - 0x274]
call fcn.0040169b
add esp, 0xc
mov eax, dword [ebp - 0x290]
cmp eax, 0x10
jb 0x4986c6
push 1
inc eax
push eax
push dword [ebp - 0x2a4]
call fcn.0040169b
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00428f89
mov esp, ebp
pop ebp
ret