Function at 0x40dfe0
Capabilities:
Contain obfuscated stackstrings
Get thread local storage value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d29b
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x46d45c]
xor eax, ebp
mov dword [ebp - 0x68], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
call fcn.00402160
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402160
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00402160
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00402160
mov byte [ebp - 4], 3
cmp dword [0x46f680], 0
je 0x40e294
cmp dword [ebp + 0x14], 0xffffffff
jne 0x40e294
push 0
lea ecx, [ebp - 0x3b0]
call fcn.00402190
mov byte [ebp - 4], 4
push 0x45585c
lea ecx, [ebp - 0x3b4]
call fcn.00402190
mov byte [ebp - 4], 5
push 0x455860
lea ecx, [ebp - 0x3b8]
call fcn.00402190
mov byte [ebp - 4], 6
push 0x455864
lea ecx, [ebp - 0x3bc]
call fcn.00402190
mov byte [ebp - 4], 7
push 0x455868
lea ecx, [ebp - 0x3c0]
call fcn.00402190
mov byte [ebp - 4], 8
push 0x45586c
lea ecx, [ebp - 0x3c4]
call fcn.00402190
mov byte [ebp - 4], 9
push 0x455870
lea ecx, [ebp - 0x3c8]
call fcn.00402190
mov byte [ebp - 4], 0xa
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x3cc]
call fcn.00402190
mov byte [ebp - 4], 0xb
push 0x455874
lea ecx, [ebp - 0x3d4]
call fcn.00402190
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x3d8]
call fcn.00402190
mov byte [ebp - 4], 0xd
push 0xffffffffffffffff
push 0
push 0
lea edx, [ebp - 0x3b0]
push edx
movzx eax, byte [ebp + 0x18]
push eax
lea ecx, [ebp - 0x3b4]
push ecx
lea edx, [ebp - 0x3b8]
push edx
lea eax, [ebp - 0x3bc]
push eax
lea ecx, [ebp - 0x3c0]
push ecx
lea edx, [ebp - 0x3c4]
push edx
lea eax, [ebp - 0x3c8]
push eax
lea ecx, [ebp - 0x3cc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x3d0]
push eax
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0x438], eax
mov ecx, dword [ebp - 0x438]
mov dword [ebp - 0x43c], ecx
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x43c]
push edx
lea eax, [ebp - 0x3d4]
push eax
lea ecx, [ebp - 0x3d8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x3dc]
push eax
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0x440], eax
mov ecx, dword [ebp - 0x440]
mov dword [ebp - 0x444], ecx
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x444]
push edx
push 0
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c020
add esp, 0x40
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x3dc]
call fcn.004021c0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x3d0]
call fcn.004021c0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x3d8]
call fcn.004021c0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x3d4]
call fcn.004021c0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x3cc]
call fcn.004021c0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x3c8]
call fcn.004021c0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3c4]
call fcn.004021c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c0]
call fcn.004021c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3bc]
call fcn.004021c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3b8]
call fcn.004021c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3b4]
call fcn.004021c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3b0]
call fcn.004021c0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [0x46f464]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004047c0
add esp, 0x14
test eax, eax
jne 0x40e7cb
mov dword [ebp - 0x64], 0x320
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x38c]
push ecx
push 0
push 0
push 0x455888
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e7c1
cmp dword [ebp - 0x64], 0
je 0x40e7c1
lea ecx, [ebp - 0x3a8]
call fcn.00401a80
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x3a8]
push eax
lea ecx, [ebp - 0x38c]
push ecx
call fcn.0040d550
add esp, 8
movzx edx, al
test edx, edx
je 0x40e7b2
push 0
lea ecx, [ebp - 0x3a4]
call fcn.00418b00
mov ecx, eax
call fcn.00402270
mov dword [ebp - 0x3ac], eax
push 0x45588c
mov eax, dword [ebp - 0x3ac]
push eax
call fcn.00438feb
add esp, 8
test eax, eax
je 0x40e7b2
push 0
lea ecx, [ebp - 0x3a8]
push ecx
lea edx, [ebp - 0x3e0]
push edx
call fcn.00408fc0
add esp, 0xc
mov dword [ebp - 0x448], eax
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x44c], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x44c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00402240
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x3e0]
call fcn.004021c0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402270
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00409fb0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x3ac]
push edx
lea ecx, [ebp - 0x3e8]
call fcn.00402190
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x3e8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040b960
add esp, 0x14
mov byte [ebp - 0x3e1], al
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x3e8]
call fcn.004021c0
movzx edx, byte [ebp - 0x3e1]
test edx, edx
je 0x40e7b2
cmp dword [ebp + 0x14], 0xffffffff
jne 0x40e66f
push 0
lea ecx, [ebp - 0x3ec]
call fcn.00402190
mov byte [ebp - 4], 0x13
push 0x455894
lea ecx, [ebp - 0x3f0]
call fcn.00402190
mov byte [ebp - 4], 0x14
push 0x455898
lea ecx, [ebp - 0x3f4]
call fcn.00402190
mov byte [ebp - 4], 0x15
push 0x45589c
lea ecx, [ebp - 0x3f8]
call fcn.00402190
mov byte [ebp - 4], 0x16
push 0x4558a0
lea ecx, [ebp - 0x3fc]
call fcn.00402190
mov byte [ebp - 4], 0x17
push 0x4558a4
lea ecx, [ebp - 0x400]
call fcn.00402190
mov byte [ebp - 4], 0x18
push 0x4558a8
lea ecx, [ebp - 0x404]
call fcn.00402190
mov byte [ebp - 4], 0x19
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x408]
call fcn.00402190
mov byte [ebp - 4], 0x1a
push 0x4558ac
lea ecx, [ebp - 0x410]
call fcn.00402190
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x414]
call fcn.00402190
mov byte [ebp - 4], 0x1c
push 0xffffffffffffffff
push 0
push 0
lea edx, [ebp - 0x3ec]
push edx
movzx eax, byte [ebp + 0x18]
push eax
lea ecx, [ebp - 0x3f0]
push ecx
lea edx, [ebp - 0x3f4]
push edx
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x3fc]
push ecx
lea edx, [ebp - 0x400]
push edx
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x40c]
push eax
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0x450], eax
mov ecx, dword [ebp - 0x450]
mov dword [ebp - 0x454], ecx
mov byte [ebp - 4], 0x1d
mov edx, dword [ebp - 0x454]
push edx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x418]
push eax
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0x458], eax
mov ecx, dword [ebp - 0x458]
mov dword [ebp - 0x45c], ecx
mov byte [ebp - 4], 0x1e
mov edx, dword [ebp - 0x45c]
push edx
push 0
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c020
add esp, 0x40
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x418]
call fcn.004021c0
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x40c]
call fcn.004021c0
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x414]
call fcn.004021c0
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x410]
call fcn.004021c0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x408]
call fcn.004021c0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x404]
call fcn.004021c0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x400]
call fcn.004021c0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x3fc]
call fcn.004021c0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x3f8]
call fcn.004021c0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x3f4]
call fcn.004021c0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x3f0]
call fcn.004021c0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x3ec]
call fcn.004021c0
push 0
lea ecx, [ebp - 0x41c]
call fcn.00402190
mov byte [ebp - 4], 0x1f
push 0x4558c0
lea ecx, [ebp - 0x420]
call fcn.00402190
mov byte [ebp - 4], 0x20
push 0x4558c4
lea ecx, [ebp - 0x424]
call fcn.00402190
mov byte [ebp - 4], 0x21
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x428]
call fcn.00402190
mov byte [ebp - 4], 0x22
mov eax, dword [ebp - 0x3ac]
push eax
lea ecx, [ebp - 0x430]
call fcn.00402190
mov byte [ebp - 4], 0x23
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x41c]
push ecx
movzx edx, byte [ebp + 0x18]
push edx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x428]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x42c]
push edx
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0x460], eax
mov eax, dword [ebp - 0x460]
mov dword [ebp - 0x464], eax
mov byte [ebp - 4], 0x24
mov ecx, dword [ebp - 0x464]
push ecx
lea edx, [ebp - 0x430]
push edx
push 0xc
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040c020
add esp, 0x40
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x42c]
call fcn.004021c0
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x430]
call fcn.004021c0
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x428]
call fcn.004021c0
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x424]
call fcn.004021c0
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x420]
call fcn.004021c0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x41c]
call fcn.004021c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3a8]
call fcn.00401ae0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x434], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004021c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004021c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004021c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004021c0
mov eax, dword [ebp - 0x434]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x68]
xor ecx, ebp
call fcn.004376f1
mov esp, ebp
pop ebp
ret