Function at 0x413893
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push esi
mov dword [ebp - 0x74], 2
mov dword [ebp - 4], 0xc9
mov dword [ebp - 0x14], 0x45
mov dword [ebp - 0x10], 0x3c
mov eax, dword [0x41c12c]
mov dword [ebp - 8], eax
jmp 0x4138cc
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x64]
jae 0x413da0
mov eax, dword [0x41c0c8]
push eax
call fcn.0040cca3
add esp, 4
mov esi, eax
mov ecx, dword [0x41c128]
push ecx
call fcn.0040cca3
add esp, 4
cmp esi, eax
jae 0x413904
mov dword [ebp - 0x1c], 1
jmp 0x41390b
mov dword [ebp - 0x1c], 0
mov edx, dword [0x41c124]
and edx, dword [0x41c0d0]
mov eax, dword [ebp + 0x10]
xor eax, dword [ebp - 0x14]
cmp edx, eax
je 0x41392a
mov dword [ebp - 0x20], 1
jmp 0x413931
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x20]
jbe 0x413942
mov dword [ebp - 0x24], 1
jmp 0x413949
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0
je 0x413997
push fcn.0040b613
mov edx, dword [0x41c0c4]
push edx
call fcn.0040b613
add esp, 8
test eax, eax
jne 0x413981
mov eax, dword [0x41c0c0]
xor edx, edx
div dword [0x41c0cc]
test eax, eax
jne 0x413981
mov dword [ebp - 0x28], 0
jmp 0x413988
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x28], 0
je 0x413997
mov dword [ebp - 0x2c], 1
jmp 0x41399e
mov dword [ebp - 0x2c], 0
mov eax, dword [0x41c128]
mov dword [0x41c120], eax
mov ecx, dword [0x41c120]
mov dword [0x41c0d4], ecx
mov edx, dword [ebp - 0x7c]
sub edx, dword [ebp - 0x4c]
mov dword [0x41c0cc], edx
mov eax, dword [0x41c0d4]
cmp eax, dword [0x41c0cc]
jae 0x4139d6
mov dword [ebp - 0x30], 1
jmp 0x4139dd
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x30]
jbe 0x413a0a
mov dword [ebp - 0x80], 0xa4
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [0x41c0c4]
push eax
mov ecx, dword [0x41c0d8]
push ecx
call dword [sym.imp.GDI32.dll_PolylineTo]
mov dword [0x41c0d4], eax
jmp 0x413a20
mov edx, dword [0x41c0c0]
mov dword [0x41c110], edx
mov eax, dword [0x41c110]
mov dword [0x41c0cc], eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [0x41c118]
push edx
call fcn.0040d5a3
add esp, 8
mov esi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x41c0d8]
push ecx
call fcn.0040d5a3
add esp, 8
cmp esi, eax
je 0x413a55
mov dword [ebp - 0x34], 1
jmp 0x413a5c
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x14]
sub edx, dword [str.p4vH_]
mov dword [ebp - 0xc], edx
mov eax, dword [0x41c128]
push eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
cmp dword [ebp - 0xc], eax
je 0x413a82
mov dword [ebp - 0x38], 1
jmp 0x413a89
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x38]
jbe 0x413a9a
mov dword [ebp - 0x3c], 1
jmp 0x413aa1
mov dword [ebp - 0x3c], 0
mov esi, dword [ebp - 0x60]
xor esi, dword [0x41c124]
mov edx, dword [str.p4vH_]
push edx
mov eax, dword [0x41c128]
push eax
call fcn.0040d5a3
add esp, 8
cmp esi, eax
jbe 0x413acc
mov dword [ebp - 0x40], 1
jmp 0x413ad3
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x40]
jne 0x413b13
mov edx, dword [0x41c124]
push edx
mov eax, dword [0x41c0c4]
push eax
mov ecx, dword [0x41c124]
push ecx
mov edx, dword [0x41c128]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [0x41c0d8]
push edx
call dword [sym.imp.GDI32.dll_SetDIBits]
mov dword [ebp - 0x84], eax
jmp 0x413b45
mov eax, dword [0x41c11c]
mov dword [0x41c12c], eax
mov ecx, dword [0x41c12c]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x41c120]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp + 8], eax
mov eax, dword [0x41c130]
imul eax, dword [0x41c118]
mov dword [ebp - 0xc], eax
mov ecx, dword [0x41c0d8]
push ecx
mov edx, dword [0x41c0c8]
push edx
call fcn.0040d5a3
add esp, 8
mov esi, eax
mov eax, dword [0x41c0d8]
push eax
mov ecx, dword [0x41c0bc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, eax
jbe 0x413b7d
mov dword [ebp - 0x44], 1
jmp 0x413b84
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 0
je 0x413bc9
push fcn.0040d5a3
mov edx, dword [ebp - 0x60]
push edx
call fcn.0040b613
add esp, 8
test eax, eax
je 0x413bb3
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
je 0x413bb3
mov dword [ebp - 0x48], 1
jmp 0x413bba
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 0
je 0x413bc9
mov dword [ebp - 0x50], 1
jmp 0x413bd0
mov dword [ebp - 0x50], 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040d5a3
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
cmp esi, eax
jbe 0x413bf9
mov dword [ebp - 0x54], 1
jmp 0x413c00
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [ebp - 0x54]
jne 0x413c4f
mov dword [ebp - 0x88], 0xae
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x41c0bc]
push eax
call fcn.0040d5a3
add esp, 8
push fcn.0040b613
mov ecx, dword [str.p4vH_]
push ecx
call fcn.0040b613
add esp, 8
mov edx, dword [0x41c11c]
xor edx, dword [0x41c0d8]
mov dword [0x41c0c0], edx
jmp 0x413b45
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x41c0d0]
push ecx
call fcn.0040d5a3
add esp, 8
mov esi, eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
cmp esi, eax
je 0x413c7b
mov dword [ebp - 0x58], 1
jmp 0x413c82
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0040d5a3
add esp, 8
mov esi, eax
mov edx, dword [0x41c120]
push edx
call fcn.0040cca3
add esp, 4
cmp esi, eax
je 0x413cb0
mov dword [ebp - 0x5c], 1
jmp 0x413cb7
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x5c]
jae 0x413cef
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [0x41c0d8]
push edx
mov eax, dword [0x41c110]
push eax
mov ecx, dword [0x41c0c4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp + 8], eax
jmp 0x413d2c
mov dword [ebp - 0x78], 6
mov eax, dword [ebp - 0x78]
add eax, dword [0x41c0d8]
mov dword [0x41c124], eax
mov ecx, dword [ebp - 0x14]
mov dword [0x41c120], ecx
mov edx, dword [0x41c120]
mov dword [0x41c0d8], edx
mov eax, dword [0x41c128]
mov dword [0x41c124], eax
mov ecx, dword [0x41c124]
mov dword [ebp + 0xc], ecx
mov edx, dword [0x41c0d4]
mov dword [ebp - 0x68], edx
cmp dword [ebp - 0x68], 0x68
je 0x413d46
cmp dword [ebp - 0x68], 0xbf
je 0x413d65
jmp 0x413d76
mov dword [ebp - 0x8c], 0xbc
mov eax, dword [0x41c120]
mov dword [0x41c0d8], eax
mov ecx, dword [0x41c0d8]
mov dword [ebp + 0xc], ecx
jmp 0x413d9b
mov edx, dword [0x41c0d0]
or edx, dword [0x41c134]
mov dword [ebp - 0x7c], edx
jmp 0x413d9b
mov dword [ebp - 0x90], 0x4b
mov dword [ebp - 0x94], 0xbe
push fcn.0040d5a3
mov eax, dword [ebp - 0x74]
push eax
call fcn.0040b613
add esp, 8
jmp 0x4138c3
mov ecx, dword [0x41c134]
xor ecx, dword [0x41c0bc]
mov dword [0x41c128], ecx
mov edx, dword [0x41c0d4]
mov dword [ebp - 0x6c], edx
cmp dword [ebp - 0x6c], 0x6a
je 0x413dcc
cmp dword [ebp - 0x6c], 0xe4
je 0x413dfd
jmp 0x413e22
mov dword [ebp - 0x98], 0x90
mov dword [ebp - 0x9c], 0x53
mov dword [ebp - 0xa0], 0x69
mov eax, dword [0x41c0cc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x41c130], eax
jmp 0x413e3c
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [0x41c0cc]
mov dword [0x41c110], eax
mov ecx, dword [0x41c0c0]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040d5a3
add esp, 8
jmp 0x413e3c
mov dword [ebp - 0xa4], 0x6a
mov eax, dword [0x41c0cc]
xor eax, dword [0x41c118]
mov dword [0x41c0c4], eax
mov ecx, dword [0x41c0d0]
mov dword [ebp - 0x18], ecx
jmp 0x413e50
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [0x41c0d8]
jae 0x413f17
mov ecx, dword [0x41c120]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040d5a3
add esp, 8
mov eax, dword [0x41c0d8]
push eax
call fcn.0040cca3
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x70], ecx
cmp dword [ebp - 0x70], 0x4a
je 0x413e97
cmp dword [ebp - 0x70], 0xe1
je 0x413ebc
jmp 0x413edb
mov dword [ebp - 0xa8], 0x30
mov dword [ebp - 0xac], 0x3e
mov edx, dword [ebp + 8]
and edx, dword [0x41c118]
mov dword [0x41c128], edx
jmp 0x413ef5
mov dword [ebp - 0xb0], 0x40
push fcn.0040d5a3
mov eax, dword [0x41c118]
push eax
call fcn.0040b613
add esp, 8
jmp 0x413ef5
mov dword [ebp - 0xb4], 0xdf
mov ecx, dword [0x41c0c8]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp + 0xc], eax
mov edx, dword [0x41c0d0]
push edx
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [0x41c130]
push ecx
call dword [sym.imp.GDI32.dll_PolylineTo]
mov dword [0x41c0d0], eax
jmp 0x413e47
push fcn.0040b613
mov edx, dword [0x41c0c4]
push edx
call fcn.0040b613
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret