Function at 0x420d20
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45e5cc
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473354]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
push 1
call fcn.0042f396
xor ebx, ebx
mov dword [esp + 0x30], eax
mov byte [eax], bl
push 1
mov dword [esp + 0xcc], ebx
call fcn.0042f396
mov dword [esp + 0x38], eax
mov byte [eax], bl
push 1
call fcn.0042f396
mov dword [esp + 0x60], eax
mov byte [eax], bl
push 1
call fcn.0042f396
mov dword [esp + 0x54], eax
mov byte [eax], bl
push 1
call fcn.0042f396
mov dword [esp + 0x90], eax
add esp, 0x14
mov byte [eax], bl
mov byte [esp + 0xc4], 4
cmp dword [0x474d7c], ebx
je 0x420f84
cmp dword [esp + 0xd8], 0xffffffff
jne 0x420f84
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x44], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x44], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x44], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x58], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x2c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x34], eax
push 0x46043c
call fcn.0042f484
add esp, 0x1c
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0xd4]
mov eax, edi
cmp edi, ebx
jne 0x420e36
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x28], eax
push 0x46043c
call fcn.0042f484
add esp, 8
mov dword [esp + 0x28], eax
mov eax, edi
cmp edi, ebx
jne 0x420e5c
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x38], eax
mov ebp, dword [esp + 0xd4]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x5c]
push ebp
push edx
mov byte [esp + 0xd8], 0xe
call fcn.00407af0
mov esi, eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x74]
push ebp
push edx
mov byte [esp + 0xe8], 0xf
call fcn.00407af0
movzx edx, byte [esp + 0x100]
push 0xffffffffffffffff
push ebx
push ebx
lea ecx, [esp + 0x70]
push ecx
push edx
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x114]
lea ecx, [esp + 0x64]
push ecx
push esi
push eax
push ebx
push 0xffffffffffffffff
push ebx
push edx
mov byte [esp + 0x128], 0x10
call fcn.0040c0f0
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0xbc]
add esp, 0x64
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x3c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x34]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x34]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x34]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x68]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x5c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x6c]
push edx
mov byte [esp + 0xf4], 4
call fcn.0042f4d9
add esp, 0x30
jmp 0x420f8b
mov edi, dword [esp + 0xd4]
mov ecx, dword [0x4746a8]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea eax, [esp + 0x78]
push eax
push ecx
call ebp
mov edx, dword [esp + 0xd4]
or eax, 0x20019
push eax
push ebx
push edi
push edx
call fcn.00409f10
add esp, 0x14
test eax, eax
jne 0x421889
mov dword [esp + 0x34], ebx
push 1
call fcn.0042f396
mov dword [esp + 0x2c], eax
mov byte [eax], bl
push 1
call fcn.0042f396
mov dword [esp + 0x20], eax
mov byte [eax], bl
push 1
call fcn.0042f396
mov dword [esp + 0x28], eax
mov byte [eax], bl
push 1
call fcn.0042f396
mov dword [esp + 0x34], eax
mov byte [eax], bl
push 1
call fcn.0042f396
mov dword [esp + 0x70], eax
mov byte [eax], bl
push 4
mov byte [esp + 0xdc], 0x15
call fcn.0042ff00
add esp, 0x18
cmp eax, ebx
je 0x421022
lea ecx, [esp + 0x60]
mov dword [eax], ecx
jmp 0x421024
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
mov byte [esp + 0xd0], 0x17
call fcn.00416b90
add esp, 0xc
test eax, eax
jne 0x421801
lea edx, [esp + 0x30]
push edx
mov eax, str.CLSID_
lea ecx, [esp + 0xbc]
call fcn.00420ce0
mov eax, dword [eax]
mov esi, dword [esp + 0x1c]
push eax
call fcn.0042f484
push esi
mov dword [esp + 0x24], eax
call fcn.0042f4d9
mov eax, dword [esp + 0xc4]
push eax
call fcn.0042f4d9
mov edx, dword [0x4746a8]
mov esi, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
push edx
call ebp
or eax, 0x20019
push eax
push ebx
push esi
push SysReAllocString
call fcn.00409f10
add esp, 0x14
test eax, eax
jne 0x4210f8
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
push eax
call fcn.0042f484
push esi
mov dword [esp + 0x24], eax
call fcn.0042f4d9
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x30]
push ecx
push ebx
push ebx
push 0x46043c
push edx
call fcn.00416ab0
add esp, 0x1c
jmp 0x4211bb
mov ecx, dword [0x4746a8]
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x20]
push eax
push ecx
call ebp
mov edx, dword [esp + 0x7c]
or eax, 0x20019
push eax
push ebx
push esi
push edx
call fcn.00409f10
add esp, 0x14
test eax, eax
jne 0x4217b0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 0x46043c
push ecx
call fcn.00416ab0
add esp, 0x14
test eax, eax
je 0x4211a0
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x60]
call fcn.00402070
mov eax, dword [esp + 0x60]
push eax
call fcn.0042f2c2
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x2c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x28]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x3c]
push edx
call fcn.0042f4d9
add esp, 0x18
inc dword [esp + 0x34]
jmp 0x420fc3
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
push eax
call fcn.0042f484
push esi
mov dword [esp + 0x30], eax
call fcn.0042f4d9
add esp, 8
mov ecx, dword [esp + 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
lea edx, [esp + 0x1c]
push edx
mov eax, str.CLSID_
lea ecx, [esp + 0xa0]
call fcn.00420ce0
push eax
mov eax, 0x46155c
lea ecx, [esp + 0xbc]
call fcn.00420ca0
mov eax, dword [eax]
mov esi, dword [esp + 0x20]
push eax
call fcn.0042f484
push esi
mov dword [esp + 0x28], eax
call fcn.0042f4d9
mov eax, dword [esp + 0xc4]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0042f4d9
mov eax, dword [0x4746a8]
mov esi, dword [esp + 0x30]
add esp, 0x18
lea edx, [esp + 0x20]
push edx
push eax
call ebp
or eax, 0x20019
push eax
push ebx
push esi
push SysReAllocString
call fcn.00409f10
add esp, 0x14
test eax, eax
jne 0x4217b0
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push 0x46043c
push edx
call fcn.00416ab0
add esp, 0x14
test eax, eax
jne 0x4217a9
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x5c]
push eax
push ecx
call fcn.0040ef90
push ebx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0xb4]
push eax
call fcn.0040b350
mov eax, dword [eax]
mov esi, dword [esp + 0x38]
push eax
call fcn.0042f484
push esi
mov dword [esp + 0x40], eax
call fcn.0042f4d9
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x40]
add esp, 0x20
push edx
call edi
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0xd0]
lea ecx, [esp + 0x58]
push ecx
push edx
push eax
call fcn.0040b950
push str.CLSID_
mov ebp, eax
call fcn.0042f484
mov edi, eax
lea ecx, [esp + 0x30]
push ecx
lea eax, [esp + 0x64]
lea esi, [esp + 0xc4]
mov dword [esp + 0x64], edi
call fcn.00420c70
mov eax, dword [eax]
mov esi, dword [esp + 0x30]
push eax
call fcn.0042f484
push esi
mov dword [esp + 0x38], eax
call fcn.0042f4d9
mov edx, dword [esp + 0xcc]
push edx
call fcn.0042f4d9
push edi
call fcn.0042f4d9
lea eax, [esp + 0x44]
push eax
mov eax, str.HKCRCLSID_
lea ecx, [esp + 0x84]
call fcn.00420ce0
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x58]
push ecx
mov byte [esp + 0xf4], 0x18
call fcn.0042f484
push esi
mov dword [esp + 0x60], eax
call fcn.0042f4d9
mov eax, dword [0x4746a8]
mov esi, dword [esp + 0x4c]
add esp, 0x34
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push ebx
push esi
push SysReAllocString
call fcn.00409f10
add esp, 0x14
test eax, eax
jne 0x4213dc
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push 0x46043c
push edx
call fcn.00416ab0
add esp, 0x14
test eax, eax
jne 0x4213d1
mov eax, dword [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4213b8
sub eax, edx
je 0x4213d1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
call fcn.00401690
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0xd4]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
push eax
call fcn.0040bd70
add esp, 0x14
test al, al
je 0x421745
cmp dword [esp + 0xd8], 0xffffffff
jne 0x42160d
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x94], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x9c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0xa4], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x98], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x94], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x9c], eax
push 0x46043c
call fcn.0042f484
add esp, 0x1c
mov dword [esp + 0x48], eax
mov esi, dword [esp + 0xd4]
mov eax, esi
cmp esi, ebx
jne 0x42149f
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x3c], eax
push 0x46043c
call fcn.0042f484
add esp, 8
mov dword [esp + 0x3c], eax
mov eax, esi
cmp esi, ebx
jne 0x4214c5
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x44], eax
mov edi, dword [esp + 0xd4]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0xb4]
push edi
push eax
mov byte [esp + 0xd8], 0x22
call fcn.00407af0
mov esi, eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0xbc]
push edi
push eax
mov byte [esp + 0xe8], 0x23
call fcn.00407af0
movzx edx, byte [esp + 0x100]
push 0xffffffffffffffff
push ebx
push ebx
lea ecx, [esp + 0xc0]
push ecx
push edx
lea ecx, [esp + 0xcc]
push ecx
lea edx, [esp + 0xd4]
push edx
lea ecx, [esp + 0xc8]
push ecx
lea edx, [esp + 0xc4]
push edx
mov edx, dword [esp + 0x114]
lea ecx, [esp + 0xcc]
push ecx
push esi
push eax
push ebx
push 0xffffffffffffffff
push ebx
push edx
mov byte [esp + 0x128], 0x24
call fcn.0040c0f0
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x104]
add esp, 0x64
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0xac]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x48]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x48]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x5c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x9c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0xa8]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0xbc]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0xbc]
push edx
call fcn.0042f4d9
add esp, 0x30
mov edi, dword [esp + 0x28]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x421616
sub eax, edx
je 0x42163a
mov esi, dword [esp + 0x2c]
push edi
call fcn.0042f484
push esi
mov dword [esp + 0x34], eax
call fcn.0042f4d9
add esp, 8
jmp 0x421669
mov eax, dword [esp + 0x2c]
cmp byte [eax], 0x7b
jne 0x421669
mov eax, dword [esp + 0x44]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x421650
sub eax, edx
je 0x421669
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x30]
call fcn.00401690
push 0x46043c
call fcn.0042f484
add esp, 4
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xd4]
cmp eax, ebx
jne 0x42168a
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x90], eax
mov ecx, dword [esp + 0xd4]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x94]
push eax
push ecx
lea edx, [esp + 0xc0]
push edx
mov byte [esp + 0xd8], 0x26
call fcn.00407af0
movzx edx, byte [esp + 0xf0]
push 0xffffffffffffffff
push ebx
push ebx
lea ecx, [esp + 0x70]
push ecx
push edx
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x108]
push eax
mov eax, dword [esp + 0x118]
lea edx, [esp + 0x6c]
push edx
push 3
push eax
push ebp
push ecx
mov byte [esp + 0x118], 0x27
call fcn.0040c0f0
mov edx, dword [esp + 0x104]
add esp, 0x54
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x90]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0042f4d9
add esp, 0xc
mov edx, dword [esp + 0x58]
push edx
call fcn.0042f4d9
add esp, 4
lea ecx, [esp + 0x60]
call fcn.00402070
mov eax, dword [esp + 0x60]
push eax
call fcn.0042f2c2
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x2c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x28]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x3c]
push edx
call fcn.0042f4d9
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
add esp, 0x18
inc dword [esp + 0x34]
jmp 0x420fc3
mov eax, dword [esp + 0x20]
push eax
call edi
lea ecx, [esp + 0x60]
call fcn.00402070
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0042f2c2
mov edx, dword [esp + 0x60]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x2c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x28]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x3c]
push eax
call fcn.0042f4d9
add esp, 0x18
inc dword [esp + 0x34]
jmp 0x420fc3
mov esi, dword [esp + 0x6c]
cmp esi, ebx
je 0x421830
mov edi, dword [esp + 0x70]
cmp esi, edi
je 0x421827
mov ecx, dword [esi]
push ecx
call fcn.0042f4d9
add esi, 4
add esp, 4
cmp esi, edi
jne 0x421811
mov esi, dword [esp + 0x6c]
push esi
call fcn.0042f2c2
add esp, 4
mov edx, dword [esp + 0x60]
push edx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.0042f2c2
mov eax, dword [esp + 0x60]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x28]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x28]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x90]
add esp, 0x18
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x7c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x5c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x3c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0042f4d9
mov eax, dword [esp + 0xec]
add esp, 0x14
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret