Function at 0x408910
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x469f8f
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x47f1f4]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov eax, dword [0x47f1f4]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov esi, 7
xor eax, eax
mov dword [esp + 0x200], esi
mov dword [esp + 0x1fc], ebx
mov word [esp + 0x1ec], ax
mov dword [esp + 0x288], ebx
xor ecx, ecx
mov dword [esp + 0x11c], esi
mov dword [esp + 0x118], ebx
mov word [esp + 0x108], cx
mov byte [esp + 0x288], 1
cmp dword [0x481da0], 0x20
jne 0x408a22
push 0xffffffffffffffff
push ebx
xor edx, edx
push 0x481d8c
mov ecx, 0x481d8c
mov dword [0x481da4], esi
mov dword [0x481da0], ebx
mov word [0x481d90], dx
call fcn.00401b10
mov edi, 8
cmp dword [esp + 0x11c], edi
jb 0x4089e8
mov eax, dword [esp + 0x108]
push eax
call fcn.00446286
add esp, 4
xor ecx, ecx
mov dword [esp + 0x11c], esi
mov dword [esp + 0x118], ebx
mov word [esp + 0x108], cx
cmp dword [esp + 0x200], edi
jb 0x409ce6
mov edx, dword [esp + 0x1ec]
push edx
call fcn.00446286
add esp, 4
jmp 0x409ce6
push 0x24
xor eax, eax
push 0x478320
lea ecx, [esp + 0x244]
mov dword [esp + 0x25c], esi
mov dword [esp + 0x258], ebx
mov word [esp + 0x248], ax
call fcn.00401a20
xor ecx, ecx
mov byte [esp + 0x17], bl
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x138], esi
mov dword [esp + 0x134], ebx
mov word [esp + 0x124], cx
xor edx, edx
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov word [esp + 0xc8], dx
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x244]
mov byte [esp + 0x290], 4
xor eax, eax
push ecx
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc8], esi
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], ax
call fcn.00401b10
mov byte [esp + 0x288], 5
push 0x11
xor edx, edx
push str.HKEY_CLASSES_ROOT
lea ecx, [esp + 0x228]
mov dword [esp + 0x240], esi
mov dword [esp + 0x23c], ebx
mov word [esp + 0x22c], dx
call fcn.00401a20
mov byte [esp + 0x288], 6
push 0x11
xor eax, eax
push str.HKEY_CURRENT_USER
lea ecx, [esp + 0x1b8]
mov dword [esp + 0x1d0], esi
mov dword [esp + 0x1cc], ebx
mov word [esp + 0x1bc], ax
call fcn.00401a20
mov byte [esp + 0x288], 7
xor ecx, ecx
push 0x12
mov word [esp + 0x180], cx
push str.HKEY_LOCAL_MACHINE
lea ecx, [esp + 0x180]
mov dword [esp + 0x198], esi
mov dword [esp + 0x194], ebx
call fcn.00401a20
mov byte [esp + 0x288], 8
push 0xa
xor edx, edx
push str.HKEY_USERS
lea ecx, [esp + 0x164]
mov dword [esp + 0x17c], esi
mov dword [esp + 0x178], ebx
mov word [esp + 0x168], dx
call fcn.00401a20
mov byte [esp + 0x288], 9
xor eax, eax
push 0x15
mov dword [esp + 0x1e8], esi
mov dword [esp + 0x1e4], ebx
mov word [esp + 0x1d4], ax
push str.HKEY_PERFORMANCE_DATA
lea ecx, [esp + 0x1d4]
call fcn.00401a20
mov byte [esp + 0x288], 0xa
xor ecx, ecx
push 0x13
mov word [esp + 0x19c], cx
push str.HKEY_CURRENT_CONFIG
lea ecx, [esp + 0x19c]
mov dword [esp + 0x1b4], esi
mov dword [esp + 0x1b0], ebx
call fcn.00401a20
mov byte [esp + 0x288], 0xb
push 0xd
xor edx, edx
push str.HKEY_DYN_DATA
lea ecx, [esp + 0x20c]
mov dword [esp + 0x224], esi
mov dword [esp + 0x220], ebx
mov word [esp + 0x210], dx
call fcn.00401a20
lea eax, [esp + 0x18]
mov byte [esp + 0x288], 0xc
mov edi, 0x5c
push eax
lea ecx, [esp + 0xa8]
mov dword [esp + 0x1c], edi
call fcn.00407c50
lea ecx, [esp + 0xa4]
push ecx
mov ecx, eax
xor edx, edx
lea esi, [esp + 0xec]
call fcn.00407860
lea edx, [esp + 0x18]
mov byte [esp + 0x288], 0xd
push edx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x1c], edi
call fcn.00407c50
lea edx, [eax + 1]
lea eax, [esp + 0xa4]
push eax
or ecx, 0xffffffff
lea esi, [esp + 0x50]
call fcn.00407860
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0x294], 0xe
call fcn.00401b10
mov byte [esp + 0x288], 0xd
cmp dword [esp + 0x64], 8
jb 0x408cc7
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00446286
add esp, 4
mov dword [esp + 0x60], ebx
xor edx, edx
mov dword [esp + 0x18], edi
lea edi, [esp + 0x18]
lea ebx, [esp + 0xa4]
mov dword [esp + 0x64], 7
mov word [esp + 0x50], dx
call fcn.00407890
lea edx, [eax + 1]
mov eax, ebx
push eax
or ecx, 0xffffffff
lea esi, [esp + 0x30]
call fcn.00407860
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xd0]
mov byte [esp + 0x294], 0xf
call fcn.00401b10
mov byte [esp + 0x288], 0xd
cmp dword [esp + 0x44], 8
jb 0x408d35
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00446286
add esp, 4
xor edx, edx
lea edi, [esp + 0x18]
lea ebx, [esp + 0xa4]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], dx
mov dword [esp + 0x18], 0x5c
call fcn.00407890
mov ecx, ebx
push ecx
mov ecx, eax
xor edx, edx
lea esi, [esp + 0x70]
call fcn.00407860
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x12c]
mov byte [esp + 0x294], 0x10
call fcn.00401b10
mov byte [esp + 0x288], 0xd
cmp dword [esp + 0x84], 8
jb 0x408dac
mov edx, dword [esp + 0x70]
push edx
call fcn.00446286
add esp, 4
xor eax, eax
mov ebx, 8
mov esi, 7
mov word [esp + 0x70], ax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], 0
cmp dword [esp + 0x100], ebx
jae 0x408de6
lea eax, [esp + 0xec]
mov edi, dword [esp + 0xfc]
push eax
mov eax, dword [esp + 0x238]
lea ecx, [esp + 0x224]
call fcn.00407ed0
test eax, eax
jne 0x408e12
mov dword [esp + 0x10], getsockname
jmp 0x408f39
mov eax, dword [esp + 0xec]
cmp dword [esp + 0x100], ebx
jae 0x408e29
lea eax, [esp + 0xec]
mov edi, dword [esp + 0xfc]
push eax
mov eax, dword [esp + 0x1c8]
lea ecx, [esp + 0x1b4]
call fcn.00407ed0
test eax, eax
jne 0x408e55
mov dword [esp + 0x10], reloc.WS2_32.dll_accept
jmp 0x408f39
mov eax, dword [esp + 0xec]
cmp dword [esp + 0x100], ebx
jae 0x408e6c
lea eax, [esp + 0xec]
mov edi, dword [esp + 0xfc]
push eax
mov eax, dword [esp + 0x190]
lea ecx, [esp + 0x17c]
call fcn.00407ed0
test eax, eax
jne 0x408e98
mov dword [esp + 0x10], reloc.WS2_32.dll_bind
jmp 0x408f39
mov eax, dword [esp + 0xec]
cmp dword [esp + 0x100], ebx
jae 0x408eaf
lea eax, [esp + 0xec]
mov edi, dword [esp + 0xfc]
push eax
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x160]
call fcn.00407ed0
test eax, eax
jne 0x408ed8
mov dword [esp + 0x10], reloc.WS2_32.dll_closesocket
jmp 0x408f39
lea eax, [esp + 0xe8]
lea ecx, [esp + 0x1cc]
call fcn.00409d10
test al, al
je 0x408ef9
mov dword [esp + 0x10], reloc.WS2_32.dll_connect
jmp 0x408f39
lea eax, [esp + 0xe8]
lea ecx, [esp + 0x194]
call fcn.00409d10
test al, al
je 0x408f1a
mov dword [esp + 0x10], reloc.WS2_32.dll_getpeername
jmp 0x408f39
lea eax, [esp + 0xe8]
lea ecx, [esp + 0x204]
call fcn.00409d10
test al, al
je 0x408f39
mov dword [esp + 0x10], reloc.WS2_32.dll_getsockname
cmp dword [esp + 0x100], ebx
jb 0x408f52
mov ecx, dword [esp + 0xec]
push ecx
call fcn.00446286
add esp, 4
xor edi, edi
xor edx, edx
mov dword [esp + 0x100], esi
mov dword [esp + 0xfc], edi
mov word [esp + 0xec], dx
cmp dword [esp + 0x21c], ebx
jb 0x408f85
mov eax, dword [esp + 0x208]
push eax
call fcn.00446286
add esp, 4
xor ecx, ecx
mov dword [esp + 0x21c], esi
mov dword [esp + 0x218], edi
mov word [esp + 0x208], cx
cmp dword [esp + 0x1ac], ebx
jb 0x408fb6
mov edx, dword [esp + 0x198]
push edx
call fcn.00446286
add esp, 4
xor eax, eax
mov dword [esp + 0x1ac], esi
mov dword [esp + 0x1a8], edi
mov word [esp + 0x198], ax
cmp dword [esp + 0x1e4], ebx
jb 0x408fe7
mov ecx, dword [esp + 0x1d0]
push ecx
call fcn.00446286
add esp, 4
xor edx, edx
mov dword [esp + 0x1e4], esi
mov dword [esp + 0x1e0], edi
mov word [esp + 0x1d0], dx
cmp dword [esp + 0x174], ebx
jb 0x409018
mov eax, dword [esp + 0x160]
push eax
call fcn.00446286
add esp, 4
xor ecx, ecx
mov dword [esp + 0x174], esi
mov dword [esp + 0x170], edi
mov word [esp + 0x160], cx
cmp dword [esp + 0x190], ebx
jb 0x409049
mov edx, dword [esp + 0x17c]
push edx
call fcn.00446286
add esp, 4
xor eax, eax
mov dword [esp + 0x190], esi
mov dword [esp + 0x18c], edi
mov word [esp + 0x17c], ax
cmp dword [esp + 0x1c8], ebx
jb 0x40907a
mov ecx, dword [esp + 0x1b4]
push ecx
call fcn.00446286
add esp, 4
xor edx, edx
mov dword [esp + 0x1c8], esi
mov dword [esp + 0x1c4], edi
mov word [esp + 0x1b4], dx
cmp dword [esp + 0x238], ebx
jb 0x4090ab
mov eax, dword [esp + 0x224]
push eax
call fcn.00446286
add esp, 4
xor ecx, ecx
mov dword [esp + 0x238], esi
mov dword [esp + 0x234], edi
mov word [esp + 0x224], cx
cmp dword [esp + 0xbc], ebx
jb 0x4090dc
mov edx, dword [esp + 0xa8]
push edx
call fcn.00446286
add esp, 4
cmp dword [esp + 0x10], reloc.WS2_32.dll_accept
jne 0x409102
lea eax, [esp + 0x10]
push eax
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x409102
mov dword [esp + 0x10], reloc.WS2_32.dll_accept
mov eax, dword [esp + 0x124]
cmp dword [esp + 0x138], ebx
jae 0x409119
lea eax, [esp + 0x124]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4091a3
mov eax, dword [esp + 0xc8]
cmp dword [esp + 0xdc], ebx
jae 0x40914b
lea eax, [esp + 0xc8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push edi
push edi
push edi
push eax
mov eax, dword [esp + 0x30]
push eax
call esi
test eax, eax
jne 0x409191
mov eax, dword [esp + 0xc8]
cmp dword [esp + 0xdc], ebx
jae 0x409178
lea eax, [esp + 0xc8]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push eax
push ecx
call esi
test eax, eax
jne 0x409191
mov byte [esp + 0x17], 1
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 7
xor edi, edi
mov eax, dword [esp + 0x10]
mov ecx, eax
and ecx, 0x80000000
cmp ecx, 0x80000000
je 0x4091be
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0xdc], ebx
jb 0x4091d7
mov edx, dword [esp + 0xc8]
push edx
call fcn.00446286
add esp, 4
xor eax, eax
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], edi
mov word [esp + 0xc8], ax
cmp dword [esp + 0x138], ebx
jb 0x409208
mov ecx, dword [esp + 0x124]
push ecx
call fcn.00446286
add esp, 4
xor edx, edx
mov byte [esp + 0x288], 1
mov dword [esp + 0x138], esi
mov dword [esp + 0x134], edi
mov word [esp + 0x124], dx
cmp dword [esp + 0x254], ebx
jb 0x409241
mov eax, dword [esp + 0x240]
push eax
call fcn.00446286
add esp, 4
cmp byte [esp + 0x17], 0
je 0x4093fb
sub esp, 0x1c
mov dword [esp + 0x3c], esp
mov esi, esp
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push 0x47836c
call fcn.004019b0
sub esp, 0x1c
mov byte [esp + 0x2dc], 0x11
mov ecx, esp
mov dword [esp + 0x7c], esp
push 0x478370
call fcn.004019b0
push esi
mov byte [esp + 0x2e0], 1
call fcn.00407f80
add esp, 0x3c
lea esi, [esp + 0x158]
call fcn.004073f0
add esp, 0x1c
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x294], 0x12
call fcn.00401b10
mov ecx, esi
mov byte [esp + 0x288], 1
call fcn.004019f0
cmp dword [esp + 0x1fc], 0x41
jne 0x4093f9
push 0
lea ecx, [esp + 0x1ec]
call fcn.00407830
cmp word [eax], 0x7f
jae 0x4093f9
push 0
lea ecx, [esp + 0x1ec]
call fcn.00407830
cmp word [eax], 0x21
jb 0x4093f9
lea ecx, [esp + 0x1e8]
push ecx
mov ecx, 0x20
lea edx, [ecx - 0x1f]
lea esi, [esp + 0x140]
call fcn.00407860
lea edx, [esp + 0x1e8]
mov ecx, 0x20
push edx
lea edx, [ecx + 1]
lea esi, [esp + 0x260]
mov byte [esp + 0x28c], 0x13
call fcn.00407860
mov bl, 0x14
mov byte [esp + 0x288], bl
mov eax, dword [esp + 0x150]
sub esp, 0x1c
lea ecx, [eax + eax]
mov esi, esp
mov dword [esp + 0x3c], esp
push ecx
lea ecx, [esp + 0x15c]
call fcn.00402050
mov edi, eax
call fcn.00407620
add esp, 4
lea esi, [esp + 0xa4]
call fcn.004073f0
add esp, 0x1c
push eax
lea ecx, [esp + 0x1ec]
mov byte [esp + 0x28c], 0x15
call fcn.004067b0
mov ecx, esi
mov byte [esp + 0x288], bl
call fcn.004019f0
lea eax, [esp + 0x25c]
lea ecx, [esp + 0x1e8]
call fcn.00409d10
test al, al
je 0x4093d9
lea edx, [esp + 0x13c]
push edx
lea ecx, [esp + 0x108]
call fcn.004067b0
lea ecx, [esp + 0x25c]
call fcn.004019f0
lea ecx, [esp + 0x13c]
mov byte [esp + 0x288], 1
call fcn.004019f0
xor edi, edi
cmp dword [esp + 0x118], edi
jne 0x409c96
lea eax, [esp + 0xe8]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x409c96
call fcn.004499cd
cdq
mov ecx, 0x5d
idiv ecx
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x3c], esp
push 0x10
lea edi, [esp + 0x108]
add edx, 0x21
movzx ebx, dx
call fcn.00407620
add esp, 4
lea esi, [esp + 0x158]
call fcn.004073f0
add esp, 0x1c
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x110]
mov byte [esp + 0x294], 0x16
call fcn.00401b10
mov ecx, esi
mov byte [esp + 0x288], 1
call fcn.004019f0
cmp dword [esp + 0x11c], 8
mov edi, dword [esp + 0x108]
jae 0x40949a
lea edi, [esp + 0x108]
mov edx, dword [esp + 0x118]
sub esp, 0x1c
lea eax, [edx + edx]
mov esi, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.00407620
add esp, 4
lea esi, [esp + 0x278]
call fcn.004073f0
add esp, 0x1c
push eax
lea ecx, [esp + 0x108]
lea esi, [esp + 0x140]
mov byte [esp + 0x28c], 0x17
call fcn.00409d40
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x294], 0x18
call fcn.00401b10
mov ecx, esi
call fcn.004019f0
lea ecx, [esp + 0x25c]
mov byte [esp + 0x288], 1
call fcn.004019f0
push ebx
lea edx, [esp + 0x1ec]
lea esi, [esp + 0x140]
call fcn.00409df0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x294], 0x19
call fcn.00401b10
mov ecx, esi
mov byte [esp + 0x288], 1
call fcn.004019f0
lea ecx, [esp + 0x1e8]
push ecx
lea ecx, [esp + 0x50]
call fcn.00405100
push str.HKEY_CURRENT_USERSoftwareSNDAPCID
lea ecx, [esp + 0x30]
mov byte [esp + 0x28c], 0x1a
call fcn.004019b0
mov byte [esp + 0x288], 0x1c
cmp dword [esp + 0x64], 8
mov edx, dword [esp + 0x60]
lea eax, [edx + edx]
mov dword [esp + 0x20], eax
jb 0x4095a2
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x18], ecx
jmp 0x4095aa
lea edx, [esp + 0x50]
mov dword [esp + 0x18], edx
push 0xffffffffffffffff
xor edi, edi
push edi
lea ecx, [esp + 0x34]
xor eax, eax
push ecx
mov esi, 7
lea ecx, [esp + 0x148]
mov dword [esp + 0x160], esi
mov dword [esp + 0x15c], edi
mov word [esp + 0x14c], ax
call fcn.00401b10
xor edx, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x21c], esi
mov dword [esp + 0x218], edi
mov word [esp + 0x208], dx
xor eax, eax
mov dword [esp + 0x1ac], esi
mov dword [esp + 0x1a8], edi
mov word [esp + 0x198], ax
push 0xffffffffffffffff
mov byte [esp + 0x28c], 0x1f
xor ecx, ecx
push edi
lea edx, [esp + 0x144]
mov word [esp + 0xd0], cx
push edx
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], edi
call fcn.00401b10
push str.HKEY_CLASSES_ROOT
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x28c], 0x20
call fcn.004019b0
push str.HKEY_CURRENT_USER
lea ecx, [esp + 0x124]
mov byte [esp + 0x28c], 0x21
call fcn.004019b0
push str.HKEY_LOCAL_MACHINE
lea ecx, [esp + 0x160]
mov byte [esp + 0x28c], 0x22
call fcn.004019b0
push str.HKEY_USERS
lea ecx, [esp + 0x17c]
mov byte [esp + 0x28c], 0x23
call fcn.004019b0
push str.HKEY_PERFORMANCE_DATA
lea ecx, [esp + 0x1b4]
mov byte [esp + 0x28c], 0x24
call fcn.004019b0
push str.HKEY_CURRENT_CONFIG
lea ecx, [esp + 0x224]
mov byte [esp + 0x28c], 0x25
call fcn.004019b0
push str.HKEY_DYN_DATA
lea ecx, [esp + 0x240]
mov byte [esp + 0x28c], 0x26
call fcn.004019b0
lea eax, [esp + 0x24]
mov byte [esp + 0x288], 0x27
mov ebx, 0x5c
push eax
lea ecx, [esp + 0xc8]
mov dword [esp + 0x28], ebx
call fcn.00407c50
lea ecx, [esp + 0xc4]
push ecx
mov ecx, eax
xor edx, edx
lea esi, [esp + 0xa8]
call fcn.00407860
lea edx, [esp + 0x24]
mov byte [esp + 0x288], 0x28
push edx
lea ecx, [esp + 0xc8]
mov dword [esp + 0x28], ebx
call fcn.00407c50
lea edx, [eax + 1]
lea eax, [esp + 0xc4]
push eax
or ecx, 0xffffffff
lea esi, [esp + 0x70]
call fcn.00407860
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0xd0]
mov byte [esp + 0x294], 0x29
call fcn.00401b10
mov byte [esp + 0x288], 0x28
cmp dword [esp + 0x84], 8
jb 0x4097a0
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00446286
add esp, 4
xor edx, edx
mov dword [esp + 0x24], ebx
lea edi, [esp + 0x24]
lea ebx, [esp + 0xc4]
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], 0
mov word [esp + 0x70], dx
call fcn.00407890
lea edx, [eax + 1]
mov eax, ebx
push eax
or ecx, 0xffffffff
lea esi, [esp + 0x8c]
call fcn.00407860
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x1a0]
mov byte [esp + 0x294], 0x2a
call fcn.00401b10
mov byte [esp + 0x288], 0x28
cmp dword [esp + 0xa0], 8
jb 0x409821
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.00446286
add esp, 4
xor edx, edx
lea edi, [esp + 0x24]
lea ebx, [esp + 0xc4]
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], dx
mov dword [esp + 0x24], 0x5c
call fcn.00407890
mov ecx, ebx
push ecx
mov ecx, eax
xor edx, edx
lea esi, [esp + 0x260]
call fcn.00407860
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push eax
lea ecx, [esp + 0x210]
mov byte [esp + 0x294], 0x2b
call fcn.00401b10
mov esi, 8
mov byte [esp + 0x288], 0x28
cmp dword [esp + 0x274], esi
jb 0x4098ac
mov edx, dword [esp + 0x260]
push edx
call fcn.00446286
add esp, 4
xor eax, eax
mov word [esp + 0x260], ax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x274], 7
mov dword [esp + 0x270], ebx
cmp dword [esp + 0xbc], esi
jae 0x4098df
lea eax, [esp + 0xa8]
mov edi, dword [esp + 0xb8]
push eax
mov eax, dword [esp + 0x1e4]
lea ecx, [esp + 0x1d0]
call fcn.00407ed0
test eax, eax
jne 0x40990b
mov dword [esp + 0x10], getsockname
jmp 0x4099d5
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x120]
call fcn.00409d10
test al, al
je 0x40992f
mov dword [esp + 0x10], reloc.WS2_32.dll_accept
jmp 0x4099d5
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x15c]
call fcn.00409d10
test al, al
je 0x409953
mov dword [esp + 0x10], reloc.WS2_32.dll_bind
jmp 0x4099d5
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x178]
call fcn.00409d10
test al, al
je 0x409974
mov dword [esp + 0x10], reloc.WS2_32.dll_closesocket
jmp 0x4099d5
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x1b0]
call fcn.00409d10
test al, al
je 0x409995
mov dword [esp + 0x10], reloc.WS2_32.dll_connect
jmp 0x4099d5
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x220]
call fcn.00409d10
test al, al
je 0x4099b6
mov dword [esp + 0x10], reloc.WS2_32.dll_getpeername
jmp 0x4099d5
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x23c]
call fcn.00409d10
test al, al
je 0x4099d5
mov dword [esp + 0x10], reloc.WS2_32.dll_getsockname
cmp dword [esp + 0xbc], esi
jb 0x4099ee
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.00446286
add esp, 4
xor edx, edx
mov edi, 7
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], dx
cmp dword [esp + 0x254], esi
jb 0x409a24
mov eax, dword [esp + 0x240]
push eax
call fcn.00446286
add esp, 4
xor ecx, ecx
mov dword [esp + 0x254], edi
mov dword [esp + 0x250], ebx
mov word [esp + 0x240], cx
cmp dword [esp + 0x238], esi
jb 0x409a55
mov edx, dword [esp + 0x224]
push edx
call fcn.00446286
add esp, 4
xor eax, eax
mov dword [esp + 0x238], edi
mov dword [esp + 0x234], ebx
mov word [esp + 0x224], ax
cmp dword [esp + 0x1c8], esi
jb 0x409a86
mov ecx, dword [esp + 0x1b4]
push ecx
call fcn.00446286
add esp, 4
xor edx, edx
mov dword [esp + 0x1c8], edi
mov dword [esp + 0x1c4], ebx
mov word [esp + 0x1b4], dx
cmp dword [esp + 0x190], esi
jb 0x409ab7
mov eax, dword [esp + 0x17c]
push eax
call fcn.00446286
add esp, 4
xor ecx, ecx
mov dword [esp + 0x190], edi
mov dword [esp + 0x18c], ebx
mov word [esp + 0x17c], cx
cmp dword [esp + 0x174], esi
jb 0x409ae8
mov edx, dword [esp + 0x160]
push edx
call fcn.00446286
add esp, 4
xor eax, eax
mov dword [esp + 0x174], edi
mov dword [esp + 0x170], ebx
mov word [esp + 0x160], ax
cmp dword [esp + 0x138], esi
jb 0x409b19
mov ecx, dword [esp + 0x124]
push ecx
call fcn.00446286
add esp, 4
xor edx, edx
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], ebx
mov word [esp + 0x124], dx
cmp dword [esp + 0x1e4], esi
jb 0x409b4a
mov eax, dword [esp + 0x1d0]
push eax
call fcn.00446286
add esp, 4
xor ecx, ecx
mov dword [esp + 0x1e4], edi
mov dword [esp + 0x1e0], ebx
mov word [esp + 0x1d0], cx
cmp dword [esp + 0xdc], esi
jb 0x409b7b
mov edx, dword [esp + 0xc8]
push edx
call fcn.00446286
add esp, 4
cmp dword [esp + 0x10], reloc.WS2_32.dll_accept
jne 0x409ba1
lea eax, [esp + 0x10]
push eax
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x409ba1
mov dword [esp + 0x10], reloc.WS2_32.dll_accept
mov eax, dword [esp + 0x208]
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x21c], esi
jae 0x409bbc
lea eax, [esp + 0x208]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409c1a
mov eax, dword [esp + 0x198]
cmp dword [esp + 0x1ac], esi
jae 0x409bf6
lea eax, [esp + 0x198]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push ecx
push edx
push 1
push ebx
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov edx, eax
and edx, 0x80000000
cmp edx, 0x80000000
je 0x409c35
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x194]
call fcn.004019f0
lea ecx, [esp + 0x204]
call fcn.004019f0
lea ecx, [esp + 0x13c]
call fcn.004019f0
cmp dword [esp + 0x44], esi
jb 0x409c6c
mov eax, dword [esp + 0x30]
push eax
call fcn.00446286
add esp, 4
xor ecx, ecx
mov byte [esp + 0x288], 1
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], cx
cmp dword [esp + 0x64], esi
jb 0x409c96
mov edx, dword [esp + 0x50]
push edx
call fcn.00446286
add esp, 4
lea ecx, [esp + 0x104]
call fcn.00409ea0
test al, al
je 0x409cbc
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x10c]
push eax
mov ecx, 0x481d8c
call fcn.00401b10
lea ecx, [esp + 0x104]
push ecx
mov ecx, 0x481d8c
call fcn.00405100
lea ecx, [esp + 0x104]
call fcn.004019f0
lea ecx, [esp + 0x1e8]
call fcn.004019f0
mov eax, 0x481d8c
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.004461e8
mov esp, ebp
pop ebp
ret