Function at 0x4ea310
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x611641
mov eax, dword fs:[0]
push eax
mov eax, 0x121c
call fcn.005d9b90
mov eax, dword [0x67f864]
xor eax, esp
mov dword [esp + 0x1218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67f864]
xor eax, esp
push eax
lea eax, [esp + 0x1230]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1240]
mov edx, dword [eax + 0x44]
push 0x400
lea ecx, [esp + 0xa30]
push ecx
push 0x81
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea edi, [esp + 0xa2c]
xor ebx, ebx
mov dword [esp + 0x18], edi
xor esi, esi
jmp 0x4ea38b
mov edi, dword [esp + 0x18]
cmp edi, ebx
je 0x4ea3d1
push 0xa
push edi
call fcn.005d3af4
add eax, 2
add esi, 1
add esp, 8
cmp esi, 5
mov dword [esp + 0x18], eax
jl 0x4ea387
cmp eax, ebx
je 0x4ea3cd
push 0xa
push eax
call fcn.005d3af4
add esp, 8
cmp eax, ebx
je 0x4ea3c5
mov edi, dword [esp + 0x18]
mov word [eax], bx
jmp 0x4ea3ef
mov dword [esp + 0x18], ebx
mov edi, ebx
jmp 0x4ea3d1
mov edi, dword [esp + 0x18]
mov eax, str.Sketchpad.Document
mov edx, edi
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4ea3e0
lea edx, [esp + 0x22c]
mov eax, edi
sub edx, edi
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4ea400
lea edi, [esp + 0x22c]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4ea420
mov ecx, 0xa
mov esi, str._shellopenddeexec
rep movsd dword es:[edi], dword [esi]
call fcn.00572ee2
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4ea452
push 0x80004005
call fcn.0044a870
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1238], ebx
mov edi, dword [esp + 0x1c]
mov edx, dword [edi + 0x44]
push 0x104
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x104
or eax, ecx
jge 0x4ea4a7
push 0x104
lea ecx, [esp + 0x18]
call fcn.0044be10
mov ebp, dword [esp + 0x14]
push 0x104
push ebp
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x4ea4e5
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4ea4c3
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0044bd60
mov ebp, dword [esp + 0x14]
cmp ebp, ebx
jne 0x4ea4ed
xor eax, eax
jmp 0x4ea507
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4ea4f2
sub eax, edx
sar eax, 1
js 0x4ea76f
cmp eax, dword [ebp - 8]
jg 0x4ea76f
push 0x5c
mov dword [ebp - 0xc], eax
push ebp
mov word [ebp + eax*2], bx
call fcn.005d38b8
add esp, 8
cmp eax, ebx
je 0x4ea585
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
je 0x4ea585
mov ebp, dword [ebp - 0xc]
sub ebp, eax
sub ebp, 1
push ebp
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call fcn.004e18e0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x123c], 1
call fcn.004d4e10
mov byte [esp + 0x1238], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ea581
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x14]
push 0x2e
push ebp
call fcn.005d38b8
add esp, 8
cmp eax, ebx
je 0x4ea5ea
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
je 0x4ea5ea
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004e1960
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x123c], 2
call fcn.004d4e10
mov byte [esp + 0x1238], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ea5e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
push ebp
call esi
push str.system
mov word [edi + 0x90], ax
call esi
mov word [edi + 0x92], ax
lea edi, [esp + 0x22c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4ea612
mov ecx, 6
mov esi, str.Application
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x230]
push edx
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push SysReAllocStringLen
call edi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jne 0x4ea6d3
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x104
or eax, ecx
jge 0x4ea67d
push 0x104
lea ecx, [esp + 0x18]
call fcn.0044be10
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
lea eax, [esi + esi + 2]
push eax
push ebp
push 1
push 0
push 0
push ecx
call ebx
test ebp, ebp
jne 0x4ea698
xor eax, eax
jmp 0x4ea6b5
mov eax, ebp
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ea6a0
sub eax, edx
sar eax, 1
js 0x4ea76f
cmp eax, dword [ebp - 8]
jg 0x4ea76f
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2], 0
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x20]
push eax
push 0x639994
push SysReAllocStringLen
call edi
test eax, eax
jne 0x4ea71e
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ea6f1
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push 0
push edx
call ebx
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov dword [esp + 0x1238], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ea745
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1218]
xor ecx, esp
call fcn.005ce60a
add esp, 0x1228
ret 4
push 0x80070057
call fcn.0044a870
int3