Function at 0x405280
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x48b938
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4b1784]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x6c]
mov ebx, edx
xor ebp, ebp
mov esi, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x64], ebp
call fcn.004048d0
test eax, eax
jne 0x40536e
call fcn.00404970
test eax, eax
jne 0x40536e
lea eax, [esp + 0x18]
push eax
push 0x2001f
push ebp
push esi
push SysReAllocStringLen
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x40530b
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], esi
jmp 0x405327
mov edx, esi
push SysReAllocStringLen
lea esi, [esp + 0x18]
call fcn.00416a50
test eax, eax
jne 0x405454
mov esi, dword [esp + 0x14]
cmp edi, ebp
jne 0x405335
push 0x80004005
call fcn.00416be0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
lea ecx, [eax + eax]
push ecx
push edi
push 1
push ebp
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
je 0x405360
push esi
call ebx
xor esi, esi
xor edx, edx
cmp edi, ebp
sete dl
mov edi, edx
jmp 0x4054d5
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebp
mov word [esp + 0x40], bp
lea ebx, [esp + 0x20]
mov byte [esp + 0x64], 1
call fcn.004049f0
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x44]
mov byte [esp + 0x6c], 2
call fcn.0040c2f0
mov ebx, 8
mov byte [esp + 0x64], 1
cmp dword [esp + 0x38], ebx
jb 0x4053bb
mov eax, dword [esp + 0x24]
push eax
call fcn.00469050
add esp, 4
push 1
push 0x492c00
lea ecx, [esp + 0x44]
call fcn.0040dd80
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4053d0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x44]
call fcn.0040dd80
cmp dword [esp + 0x54], ebx
mov eax, dword [esp + 0x40]
jae 0x4053f8
lea eax, [esp + 0x40]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push ebp
push eax
push reloc.WS2_32.dll_closesocket
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x405421
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], esi
jmp 0x40546b
cmp dword [esp + 0x54], ebx
mov edx, dword [esp + 0x40]
jae 0x40542f
lea edx, [esp + 0x40]
push reloc.WS2_32.dll_closesocket
lea esi, [esp + 0x18]
call fcn.00416a50
test eax, eax
je 0x405467
cmp dword [esp + 0x54], ebx
jb 0x405454
mov edx, dword [esp + 0x40]
push edx
call fcn.00469050
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x405463
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4054de
mov esi, dword [esp + 0x14]
cmp edi, ebp
jne 0x405479
push 0x80004005
call fcn.00416be0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x1c]
add eax, 1
add eax, eax
push eax
push edi
push 1
push ebp
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
je 0x4054a7
push esi
call ebx
xor esi, esi
xor edx, edx
cmp edi, ebp
sete dl
cmp dword [esp + 0x54], 8
mov edi, edx
jb 0x4054c4
mov eax, dword [esp + 0x40]
push eax
call fcn.00469050
add esp, 4
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebp
mov word [esp + 0x40], bp
cmp esi, ebp
je 0x4054dc
push esi
call ebx
mov eax, edi
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00469efd
add esp, 0x54
ret