Function at 0x405c50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a7260
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4ed3dc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x24], fcn.0046ef1b
mov dword [esp + 0x28], fcn.0046ec38
mov dword [esp + 0x2c], fcn.0046f0cc
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], ebx
or edi, 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esi + 0x1354c], edi
mov dword [esp + 0x14], ebx
call fcn.0049c860
push str.UserManager
mov byte [esp + 0x44], 1
call fcn.00403b00
add esp, 4
mov ecx, eax
call fcn.004670e0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
push str.UserManager
call fcn.00403b00
add esp, 4
mov ecx, eax
call fcn.00469690
test al, al
jne 0x405d11
lea ecx, [esp + 0x1c]
call fcn.0049da00
lea ecx, [esp + 0x1c]
call fcn.0049cbe0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], bl
call fcn.0049c800
cmp dword [esp + 0x14], ebx
jne 0x405d46
mov dword [esp + 0x40], edi
lea ecx, [esp + 0x24]
call fcn.004010d0
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x1378c]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ecx
call edi
mov edx, dword [esi + 0x13788]
cmp eax, edx
je 0x405d85
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], 0xffffffff
call fcn.004010d0
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
push eax
call fcn.00405b90
mov ecx, dword [esi + 0x1378c]
push ecx
call edi
mov edx, dword [esi + 0x13788]
cmp eax, edx
jne 0x405d5f
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov dword [esi + 0x1354c], ecx
cmp dword [eax + 0x68], 1
mov eax, ecx
sete dl
push eax
mov byte [esi + 0x13550], dl
call fcn.0040ae50
mov edx, dword [esi + 0x24]
add esp, 4
xor ecx, ecx
cmp al, bl
setne cl
push ecx
push 0x3f7
push edx
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov eax, dword [esi + 0x1378c]
push eax
call edi
mov ecx, dword [esi + 0x13788]
cmp eax, ecx
jne 0x405d5f
mov edx, dword [esp + 0x14]
lea eax, [esi + 0x13552]
mov word [eax], bx
mov ecx, dword [edx + 0x74]
cmp ecx, 0x202
jae 0x405e38
cmp ecx, ebx
jle 0x405e38
mov edx, dword [edx + 0x70]
push 0x202
push edx
push 0x202
push eax
call fcn.0046f5f7
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x74]
add esp, 0x10
shr ecx, 1
mov word [esi + ecx*2 + 0x13552], bx
call fcn.00405ee0
test al, al
lea ecx, [esp + 0x24]
jne 0x405e67
mov dword [esp + 0x40], 0xffffffff
call fcn.004010d0
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
mov edx, esi
call fcn.004048c0
call fcn.00405ee0
test al, al
je 0x405d5f
mov ecx, dword [esp + 0x14]
mov edi, esi
call fcn.00404980
call fcn.00405ee0
test al, al
je 0x405d5f
mov ecx, dword [esp + 0x14]
push esi
call fcn.00404bb0
call fcn.00405ee0
test al, al
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x24]
je 0x405d2c
call fcn.004010d0
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret