Function at 0x493010
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52bb76
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x595cb8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SoftwarePTECH_
lea ecx, [ebp - 0x238]
call fcn.0041f910
push 0x86
push 0x5723c8
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 0
call fcn.00428980
push str.userid
lea ecx, [ebp - 0x23c]
call fcn.0041f910
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
push 0xf003f
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
push dword [ebp - 0x238]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0042b000
test eax, eax
je 0x493201
push 0xf003f
push dword [ebp - 0x238]
lea ecx, [ebp - 0x248]
push SysReAllocString
call fcn.0042b000
test eax, eax
je 0x493201
sub esp, 0x14
lea ecx, [ebp - 0x248]
push dword [ebp - 0x238]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0044f0a0
test eax, eax
je 0x493201
sub esp, 0x14
lea ecx, [ebp - 0x248]
push dword [ebp - 0x238]
push SysReAllocString
call fcn.0044f0a0
mov esi, eax
test esi, esi
je 0x493201
lea ecx, [ebp - 0x230]
call fcn.00420390
push esi
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push str.createUserId_Create_or_Open__d
push eax
call fcn.00420c20
add esp, 8
mov ecx, esp
push 0x56d3a8
call fcn.0041f910
lea ecx, [ebp - 0x230]
call fcn.00422230
add esp, 4
lea ecx, [ebp - 0x22c]
push str.createUserId
call fcn.0041f910
push str.WebInstallerMain
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 4
call fcn.0041f910
push 2
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004210a0
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov edx, dword [ebp - 0x234]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4931cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4931ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x576d84
mov ecx, 0x59c91c
call fcn.0041fac0
jmp 0x49344d
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x22c], 0x104
push 0
push eax
call fcn.004f9110
add esp, 0xc
lea eax, [ebp - 0x22c]
lea ecx, [ebp - 0x248]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x23c]
call fcn.0042b0b0
test eax, eax
jne 0x493346
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x493251
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, 0x59c91c
call fcn.0041fd40
push str.createUserId
lea ecx, [ebp - 0x234]
call fcn.0041f910
push str.WebInstallerMain
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 6
call fcn.0041f910
push 0x59c91c
mov edx, str.found_userId:
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x230]
call fcn.00423d10
add esp, 4
push 0
push eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.004210a0
mov byte [ebp - 4], 7
or esi, 0xffffffff
mov edx, dword [ebp - 0x230]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4932f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493311
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493332
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x493700
push eax
jmp 0x4936fa
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov esi, eax
test esi, esi
je 0x493482
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x493372
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x230], eax
push esi
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 9
push str.createUserId_CoCreateGuid__d
push eax
call fcn.00420c20
add esp, 8
mov ecx, esp
push 0x56d3a8
call fcn.0041f910
lea ecx, [ebp - 0x230]
call fcn.00422230
add esp, 4
lea ecx, [ebp - 0x234]
push str.createUserId
call fcn.0041f910
push str.WebInstallerMain
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0xa
call fcn.0041f910
push 2
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.004210a0
mov byte [ebp - 4], 0xa
or esi, 0xffffffff
mov edx, dword [ebp - 0x22c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49341b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, esi
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49343c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 2
push 0x576d84
mov ecx, 0x59c91c
call fcn.0041fd40
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49346e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x493700
push eax
jmp 0x4936fa
movzx eax, byte [ebp - 0x219]
push eax
movzx eax, byte [ebp - 0x21a]
push eax
movzx eax, byte [ebp - 0x21b]
push eax
movzx eax, byte [ebp - 0x21c]
push eax
movzx eax, byte [ebp - 0x21d]
push eax
movzx eax, byte [ebp - 0x21e]
push eax
movzx eax, byte [ebp - 0x21f]
push eax
movzx eax, byte [ebp - 0x220]
push eax
movzx eax, word [ebp - 0x222]
push eax
movzx eax, word [ebp - 0x224]
push eax
push dword [ebp - 0x228]
push str._08X_04hX_04hX_02X_02X_02X_02X_02X_02X_02X_02X
push 0x59c91c
call fcn.00420c20
add esp, 0x34
lea ecx, [ebp - 0x234]
push str.createUserId
call fcn.0041f910
push str.WebInstallerMain
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0xc
call fcn.0041f910
push 0x59c91c
mov edx, str.new_userId:
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x230]
call fcn.00423d10
add esp, 4
push 0
push eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.004210a0
mov byte [ebp - 4], 0xd
or esi, 0xffffffff
mov edx, dword [ebp - 0x230]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493568
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov eax, esi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493589
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4935aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x59c91c]
mov edi, dword [ebp - 0x248]
test eax, eax
jne 0x4935c0
mov ebx, 0xd
jmp 0x4935f8
mov edx, eax
lea ebx, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4935c5
sub edx, ebx
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x23c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
je 0x4936f5
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x49360d
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x230], eax
push ebx
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xf
push str.createUserId_SetStringValue__d
push eax
call fcn.00420c20
add esp, 8
mov ecx, esp
push 0x56d3a8
call fcn.0041f910
lea ecx, [ebp - 0x230]
call fcn.00422230
add esp, 4
lea ecx, [ebp - 0x234]
push str.createUserId
call fcn.0041f910
push str.WebInstallerMain
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0x10
call fcn.0041f910
push 2
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.004210a0
mov byte [ebp - 4], 0x10
mov eax, esi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4936b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
mov eax, esi
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4936d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4936f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x493700
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493721
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x493743
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f4566
mov esp, ebp
pop ebp
ret