Function at 0x401000
Capabilities:
Contain obfuscated stackstrings
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44beb1
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x46d45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x1c]
call fcn.00402160
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00402160
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402160
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00402160
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00402160
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.00402160
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
call fcn.00402160
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
call fcn.00402160
mov byte [ebp - 4], 7
cmp dword [0x46f680], 0
je 0x40129a
cmp dword [ebp + 0x14], 0xffffffff
jne 0x40129a
push 0
lea ecx, [ebp - 0x60]
call fcn.00402190
mov byte [ebp - 4], 8
push 0x45343c
lea ecx, [ebp - 0x64]
call fcn.00402190
mov byte [ebp - 4], 9
push 0x453440
lea ecx, [ebp - 0x68]
call fcn.00402190
mov byte [ebp - 4], 0xa
push 0x453444
lea ecx, [ebp - 0x6c]
call fcn.00402190
mov byte [ebp - 4], 0xb
push 0x453448
lea ecx, [ebp - 0x70]
call fcn.00402190
mov byte [ebp - 4], 0xc
push 0x45344c
lea ecx, [ebp - 0x74]
call fcn.00402190
mov byte [ebp - 4], 0xd
push 0x453450
lea ecx, [ebp - 0x78]
call fcn.00402190
mov byte [ebp - 4], 0xe
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00402190
mov byte [ebp - 4], 0xf
push 0x453454
lea ecx, [ebp - 0x84]
call fcn.00402190
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x88]
call fcn.00402190
mov byte [ebp - 4], 0x11
push 0xffffffffffffffff
push 0
push 0
lea edx, [ebp - 0x60]
push edx
movzx eax, byte [ebp + 0x18]
push eax
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x7c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], ecx
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0xdc]
push edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x88]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x8c]
push eax
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], ecx
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0xe4]
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], 0x12
lea ecx, [ebp - 0x8c]
call fcn.004021c0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x80]
call fcn.004021c0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x88]
call fcn.004021c0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x84]
call fcn.004021c0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x7c]
call fcn.004021c0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x78]
call fcn.004021c0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x74]
call fcn.004021c0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x70]
call fcn.004021c0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x6c]
call fcn.004021c0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x68]
call fcn.004021c0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x64]
call fcn.004021c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x60]
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
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x401342
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
call fcn.004021c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
call fcn.004021c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004021c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.004021c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004021c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004021c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004021c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004021c0
mov eax, dword [ebp - 0x90]
jmp 0x401877
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0041d570
add esp, 0xc
test eax, eax
jne 0x4017fb
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [0x46f464]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
lea ecx, [ebp - 0x40]
call fcn.00402270
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.004047c0
add esp, 0x14
test eax, eax
jne 0x4017ed
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00402270
push eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.0041d500
add esp, 0xc
test eax, eax
jne 0x4017e3
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push str.StubPath
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0041d480
add esp, 0x14
test eax, eax
jne 0x4017e3
lea ecx, [ebp - 0x1c]
call fcn.00402270
movzx edx, word [eax]
test edx, edx
je 0x4017e3
lea ecx, [ebp - 0x38]
call fcn.00402270
movzx eax, word [eax]
test eax, eax
jne 0x401405
push 0x45346c
lea ecx, [ebp - 0x38]
call fcn.004021e0
lea ecx, [ebp - 0x5c]
call fcn.00401a80
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402270
push eax
call fcn.0040d550
add esp, 8
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x34]
call fcn.00402240
push 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x94]
push ecx
call fcn.00408fc0
add esp, 0xc
mov dword [ebp - 0xe8], eax
mov edx, dword [ebp - 0xe8]
mov dword [ebp - 0xec], edx
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0xec]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402240
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x94]
call fcn.004021c0
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
call fcn.00402270
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00409fb0
add esp, 0x10
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040b960
add esp, 0x14
movzx eax, al
test eax, eax
je 0x4017d7
cmp dword [ebp + 0x14], 0xffffffff
jne 0x40170b
push 0
lea ecx, [ebp - 0x98]
call fcn.00402190
mov byte [ebp - 4], 0x16
push 0x453474
lea ecx, [ebp - 0x9c]
call fcn.00402190
mov byte [ebp - 4], 0x17
push 0x453478
lea ecx, [ebp - 0xa0]
call fcn.00402190
mov byte [ebp - 4], 0x18
push 0x45347c
lea ecx, [ebp - 0xa4]
call fcn.00402190
mov byte [ebp - 4], 0x19
push 0x453480
lea ecx, [ebp - 0xa8]
call fcn.00402190
mov byte [ebp - 4], 0x1a
push 0x453484
lea ecx, [ebp - 0xac]
call fcn.00402190
mov byte [ebp - 4], 0x1b
push 0x453488
lea ecx, [ebp - 0xb0]
call fcn.00402190
mov byte [ebp - 4], 0x1c
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.00402190
mov byte [ebp - 4], 0x1d
push 0x45348c
lea ecx, [ebp - 0xbc]
call fcn.00402190
mov byte [ebp - 4], 0x1e
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0xc0]
call fcn.00402190
mov byte [ebp - 4], 0x1f
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x98]
push eax
movzx ecx, byte [ebp + 0x18]
push ecx
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0xa4]
push ecx
lea edx, [ebp - 0xa8]
push edx
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xb0]
push ecx
lea edx, [ebp - 0xb4]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xb8]
push ecx
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0xf0], eax
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0xf4], edx
mov byte [ebp - 4], 0x20
mov eax, dword [ebp - 0xf4]
push eax
lea ecx, [ebp - 0xbc]
push ecx
lea edx, [ebp - 0xc0]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xc4]
push ecx
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0xf8], eax
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], edx
mov byte [ebp - 4], 0x21
mov eax, dword [ebp - 0xfc]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0040c020
add esp, 0x40
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0xc4]
call fcn.004021c0
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0xb8]
call fcn.004021c0
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0xc0]
call fcn.004021c0
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0xbc]
call fcn.004021c0
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0xb4]
call fcn.004021c0
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0xb0]
call fcn.004021c0
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0xac]
call fcn.004021c0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0xa8]
call fcn.004021c0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xa4]
call fcn.004021c0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0xa0]
call fcn.004021c0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x9c]
call fcn.004021c0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x98]
call fcn.004021c0
push 0
lea ecx, [ebp - 0xc8]
call fcn.00402190
mov byte [ebp - 4], 0x22
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0xcc]
call fcn.00402190
mov byte [ebp - 4], 0x23
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0xc8]
push ecx
movzx edx, byte [ebp + 0x18]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0xcc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xd0]
push edx
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x104], eax
mov byte [ebp - 4], 0x24
mov ecx, dword [ebp - 0x104]
push ecx
lea edx, [ebp - 0x38]
push edx
push 3
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040c020
add esp, 0x40
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0xd0]
call fcn.004021c0
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0xcc]
call fcn.004021c0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xc8]
call fcn.004021c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x5c]
call fcn.00401ae0
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x401342
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xd4], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
call fcn.004021c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
call fcn.004021c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004021c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.004021c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004021c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004021c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004021c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004021c0
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret