Function at 0x407be0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x45b588
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473354]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
mov ebx, dword [edi]
movsx eax, byte [ebx]
push eax
mov dword [esp + 0x18], ebx
call fcn.004318b8
add esp, 4
test eax, eax
je 0x407c37
movsx ecx, byte [ebx + 1]
inc ebx
push ecx
call fcn.004318b8
add esp, 4
test eax, eax
jne 0x407c21
mov dword [esp + 0x14], ebx
mov al, byte [ebx]
test al, al
je 0x407e68
mov cl, byte [esp + 0x34]
cmp al, cl
je 0x407e68
mov esi, dword [esp + 0x38]
cmp al, 0x22
jne 0x407c87
mov al, byte [ebx + 1]
inc ebx
mov ebp, ebx
test al, al
je 0x407c75
nop
cmp al, 0x22
je 0x407c75
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x407c60
mov eax, ebp
mov dword [edi], eax
jmp 0x407e18
cmp byte [ebp], 0
lea eax, [ebp + 1]
jne 0x407c80
mov eax, ebp
mov dword [edi], eax
jmp 0x407e18
mov ebp, ebx
lea esp, [esp]
mov al, byte [ebp]
test al, al
je 0x407cab
cmp al, cl
je 0x407cab
cmp al, 0x20
jne 0x407ca3
test cl, cl
je 0x407cab
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x407c97
cmp byte [esp + 0x3c], 0
je 0x407e12
mov al, byte [ebx]
cmp al, 0x25
je 0x407cca
cmp al, 0x5c
je 0x407cca
cmp byte [ebx + 1], 0x3a
jne 0x407e12
mov edi, dword [esi]
push ebx
call fcn.0042f484
push edi
mov dword [esi], eax
call fcn.0042f4d9
mov eax, dword [esi]
sub eax, ebx
mov byte [eax + ebp], 0
mov eax, dword [esi]
push eax
call fcn.0042f484
mov edi, eax
mov dword [esp + 0x28], edi
push edi
mov dword [esp + 0x38], 0
call fcn.00431191
mov edx, dword [0x4746a8]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0x100
jne 0x407d7a
push str._PROGRAMFILES_
push edi
call fcn.00430b10
add esp, 8
test eax, eax
je 0x407d7a
push str._PROGRAMFILES_
push edi
call fcn.00430b10
mov ecx, dword [esi]
mov edx, dword [str._ProgramW6432_]
sub eax, edi
mov dword [ecx + eax], edx
mov edx, dword [0x460618]
mov dword [ecx + eax + 4], edx
mov edx, dword [0x46061c]
mov dword [ecx + eax + 8], edx
mov dx, word [0x460620]
mov word [ecx + eax + 0xc], dx
mov edx, dword [esi]
lea ecx, [edx + eax + 0xe]
add esp, 8
sub edx, ecx
lea edx, [edx + eax + 0xe]
mov edi, edi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x407d70
mov eax, dword [esi]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00416cc0
mov eax, dword [eax]
mov ebx, dword [esi]
push eax
call fcn.0042f484
push ebx
mov dword [esi], eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0042f4d9
mov eax, dword [esi]
push eax
call fcn.00416f90
add esp, 0x18
cmp eax, 0xffffffff
je 0x407db7
test al, 0x10
je 0x407e05
movsx edx, byte [ebp]
push edx
call fcn.004318b8
add esp, 4
test eax, eax
je 0x407dda
movsx eax, byte [ebp + 1]
inc ebp
push eax
call fcn.004318b8
add esp, 4
test eax, eax
jne 0x407dc8
mov al, byte [ebp]
test al, al
je 0x407e49
cmp al, byte [esp + 0x34]
je 0x407e49
push edi
mov dword [esp + 0x2c], 0xffffffff
call fcn.0042f4d9
mov cl, byte [esp + 0x38]
mov ebx, dword [esp + 0x18]
add esp, 4
jmp 0x407c90
push edi
call fcn.0042f4d9
mov ebx, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword [ecx], ebp
mov edi, dword [esi]
push ebx
call fcn.0042f484
push edi
mov dword [esi], eax
call fcn.0042f4d9
mov edx, dword [esi]
add esp, 8
sub edx, ebx
mov byte [edx + ebp], 0
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push edi
call fcn.0042f4d9
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov dword [edi], ebx
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret