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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d483
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x46d45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x1c]
call fcn.00402160
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402160
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402160
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00402160
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00402160
mov byte [ebp - 4], 4
cmp dword [0x46f680], 0
je 0x40eb60
cmp dword [ebp + 0x14], 0xffffffff
jne 0x40eb60
push 0
lea ecx, [ebp - 0x5c]
call fcn.00402190
mov byte [ebp - 4], 5
push 0
lea ecx, [ebp - 0x60]
call fcn.00402190
mov byte [ebp - 4], 6
push 0x4558fc
lea ecx, [ebp - 0x64]
call fcn.00402190
mov byte [ebp - 4], 7
push 0x455900
lea ecx, [ebp - 0x68]
call fcn.00402190
mov byte [ebp - 4], 8
push 0x455904
lea ecx, [ebp - 0x6c]
call fcn.00402190
mov byte [ebp - 4], 9
push 0
lea ecx, [ebp - 0x70]
call fcn.00402190
mov byte [ebp - 4], 0xa
push 0x455908
lea ecx, [ebp - 0x74]
call fcn.00402190
mov byte [ebp - 4], 0xb
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x78]
call fcn.00402190
mov byte [ebp - 4], 0xc
push 0x45590c
lea ecx, [ebp - 0x80]
call fcn.00402190
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x84]
call fcn.00402190
mov byte [ebp - 4], 0xe
push 0xffffffffffffffff
push 0
push 0
lea edx, [ebp - 0x5c]
push edx
movzx eax, byte [ebp + 0x18]
push eax
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x78]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x7c]
push eax
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0xe8], ecx
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0xe8]
push edx
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x88]
push eax
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0xf0], ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0xf0]
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], 0xf
lea ecx, [ebp - 0x88]
call fcn.004021c0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x7c]
call fcn.004021c0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x84]
call fcn.004021c0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x80]
call fcn.004021c0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x78]
call fcn.004021c0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x74]
call fcn.004021c0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x70]
call fcn.004021c0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x6c]
call fcn.004021c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
call fcn.004021c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x64]
call fcn.004021c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x60]
call fcn.004021c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
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 0x40f2c1
mov dword [ebp - 0x10], 0
jmp 0x40eba2
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x58]
call fcn.00402160
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x34]
call fcn.00402160
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x30]
call fcn.00402160
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x50]
call fcn.00401a80
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0041d570
add esp, 0xc
test eax, eax
je 0x40ec1f
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x50]
call fcn.00401ae0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x30]
call fcn.004021c0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x34]
call fcn.004021c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004021c0
jmp 0x40f2b7
push 0x455910
lea ecx, [ebp - 0x34]
push ecx
push 0x455930
lea edx, [ebp - 0x8c]
push edx
call fcn.004109f0
add esp, 0xc
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xf8], eax
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0xf8]
push ecx
lea edx, [ebp - 0x90]
push edx
call fcn.00410960
add esp, 0xc
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x100], eax
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x100]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00402240
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x90]
call fcn.004021c0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x8c]
call fcn.004021c0
lea edx, [ebp - 0x34]
push edx
push 0x455940
lea eax, [ebp - 0x94]
push eax
call fcn.004109f0
add esp, 0xc
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
mov dword [ebp - 0x108], ecx
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x108]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00402240
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x94]
call fcn.004021c0
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [0x46f464]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
lea ecx, [ebp - 0x58]
call fcn.00402270
push eax
push SysReAllocString
call fcn.004047c0
add esp, 0x14
test eax, eax
jne 0x40edf6
lea edx, [ebp - 0x58]
push edx
push 0
push 0
push 0x455958
mov eax, dword [ebp - 0x54]
push eax
call fcn.0041d480
add esp, 0x14
test eax, eax
jne 0x40edab
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00402270
push eax
call fcn.0040d610
add esp, 8
push 0
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x98]
push eax
call fcn.00408fc0
add esp, 0xc
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x110], ecx
mov byte [ebp - 4], 0x18
mov edx, dword [ebp - 0x110]
push edx
lea ecx, [ebp - 0x30]
call fcn.00402240
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x98]
call fcn.004021c0
jmp 0x40edea
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x50]
call fcn.00401ae0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x30]
call fcn.004021c0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x34]
call fcn.004021c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004021c0
jmp 0x40eb99
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ee2b
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x50]
call fcn.00401ae0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x30]
call fcn.004021c0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x34]
call fcn.004021c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004021c0
jmp 0x40eb99
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402270
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00409fb0
add esp, 0x10
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x34]
push edx
push 0x45595c
lea ecx, [ebp - 0x9c]
call fcn.00402190
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x118]
push ecx
lea edx, [ebp - 0xa0]
push edx
call fcn.004108d0
add esp, 0xc
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x120], eax
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00402240
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0xa0]
call fcn.004021c0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x9c]
call fcn.004021c0
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00402240
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [0x46f464]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
lea ecx, [ebp - 0x58]
call fcn.00402270
push eax
push SysReAllocString
call fcn.004047c0
add esp, 0x14
test eax, eax
jne 0x40ef4c
lea edx, [ebp - 0x58]
push edx
push 0
push 0
push 0x45596c
mov eax, dword [ebp - 0x54]
push eax
call fcn.0041d480
add esp, 0x14
test eax, eax
jne 0x40ef42
lea ecx, [ebp - 0x58]
call fcn.00416f60
test eax, eax
jbe 0x40ef42
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402240
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040b960
add esp, 0x14
movzx edx, al
test edx, edx
je 0x40f282
cmp dword [ebp + 0x14], 0xffffffff
jne 0x40f1b6
push 0
lea ecx, [ebp - 0xa4]
call fcn.00402190
mov byte [ebp - 4], 0x1b
push 0
lea ecx, [ebp - 0xa8]
call fcn.00402190
mov byte [ebp - 4], 0x1c
push 0x455970
lea ecx, [ebp - 0xac]
call fcn.00402190
mov byte [ebp - 4], 0x1d
push 0x455974
lea ecx, [ebp - 0xb0]
call fcn.00402190
mov byte [ebp - 4], 0x1e
push 0x455978
lea ecx, [ebp - 0xb4]
call fcn.00402190
mov byte [ebp - 4], 0x1f
push 0
lea ecx, [ebp - 0xb8]
call fcn.00402190
mov byte [ebp - 4], 0x20
push 0x45597c
lea ecx, [ebp - 0xbc]
call fcn.00402190
mov byte [ebp - 4], 0x21
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00402190
mov byte [ebp - 4], 0x22
push 0x455980
lea ecx, [ebp - 0xc8]
call fcn.00402190
mov byte [ebp - 4], 0x23
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0xcc]
call fcn.00402190
mov byte [ebp - 4], 0x24
push 0xffffffffffffffff
push 0
push 0
lea edx, [ebp - 0xa4]
push edx
movzx eax, byte [ebp + 0x18]
push eax
lea ecx, [ebp - 0xa8]
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
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc4]
push eax
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x128], ecx
mov byte [ebp - 4], 0x25
mov edx, dword [ebp - 0x128]
push edx
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xcc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xd0]
push eax
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x130], ecx
mov byte [ebp - 4], 0x26
mov edx, dword [ebp - 0x130]
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], 0x25
lea ecx, [ebp - 0xd0]
call fcn.004021c0
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0xc4]
call fcn.004021c0
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0xcc]
call fcn.004021c0
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0xc8]
call fcn.004021c0
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0xc0]
call fcn.004021c0
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0xbc]
call fcn.004021c0
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0xb8]
call fcn.004021c0
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0xb4]
call fcn.004021c0
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0xb0]
call fcn.004021c0
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0xac]
call fcn.004021c0
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0xa8]
call fcn.004021c0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xa4]
call fcn.004021c0
push 0
lea ecx, [ebp - 0xd4]
call fcn.00402190
mov byte [ebp - 4], 0x27
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0xd8]
call fcn.00402190
mov byte [ebp - 4], 0x28
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0xd4]
push eax
movzx ecx, byte [ebp + 0x18]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0xd8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xdc]
push ecx
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0x134], eax
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x138], edx
mov byte [ebp - 4], 0x29
mov eax, dword [ebp - 0x138]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 3
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c020
add esp, 0x40
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0xdc]
call fcn.004021c0
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0xd8]
call fcn.004021c0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xd4]
call fcn.004021c0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x50]
call fcn.00401ae0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x30]
call fcn.004021c0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x34]
call fcn.004021c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004021c0
jmp 0x40eb99
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004021c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004021c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004021c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004021c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004021c0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret