Function at 0x411870
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x437bd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov al, byte [esp + 3]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], al
call fcn.00401040
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x24], cl
lea ecx, [esp + 0x24]
mov dword [esp + 0x50], ebx
call fcn.00401040
mov edi, str.SOFTWAREWebzenMuConnection
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call fcn.00412460
test al, al
je 0x4118fa
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov edx, ecx
mov esi, str.SOFTWAREWebzenMuConnection
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call fcn.00412440
mov eax, dword [0x43b0f4]
lea ecx, [esp + 0x20]
push eax
push ebx
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 1
mov dword [esp + 0x3c], reloc.OLEAUT32.dll_SysReAllocString
call fcn.004121a0
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 0
call fcn.00401040
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], dl
call fcn.00401040
mov edi, 0x447dec
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call fcn.00412460
test al, al
je 0x411984
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov eax, ecx
mov esi, 0x447dec
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [ecx + ebp], 0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov dword [esp + 0x14], ebx
jne 0x41199f
mov eax, 0x439658
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x34]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4119c6
xor bl, bl
jmp 0x4119f6
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x4119d3
mov eax, 0x439658
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
push 1
lea ecx, [esp + 0x24]
call fcn.00401040
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
test bl, bl
pop ebx
jne 0x411a4e
test eax, eax
je 0x411a3d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x411a34
cmp al, 0xff
je 0x411a34
dec al
mov byte [ecx], al
xor al, al
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
push ecx
call fcn.0042af98
add esp, 4
xor al, al
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
test eax, eax
je 0x411a7e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x411a75
cmp al, 0xff
je 0x411a75
dec al
mov byte [ecx], al
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
push ecx
call fcn.0042af98
add esp, 4
mov ecx, dword [esp + 0x34]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x40
ret