Function at 0x41ed30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b78db
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x4e54c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0xf4], eax
mov byte [ebp - 0x118], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0xe0], edx
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0xc8], edi
mov byte [ebp - 0x120], al
mov dword [ebp - 4], 0xffffffff
test al, 4
je 0x41edf6
xor edx, dword [ebx + 0x108]
xor esi, dword [ebx + 0x10c]
mov dword [ebp - 0xe0], edx
mov dword [ebp - 0xf8], esi
test byte [ecx], 1
je 0x41f6af
mov eax, dword [ebp + 0x20]
xorps xmm0, xmm0
movlpd qword [ebp - 0xec], xmm0
push 0
mov dword [ebp - 0x134], ebx
mov ecx, dword [eax]
sub ecx, dword [ebx + 0x118]
mov eax, dword [eax + 4]
sbb eax, dword [ebx + 0x11c]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x13c], ecx
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x148], eax
call fcn.00440240
mov dword [ebp - 0x128], 0
mov dword [ebp - 4], 3
mov dword [ebp - 0xd0], 0
call fcn.0040fff0
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call esi
test eax, eax
je 0x41eee0
push dword [ebx + 0x170]
call esi
mov esi, eax
mov dword [ebp - 0xd0], esi
test esi, esi
jne 0x41eeda
push 0x20
call fcn.00490738
add esp, 4
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x41eec1
push ebx
mov ecx, eax
call fcn.0041df00
mov esi, eax
mov dword [ebp - 0xd0], eax
jmp 0x41eec9
xor esi, esi
mov dword [ebp - 0xd0], esi
mov edx, esi
mov byte [ebp - 4], 3
lea ecx, [ebx + 0x170]
call fcn.0040e280
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
jne 0x41f087
call fcn.00418fe0
push edi
mov ecx, eax
call fcn.00418b10
mov edi, eax
mov dword [ebp - 0x140], edi
call fcn.00420ec0
push dword [eax]
call esi
cmp edi, eax
je 0x41f087
test edi, edi
je 0x41f087
cmp byte [edi], 0
je 0x41f087
call fcn.00420ec0
mov edx, edi
mov ecx, eax
call fcn.0040e280
push ebx
mov dword [ebp - 0x158], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 5
push ecx
lea ecx, [ebp - 0xd4]
push ecx
lea ecx, [ebx + 0xa4]
call fcn.0040c380
mov esi, dword [ebp - 0xd4]
lea ecx, [ebx + 0xa4]
cmp esi, dword [ecx]
jne 0x41ef97
push edi
push ecx
lea eax, [ebp - 0xc8]
push eax
call fcn.0041ffe0
add esp, 4
mov ecx, eax
call fcn.00402170
mov byte [ebp - 4], 3
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call edi
jmp 0x41f08d
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
push str.___
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 6
call fcn.004117d0
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x154]
mov dword [ebp - 0xdc], eax
call fcn.004098d0
lea eax, [ebp - 0x104]
push eax
lea edx, [ebp - 0x16c]
lea ecx, [ebp - 0x154]
call fcn.00413590
mov edx, dword [ebp - 0x100]
lea eax, [ebp - 0x140]
mov ecx, dword [ebp - 0x104]
add esp, 4
mov byte [ebp - 0xd8], 0
push dword [ebp - 0xd8]
push eax
call fcn.004226f0
add esp, 8
cmp eax, dword [ebp - 0x100]
setne al
test al, al
jne 0x41f047
mov ecx, dword [ebp - 0xdc]
push 0x2c
call fcn.00409620
mov ecx, dword [ebp - 0xdc]
push edi
call fcn.00405d40
mov eax, dword [ebp - 0x104]
test eax, eax
je 0x41f078
push eax
call fcn.0048fa72
add esp, 4
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
mov byte [ebp - 4], 3
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call edi
jmp 0x41f08d
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx + 0x24], 0
jne 0x41f5d4
push dword [ebp - 0x120]
push ecx
push dword [ebp - 0x114]
lea ecx, [ebp - 0xc4]
push dword [ebp - 0x10c]
push dword [ebp - 0x11c]
push dword [ebp - 0x124]
push dword [ebp - 0xf8]
push dword [ebp - 0xe0]
push dword [ebp - 0xf0]
push dword [ebp - 0x110]
push dword [ebp - 0x118]
push dword [ebp - 0xe8]
push dword [ebp - 0xec]
push dword [ebp - 0x138]
push dword [ebp - 0x13c]
push dword [ebp - 0xc8]
call fcn.0041d3c0
mov eax, dword [ebp - 0xd0]
mov byte [ebp - 4], 7
test eax, eax
je 0x41f128
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [ebp - 0xc4]
push ecx
mov ecx, eax
call fcn.0041e300
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x41f175
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
mov dword [ebp - 0x160], ebx
call esi
mov byte [ebp - 4], 8
lea edx, [ebp - 0xc4]
mov ecx, dword [ebx + 0x30]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx + 0x24], 0
jne 0x41f172
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x41f172
push 1
lea ecx, [ebp - 0x134]
mov dword [ebx + 0x24], 1
call fcn.0041e6a0
push ebx
call edi
mov eax, dword [ebx + 0x13c]
test al, 8
je 0x41f58d
push ebx
mov dword [ebp - 0x15c], ebx
call esi
cmp byte [ebp - 0xf4], 0x45
xorps xmm0, xmm0
mov byte [ebp - 4], 9
movlpd qword [ebp - 0xec], xmm0
jne 0x41f1f6
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebx + 0xc4]
call fcn.00420150
mov ecx, eax
call fcn.00420650
mov ecx, dword [ebp + 0x20]
mov edi, dword [ecx]
sub edi, dword [eax]
mov dword [ebp - 0xd4], edi
mov edi, dword [ecx + 4]
lea ecx, [ebx + 0xc4]
sbb edi, dword [eax + 4]
lea eax, [ebp - 0xc8]
push eax
mov dword [ebp - 0xd8], edi
call fcn.00420150
dec dword [eax + 0x10]
jne 0x41f20e
mov dword [eax + 0xc], 0
jmp 0x41f20e
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebx + 0xa4]
call fcn.0041ffe0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.004024b0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
mov esi, dword [ebx + 0xe4]
push ecx
lea ecx, [ebp - 0xdc]
push ecx
lea ecx, [ebx + 0xe4]
call fcn.00420b40
cmp dword [ebp - 0xdc], esi
jne 0x41f292
mov edi, dword [ebx + 0xe8]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebx + 0xe4]
call fcn.00420290
mov esi, eax
mov eax, 0xaaaaaaab
mul edi
shr edx, 2
lea ecx, [edx + edx*2]
add ecx, ecx
sub edi, ecx
inc edi
mov dword [esi], edi
push 1
push 2
lea ecx, [ebp - 0x204]
call fcn.004078f0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
push eax
cmovae esi, dword [ebp - 0x2c]
lea ecx, [ebx + 0xe4]
call fcn.00420290
push dword [eax]
lea eax, [ebp - 0x74]
push esi
push str._s:_e_0_3_dm
push eax
call fcn.00412d30
push eax
lea eax, [ebp - 0x204]
mov byte [ebp - 4], 0xc
push eax
call fcn.00410d80
add esp, 0x18
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x60], 0x10
jb 0x41f2f9
push dword [ebp - 0x74]
call fcn.0048fa72
add esp, 4
mov esi, dword [ebx + 0xc4]
lea ecx, [ebp - 0xc8]
push ecx
lea ecx, [ebp - 0x108]
xor edi, edi
push ecx
lea ecx, [ebx + 0xc4]
call fcn.0040c380
cmp dword [ebp - 0x108], esi
je 0x41f337
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebx + 0xc4]
call fcn.00420150
mov edi, dword [eax + 0x10]
test edi, edi
je 0x41f357
jmp 0x41f340
lea eax, [ebp - 0x204]
push 0x4d27cc
push eax
call fcn.00407470
add esp, 8
dec edi
jne 0x41f340
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0041dd40
cmp byte [ebp - 0xf4], 0x45
jne 0x41f3ca
mov edx, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xd4]
call fcn.004b2e6f
divsd xmm0, qword [0x4d53d8]
sub esp, 8
lea eax, [ebp - 0x5c]
movsd qword [esp], xmm0
push str.___.3f_ms_
push eax
call fcn.00412d30
push eax
lea eax, [ebp - 0x204]
mov byte [ebp - 4], 0xd
push eax
call fcn.00410d80
add esp, 0x18
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x48], 0x10
jb 0x41f3ca
push dword [ebp - 0x5c]
call fcn.0048fa72
add esp, 4
cmp dword [0x4eb048], 2
jg 0x41f47f
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x204]
call fcn.00407a50
mov esi, eax
push 1
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2ac]
push 2
mov dword [ebp - 0xcc], 2
mov dword [ebp - 0x2b4], 2
call fcn.004078f0
mov dword [ebp - 4], 0xf
mov dword [ebp - 0x210], str.debug_trace_event_impl.cc
mov dword [ebp - 0x20c], 0x63a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
push 0x63a
push str.debug_trace_event_impl.cc
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 0x10
call fcn.004121c0
push str.e_0_m
push ecx
lea eax, [ebp - 0x2ac]
mov dword [ebp - 4], 0x11
push esi
push eax
mov dword [ebp - 0xcc], 6
call fcn.00410d80
add esp, 0xc
push eax
call fcn.00407470
add esp, 8
mov dword [ebp - 4], 0xe
mov eax, dword [ebp - 0xcc]
test al, 4
je 0x41f4aa
and eax, 0xfffffffb
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 0xcc], eax
call fcn.00411ec0
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 4], 0xb
test al, 2
je 0x41f4c6
cmp dword [ebp - 0x30], 0x10
jb 0x41f4c6
push dword [ebp - 0x44]
call fcn.0048fa72
add esp, 4
cmp byte [ebp - 0xf4], 0x42
jne 0x41f4eb
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebx + 0xc4]
call fcn.00420150
push dword [ebp + 0x20]
mov ecx, eax
call fcn.00421120
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x204]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x204]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x208], eax
lea ecx, [ebp - 0x200]
call fcn.00406150
mov eax, dword [ebp - 0x204]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x204]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x208], eax
lea eax, [ebp - 0x1b4]
push eax
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::ios_base.0
call fcn.0049047c
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x41f572
push dword [ebp - 0x2c]
call fcn.0048fa72
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call edi
mov byte [ebp - 4], 0x12
mov esi, dword [ebp - 0x84]
test esi, esi
je 0x41f5bb
add esi, 4
mov ecx, esi
call fcn.00440300
test al, al
je 0x41f5bb
test esi, esi
je 0x41f5bb
lea ecx, [esi - 4]
test ecx, ecx
je 0x41f5bb
mov eax, dword [ecx]
push 1
call dword [eax + 8]
push 0x405ca0
push 2
push 4
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 3
push eax
call fcn.00491065
mov esi, dword [ebp - 0x110]
cmp dword [ebx + 0x120], esi
jne 0x41f61c
push ebx
mov dword [ebp - 0x164], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0xf0]
lea ecx, [ebx + 0x124]
mov byte [ebp - 4], 0x13
call fcn.00404420
test al, al
je 0x41f615
push 2
lea ecx, [ebp - 0x134]
call fcn.0041e6a0
push ebx
mov byte [ebp - 4], 3
call edi
cmp dword [ebp - 0x128], 0
je 0x41f63b
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x130]
call dword [ebp - 0x12c]
add esp, 8
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x41f67e
push dword [ebp - 0x120]
push dword [ebp - 0x114]
push dword [ebp - 0x10c]
push dword [ebp - 0x11c]
push dword [ebp - 0x124]
push dword [ebp - 0xf8]
push dword [ebp - 0xe0]
push dword [ebp - 0xf0]
push esi
push dword [ebp - 0x118]
call eax
add esp, 0x28
mov eax, dword [ebp - 0xd0]
test eax, eax
je 0x41f69d
lea ecx, [ebp - 0x14c]
push ecx
lea ecx, [ebp - 0x13c]
push ecx
mov ecx, eax
call fcn.0041e3a0
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0xffffffff
call fcn.00410380
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004906bc
mov esp, ebp
pop ebp
ret 0x34