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

Disassembly:
push 0xffffffffffffffff
push 0x45b387
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473354]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
push 1
call fcn.0042f396
mov dword [esp + 0x4c], eax
mov byte [eax], 0
push 1
mov dword [esp + 0xa8], 0
call fcn.0042f396
mov dword [esp + 0x20], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x48], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x5c], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x64], eax
add esp, 0x14
mov byte [eax], 0
cmp dword [0x474d7c], 0
mov ebx, dword [esp + 0xa8]
mov ebp, dword [esp + 0xb8]
mov byte [esp + 0xa0], 4
je 0x403432
cmp ebp, 0xffffffff
jne 0x403432
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x30], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x28], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x4c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x48], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x38], eax
push 0x46043c
call fcn.0042f484
add esp, 0x18
mov dword [esp + 0x30], eax
mov esi, dword [esp + 0xb4]
mov eax, esi
test esi, esi
jne 0x4032c6
mov eax, 0x46043c
push eax
call fcn.0042f484
add esp, 4
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0xb0]
mov eax, edi
test edi, edi
jne 0x4032e5
mov eax, 0x46043c
push eax
call fcn.0042f484
add esp, 4
mov dword [esp + 0x34], eax
mov eax, esi
test esi, esi
jne 0x4032fd
mov eax, 0x46043c
push eax
call fcn.0042f484
add esp, 4
mov dword [esp + 0x14], eax
mov eax, edi
test edi, edi
jne 0x403315
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x20], eax
mov ebp, dword [esp + 0xb0]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x60]
push ebp
push edx
mov byte [esp + 0xb4], 0xe
call fcn.00407af0
mov esi, eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x60]
push ebp
push edx
mov byte [esp + 0xc4], 0xf
call fcn.00407af0
movzx edx, byte [esp + 0xe0]
push 0xffffffffffffffff
push 0
push 0
lea ecx, [esp + 0x5c]
push ecx
push edx
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x78]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push ebx
mov byte [esp + 0x104], 0x10
call fcn.0040c0f0
mov edx, dword [esp + 0xa8]
add esp, 0x64
push edx
mov ebp, eax
call fcn.0042f4d9
mov eax, dword [esp + 0x58]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x20]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x44]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x48]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x40]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x64]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x48]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x58]
push ecx
mov byte [esp + 0xd0], 4
call fcn.0042f4d9
add esp, 0x30
jmp 0x403439
mov edi, dword [esp + 0xb0]
mov eax, dword [0x4746a8]
lea edx, [esp + 0x60]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0xb0]
or eax, 0x20019
push eax
push 0
push edi
push ecx
call fcn.00409f10
add esp, 0x14
test eax, eax
je 0x403499
mov edx, dword [esp + 0x50]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x50]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x24]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x58]
push eax
jmp 0x40394b
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x48]
push ecx
push 0
push 0
push edx
push eax
call fcn.00416ab0
add esp, 0x14
test eax, eax
jne 0x403913
lea ecx, [esp + 0x70]
call fcn.00402f60
mov edx, dword [esp + 0x48]
push 0x20
lea ecx, [esp + 0x74]
push ecx
push 0x2c
push edx
mov byte [esp + 0xb0], 0x11
call fcn.004110b0
mov edi, dword [esp + 0x90]
mov esi, dword [esp + 0x8c]
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 0x10
add eax, edx
mov dword [esp + 0x14], 0
je 0x4038ca
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x14], eax
jb 0x403530
call fcn.004305db
mov esi, dword [esp + 0x7c]
mov eax, dword [esp + 0x1c]
lea edi, [eax + esi]
push 0
lea ecx, [esp + 0x8c]
push edi
push ecx
call fcn.0040b350
mov eax, dword [eax]
mov esi, dword [esp + 0x24]
push eax
call fcn.0042f484
push esi
mov dword [esp + 0x2c], eax
call fcn.0042f4d9
mov edx, dword [esp + 0x9c]
push edx
call fcn.0042f4d9
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x58]
push ecx
push edx
push ebx
call fcn.0040b950
mov dword [esp + 0xb8], eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x48]
push edx
push edi
push ebx
call fcn.0040bd70
add esp, 0x3c
test al, al
je 0x403895
cmp ebp, 0xffffffff
jne 0x403790
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x68], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x60], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x40], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x38], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x44], eax
push 0x46043c
call fcn.0042f484
add esp, 0x18
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0xb4]
mov eax, esi
test esi, esi
jne 0x403619
mov eax, 0x46043c
push eax
call fcn.0042f484
add esp, 4
mov dword [esp + 0x38], eax
mov ebp, dword [esp + 0xb0]
mov eax, ebp
test ebp, ebp
jne 0x403638
mov eax, 0x46043c
push eax
call fcn.0042f484
add esp, 4
mov dword [esp + 0x40], eax
mov eax, esi
test esi, esi
jne 0x403650
mov eax, 0x46043c
push eax
call fcn.0042f484
add esp, 4
mov dword [esp + 0x20], eax
mov eax, ebp
test ebp, ebp
jne 0x403668
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x30], eax
mov ebp, dword [esp + 0xb0]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0xa0]
push ebp
push edx
mov byte [esp + 0xb4], 0x1b
call fcn.00407af0
mov esi, eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0xa8]
push ebp
push edx
mov byte [esp + 0xc4], 0x1c
call fcn.00407af0
movzx edx, byte [esp + 0xe0]
push 0xffffffffffffffff
push 0
push 0
lea ecx, [esp + 0x94]
push ecx
push edx
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x6c]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push ebx
mov byte [esp + 0x104], 0x1d
call fcn.0040c0f0
mov edx, dword [esp + 0xf0]
add esp, 0x64
push edx
mov ebp, eax
call fcn.0042f4d9
mov eax, dword [esp + 0x98]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x2c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x50]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x3c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x4c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x58]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x80]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0042f4d9
add esp, 0x30
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x48], eax
push 0x46043c
call fcn.0042f484
add esp, 8
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xb4]
test eax, eax
jne 0x4037bf
mov eax, 0x46043c
push eax
call fcn.0042f484
add esp, 4
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xb0]
test eax, eax
jne 0x4037dc
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0xb0]
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x64]
push eax
push ecx
lea edx, [esp + 0x7c]
push edx
mov byte [esp + 0xb4], 0x21
call fcn.00407af0
movzx edx, byte [esp + 0xd0]
push 0xffffffffffffffff
push 0
push 0
lea ecx, [esp + 0x64]
push ecx
push edx
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x70]
push edx
mov edx, dword [esp + 0xc8]
lea ecx, [esp + 0x50]
push ecx
push eax
push edi
push 5
push ebp
push edx
push ebx
mov byte [esp + 0xf4], 0x22
call fcn.0040c0f0
mov eax, dword [esp + 0xc0]
add esp, 0x54
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x70]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x60]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x54]
push ecx
mov byte [esp + 0xb4], 0x11
call fcn.0042f4d9
add esp, 0x14
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x7c]
inc dword [esp + 0x14]
add dword [esp + 0x1c], 0x1c
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x403530
xor ebx, ebx
cmp esi, ebx
je 0x4038f1
mov edx, dword [esp + 0x6c]
push edx
lea eax, [esp + 0x7c]
push eax
push edi
push esi
call fcn.00403060
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.0042f2c2
add esp, 0x14
mov edx, dword [esp + 0x70]
push edx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
call fcn.0042f2c2
add esp, 4
mov eax, dword [esp + 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x50]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x44]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x58]
push edx
call fcn.0042f4d9
mov eax, ebp
add esp, 0x14
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret