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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d0bf
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x46d45c]
xor eax, ebp
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 - 0x28]
call fcn.00402160
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402160
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00402160
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00402160
mov byte [ebp - 4], 4
cmp dword [0x46f680], 0
je 0x40d94c
cmp dword [ebp + 0x1c], 0xffffffff
jne 0x40d94c
push 0
lea ecx, [ebp - 0xa8]
call fcn.00402190
mov byte [ebp - 4], 5
push 0x455808
lea ecx, [ebp - 0xac]
call fcn.00402190
mov byte [ebp - 4], 6
push 0x45580c
lea ecx, [ebp - 0xb0]
call fcn.00402190
mov byte [ebp - 4], 7
push 0x455810
lea ecx, [ebp - 0xb4]
call fcn.00402190
mov byte [ebp - 4], 8
push 0x455814
lea ecx, [ebp - 0xb8]
call fcn.00402190
mov byte [ebp - 4], 9
push 0x455818
lea ecx, [ebp - 0xbc]
call fcn.00402190
mov byte [ebp - 4], 0xa
push 0x45581c
lea ecx, [ebp - 0xc0]
call fcn.00402190
mov byte [ebp - 4], 0xb
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00402190
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0xcc]
call fcn.00402190
mov byte [ebp - 4], 0xd
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0xd0]
call fcn.00402190
mov byte [ebp - 4], 0xe
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0xa8]
push eax
movzx ecx, byte [ebp + 0x20]
push ecx
lea edx, [ebp - 0xac]
push edx
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0xb4]
push ecx
lea edx, [ebp - 0xb8]
push edx
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0xc0]
push ecx
lea edx, [ebp - 0xc4]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xc8]
push ecx
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0x120], eax
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x124], edx
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x124]
push eax
lea ecx, [ebp - 0xcc]
push ecx
lea edx, [ebp - 0xd0]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xd4]
push ecx
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0x128], eax
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x12c], edx
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x12c]
push eax
push 0
mov ecx, dword [ebp + 0x1c]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0040c020
add esp, 0x40
mov dword [ebp + 0x1c], eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xd4]
call fcn.004021c0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xc8]
call fcn.004021c0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xd0]
call fcn.004021c0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xcc]
call fcn.004021c0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xc4]
call fcn.004021c0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xc0]
call fcn.004021c0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xbc]
call fcn.004021c0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xb8]
call fcn.004021c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xb4]
call fcn.004021c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xb0]
call fcn.004021c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xac]
call fcn.004021c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa8]
call fcn.004021c0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [0x46f464]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004047c0
add esp, 0x14
test eax, eax
jne 0x40de7b
lea ecx, [ebp - 0x68]
call fcn.00402160
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x68]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0041d480
add esp, 0x14
test eax, eax
jne 0x40de65
lea ecx, [ebp - 0x68]
call fcn.00416f60
test eax, eax
je 0x40de65
lea ecx, [ebp - 0x80]
call fcn.00403750
mov byte [ebp - 4], 0x12
push 0
lea ecx, [ebp - 0x80]
push ecx
movzx edx, word [ebp + 0x18]
push edx
lea ecx, [ebp - 0x68]
call fcn.00402270
push eax
call fcn.0040d350
add esp, 0x10
mov dword [ebp - 0x84], 0
jmp 0x40d9fc
mov eax, dword [ebp - 0x84]
add eax, 1
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0x80]
call fcn.00403820
cmp dword [ebp - 0x84], eax
jae 0x40de59
mov ecx, dword [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x80]
call fcn.00403840
mov dword [ebp - 0xa4], eax
push 0
mov ecx, dword [ebp - 0xa4]
add ecx, 4
call fcn.00418b00
push eax
lea ecx, [ebp - 0x28]
call fcn.00402240
lea ecx, [ebp - 0xa0]
call fcn.00401a80
mov byte [ebp - 4], 0x13
lea edx, [ebp - 0xa0]
push edx
push 0
mov ecx, dword [ebp - 0xa4]
add ecx, 4
call fcn.00418b00
mov ecx, eax
call fcn.00402270
push eax
call fcn.0040d550
add esp, 8
push 0
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0xd8]
push ecx
call fcn.00408fc0
add esp, 0xc
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x134], edx
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x134]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402240
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xd8]
call fcn.004021c0
lea ecx, [ebp - 0x24]
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 - 0x20], eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040b960
add esp, 0x14
movzx eax, al
test eax, eax
je 0x40de45
cmp dword [ebp + 0x1c], 0xffffffff
jne 0x40dd4f
push 0
lea ecx, [ebp - 0xdc]
call fcn.00402190
mov byte [ebp - 4], 0x15
push 0x455820
lea ecx, [ebp - 0xe0]
call fcn.00402190
mov byte [ebp - 4], 0x16
push 0x455824
lea ecx, [ebp - 0xe4]
call fcn.00402190
mov byte [ebp - 4], 0x17
push 0x455828
lea ecx, [ebp - 0xe8]
call fcn.00402190
mov byte [ebp - 4], 0x18
push 0x45582c
lea ecx, [ebp - 0xec]
call fcn.00402190
mov byte [ebp - 4], 0x19
push 0x455830
lea ecx, [ebp - 0xf0]
call fcn.00402190
mov byte [ebp - 4], 0x1a
push 0x455834
lea ecx, [ebp - 0xf4]
call fcn.00402190
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0xf8]
call fcn.00402190
mov byte [ebp - 4], 0x1c
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x100]
call fcn.00402190
mov byte [ebp - 4], 0x1d
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x104]
call fcn.00402190
mov byte [ebp - 4], 0x1e
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0xdc]
push ecx
movzx edx, byte [ebp + 0x20]
push edx
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0xe4]
push ecx
lea edx, [ebp - 0xe8]
push edx
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0xf0]
push ecx
lea edx, [ebp - 0xf4]
push edx
lea eax, [ebp - 0xf8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xfc]
push edx
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 0x1f
mov ecx, dword [ebp - 0x13c]
push ecx
lea edx, [ebp - 0x100]
push edx
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x144], eax
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp - 0x144]
push ecx
push 0
mov edx, dword [ebp + 0x1c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040c020
add esp, 0x40
mov dword [ebp + 0x1c], eax
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x108]
call fcn.004021c0
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0xfc]
call fcn.004021c0
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x104]
call fcn.004021c0
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x100]
call fcn.004021c0
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0xf8]
call fcn.004021c0
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0xf4]
call fcn.004021c0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0xf0]
call fcn.004021c0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xec]
call fcn.004021c0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0xe8]
call fcn.004021c0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xe4]
call fcn.004021c0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xe0]
call fcn.004021c0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xdc]
call fcn.004021c0
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x10c]
call fcn.00402190
mov byte [ebp - 4], 0x21
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x110]
call fcn.00402190
mov byte [ebp - 4], 0x22
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x114]
call fcn.00402190
mov byte [ebp - 4], 0x23
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
movzx edx, byte [ebp + 0x20]
push edx
lea eax, [ebp - 0x28]
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 - 0x110]
push edx
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x118]
push edx
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x14c], eax
mov byte [ebp - 4], 0x24
mov ecx, dword [ebp - 0x14c]
push ecx
lea edx, [ebp - 0x28]
push edx
push 1
mov eax, dword [ebp + 0x1c]
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 - 0x60], eax
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x118]
call fcn.004021c0
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x114]
call fcn.004021c0
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x110]
call fcn.004021c0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x10c]
call fcn.004021c0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xa0]
call fcn.00401ae0
jmp 0x40d9ed
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x80]
call fcn.004037c0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x68]
call fcn.004021c0
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x11c], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.004021c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.004021c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004021c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004021c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004021c0
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret