Function at 0x4013dc
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
call fcn.004010d6
call fcn.004011cf
mov dword [0x4024bc], eax
call fcn.00401350
call fcn.0040115a
cmp eax, 1
jne 0x401407
mov dword [0x4024bc], main
mov dword [0x402148], 0
mov dword [0x402490], 0x402440
cmp dword [0x402148], 0x10
jge 0x40145f
mov eax, dword [0x402148]
mov ecx, dword [eax*4 + 0x402080]
push ecx
call fcn.00401268
add esp, 4
mov edx, dword [0x402490]
mov dword [edx], eax
mov eax, dword [0x402490]
add eax, 4
mov dword [0x402490], eax
mov ecx, dword [0x402148]
add ecx, 1
mov dword [0x402148], ecx
jmp 0x40141b
call fcn.0040108f
cmp eax, 1
jne 0x401473
mov dword [0x4024bc], main
push 0
call dword [sym.imp.USER32.dll_LoadCursorFromFileA]
mov edx, dword [0x40248c]
mov dword [0x4024bc], edx
call fcn.00401142
cmp eax, 1
jne 0x40149b
mov dword [0x4024bc], main
call fcn.00401350
mov eax, dword [0x402148]
mov ecx, dword [eax*4 + 0x402080]
push ecx
call fcn.00401268
add esp, 4
mov edx, dword [0x402490]
mov dword [edx], eax
mov eax, dword [0x402490]
add eax, 4
mov dword [0x402490], eax
mov ecx, dword [0x402148]
add ecx, 1
mov dword [0x402148], ecx
mov edx, dword [0x402148]
mov eax, dword [edx*4 + 0x402080]
push eax
call fcn.00401268
add esp, 4
mov ecx, dword [0x402490]
mov dword [ecx], eax
call fcn.0040117c
cmp eax, 1
jne 0x40150b
mov dword [0x4024bc], main
mov edx, dword [ebp + 0x10]
mov dword [0x402430], edx
call fcn.0040105b
cmp eax, 1
jne 0x401528
mov dword [0x4024bc], main
call fcn.0040115a
mov eax, dword [0x4020d4]
push eax
push 0x4020d0
push 0
call dword [0x402464]
mov dword [0x402498], eax
mov ecx, dword [0x402498]
push ecx
push 0
call dword [0x402468]
mov dword [0x402488], eax
mov edx, dword [0x402488]
push edx
call dword [0x402444]
mov dword [0x40242c], eax
call fcn.0040117c
mov eax, dword [0x4020cc]
push eax
push 0x4020c8
push 0
call dword [0x402464]
mov dword [0x402498], eax
call fcn.0040115a
mov ecx, dword [0x402498]
push ecx
push 0
call dword [0x402468]
mov dword [0x402488], eax
call fcn.00401000
mov edx, dword [0x402488]
push edx
call dword [0x402444]
mov dword [0x40214c], eax
mov eax, dword [0x40214c]
sub eax, dword [0x40242c]
mov dword [0x4025c4], eax
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x4025c0], 0
push 0x4025c0
push 4
mov ecx, dword [0x4025c4]
push ecx
mov edx, dword [0x40242c]
push edx
call dword [0x402460]
call fcn.0040108f
call dword [0x402458]
mov dword [0x402494], eax
mov eax, dword [0x4025c4]
imul eax, eax, 3
push eax
push 8
mov ecx, dword [0x402494]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x402434], eax
push 0
call dword [sym.imp.GDI32.dll_GetMapMode]
jmp 0x40163b
mov edx, dword [0x40242c]
add edx, 1
mov dword [0x40242c], edx
mov eax, dword [0x40214c]
mov dword [0x402438], eax
mov ecx, dword [0x40242c]
cmp ecx, dword [0x40214c]
jne 0x401667
mov edx, dword [0x40242c]
sub edx, dword [0x4025c4]
mov dword [0x40242c], edx
jmp 0x4016bd
mov dword [0x402148], 0
cmp dword [0x402148], 0x168
jge 0x4016b8
mov eax, dword [0x40242c]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [0x402438]
xor eax, eax
mov al, byte [edx]
xor ecx, eax
mov edx, dword [0x40242c]
mov byte [edx], cl
mov eax, dword [0x402148]
add eax, 1
mov dword [0x402148], eax
mov ecx, dword [0x402438]
add ecx, 1
mov dword [0x402438], ecx
jmp 0x401671
jmp 0x40162c
push 0x4025c4
mov edx, dword [0x4025c4]
push edx
mov eax, dword [0x40242c]
push eax
mov ecx, dword [0x4025c4]
imul ecx, ecx, 3
push ecx
mov edx, dword [0x402434]
push edx
push 0x102
call dword [0x402484]
push 0x402440
mov eax, dword [0x402434]
push eax
call fcn.0040178c
add esp, 8
xor eax, eax
pop ebp
ret 0x10