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

Disassembly:
push 0xffffffffffffffff
push 0x45b1a8
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473354]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
xor esi, esi
push 1
mov dword [esp + 0x70], esi
call fcn.0042f396
mov dword [esp + 0x24], eax
mov byte [eax], 0
push 1
mov dword [esp + 0xb0], esi
call fcn.0042f396
mov dword [esp + 0x20], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x20], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x2c], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x44], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x70], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x7c], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x74], eax
add esp, 0x20
mov byte [eax], 0
mov edi, dword [esp + 0xb4]
mov ebp, dword [esp + 0xb0]
mov ebx, dword [esp + 0xbc]
mov byte [esp + 0xa8], 7
cmp dword [0x474d7c], esi
je 0x402618
cmp ebx, 0xffffffff
jne 0x402618
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x38], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x34], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x34], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x5c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x38], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x54], eax
push 0x46043c
call fcn.0042f484
add esp, 0x1c
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0xb8]
mov eax, esi
test esi, esi
jne 0x4024d6
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x54], eax
push 0x46043c
call fcn.0042f484
add esp, 8
mov dword [esp + 0x40], eax
mov eax, esi
test esi, esi
jne 0x4024fc
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x70]
push edi
push edx
mov byte [esp + 0xbc], 0x11
call fcn.00407af0
mov ebx, eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x78]
push edi
push edx
mov byte [esp + 0xcc], 0x12
call fcn.00407af0
movzx edx, byte [esp + 0xe4]
push 0xffffffffffffffff
push 0
push 0
lea ecx, [esp + 0x64]
push ecx
push edx
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x84]
push ecx
push ebx
push eax
push 0
push 0xffffffffffffffff
push 0
push ebp
mov byte [esp + 0x10c], 0x13
call fcn.0040c0f0
mov edx, dword [esp + 0xc0]
add esp, 0x64
push edx
mov ebx, eax
call fcn.0042f4d9
mov eax, dword [esp + 0x68]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x4c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x60]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x54]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x40]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x4c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x54]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x60]
push ecx
mov byte [esp + 0xd8], 7
call fcn.0042f4d9
add esp, 0x30
jmp 0x40261f
mov esi, dword [esp + 0xb8]
mov eax, dword [0x4746a8]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push esi
push edi
call fcn.00409f10
add esp, 0x14
test eax, eax
je 0x402696
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x64]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x60]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x3c]
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 + 0x30]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x3c]
push edx
jmp 0x402b4a
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x14]
push eax
push 0
push ecx
call fcn.00416b90
add esp, 0xc
test eax, eax
jne 0x402af4
mov eax, dword [0x4746a8]
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x68]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x48]
or eax, 0x20019
push eax
push 0
push esi
push ecx
call fcn.00409f10
add esp, 0x14
test eax, eax
jne 0x402ad0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call fcn.00416b30
add esp, 0xc
test eax, eax
jne 0x402ac5
lea edx, [esp + 0x20]
push edx
push eax
push eax
mov eax, dword [esp + 0x74]
push str.StubPath
push eax
call fcn.00416ab0
add esp, 0x14
test eax, eax
jne 0x402ac5
mov ecx, dword [esp + 0x20]
cmp byte [ecx], al
je 0x402ac5
mov esi, dword [esp + 0x18]
cmp byte [esi], al
jne 0x402750
push 0x46046c
call fcn.0042f484
push esi
mov dword [esp + 0x20], eax
call fcn.0042f4d9
add esp, 8
lea ecx, [esp + 0x84]
call fcn.00402320
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x84]
push edx
push eax
mov byte [esp + 0xb0], 0x14
call fcn.00411310
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x5c]
push ecx
call fcn.0042f484
push esi
mov dword [esp + 0x64], eax
call fcn.0042f4d9
push 0
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x88]
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 + 0x94]
push ecx
call fcn.0042f4d9
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x5c]
push eax
push ecx
push ebp
call fcn.0040b950
lea edx, [esp + 0x98]
push edx
mov dword [esp + 0xb0], eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x5c]
push edx
push ebp
call fcn.0040bd70
add esp, 0x4c
test al, al
je 0x402a94
cmp ebx, 0xffffffff
jne 0x4029d0
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 + 0x5c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x48], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x50], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x3c], eax
push 0x46043c
call fcn.0042f484
add esp, 0x1c
mov dword [esp + 0x4c], eax
mov esi, dword [esp + 0xb8]
mov eax, esi
test esi, esi
jne 0x40288f
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x2c], eax
push 0x46043c
call fcn.0042f484
add esp, 8
mov dword [esp + 0x2c], eax
mov eax, esi
test esi, esi
jne 0x4028b5
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x38], eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x8c]
push edi
push edx
mov byte [esp + 0xbc], 0x1e
call fcn.00407af0
mov esi, eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x94]
push edi
push edx
mov byte [esp + 0xcc], 0x1f
call fcn.00407af0
movzx edx, byte [esp + 0xe4]
push 0xffffffffffffffff
push 0
push 0
lea ecx, [esp + 0x78]
push ecx
push edx
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x6c]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push ebp
mov byte [esp + 0x10c], 0x20
call fcn.0040c0f0
mov edx, dword [esp + 0xdc]
add esp, 0x64
push edx
mov ebx, eax
call fcn.0042f4d9
mov eax, dword [esp + 0x84]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x38]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x38]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x3c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x58]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x74]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x68]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0042f4d9
add esp, 0x30
push 0x46043c
call fcn.0042f484
add esp, 4
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xb8]
test eax, eax
jne 0x4029f1
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x68], eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x88]
push edi
push ecx
mov byte [esp + 0xbc], 0x22
call fcn.00407af0
movzx ecx, byte [esp + 0xd4]
push 0xffffffffffffffff
push 0
push 0
lea edx, [esp + 0x7c]
push edx
push ecx
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0xac]
lea edx, [esp + 0x54]
push edx
push eax
lea eax, [esp + 0x58]
push eax
push 3
push ebx
push ecx
push ebp
mov byte [esp + 0xfc], 0x23
call fcn.0040c0f0
mov edx, dword [esp + 0xd0]
add esp, 0x54
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x68]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0042f4d9
add esp, 0xc
lea ecx, [esp + 0x88]
mov byte [esp + 0xa8], 7
call fcn.00402070
mov edx, dword [esp + 0x88]
push edx
call fcn.0042f2c2
mov eax, dword [esp + 0x88]
push eax
call fcn.0042f4d9
add esp, 8
mov ecx, dword [esp + 0x68]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x6c]
inc eax
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x4c]
push eax
call fcn.00416b90
add esp, 0xc
test eax, eax
je 0x4026b2
mov ecx, dword [esp + 0x44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x54]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x64]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x3c]
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 + 0x30]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x3c]
push eax
call fcn.0042f4d9
mov eax, ebx
add esp, 0x20
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret