Function at 0x41ded0
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x5ceb30]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], edi
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [esp + 0x50], eax
mov byte [esp + 0x94], al
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x2c]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x58], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x88], eax
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
cmp byte [ecx], al
jne 0x41df67
mov ecx, eax
mov dword [ebx], edx
mov dword [ebx + 4], ecx
jmp 0x41e534
push dword [edi + 0x1cc]
lea esi, [edi + 0x1cc]
mov dword [esp + 0x88], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41df96
mov eax, dword [esp + 0x38]
mov dword [ebx], 0
mov dword [ebx + 4], eax
jmp 0x41e534
push esi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x41dfa8
call fcn.00418790
test byte [ebp + 0x3c], 4
je 0x41dfca
mov eax, dword [ebp + 0x18]
xor eax, dword [edi + 0x118]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x1c]
xor eax, dword [edi + 0x11c]
mov dword [esp + 0x40], eax
jmp 0x41dfd8
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
xorps xmm0, xmm0
push dword [edi + 0x1c8]
movlpd qword [esp + 0x74], xmm0
mov dword [esp + 0x30], 0
mov ecx, dword [eax]
sub ecx, dword [edi + 0x128]
mov eax, dword [eax + 4]
sbb eax, dword [edi + 0x12c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0xa0], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x41e0b1
call fcn.00415430
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41e0b1
push dword [edi + 0x1c4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov dword [esp + 0x2c], edx
test edx, edx
je 0x41e073
mov ecx, dword [edx + 0x20]
cmp ecx, dword [edi + 0x204]
je 0x41e08b
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax + 4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
push 0x28
call fcn.00526794
add esp, 4
test eax, eax
je 0x41e095
push edi
mov ecx, eax
call fcn.0041c6d0
jmp 0x41e097
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jmp 0x41e0b1
xor eax, eax
push eax
push dword [edi + 0x1c4]
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x41e0b1
call fcn.00418790
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x1c], eax
jne 0x41e249
call fcn.00419be0
push dword [esp + 0x1c]
mov ecx, eax
call fcn.00419940
mov dword [esp + 0x24], eax
call fcn.004205e0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x41e249
test ecx, ecx
je 0x41e249
cmp byte [ecx], 0
je 0x41e249
call fcn.004205e0
push dword [esp + 0x24]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x41e119
call fcn.00418790
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add edi, 0x18
push edi
call eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
add eax, 0xb0
lea ecx, [esp + 0x84]
push ecx
mov ecx, eax
mov dword [esp + 0x98], eax
call fcn.0040c450
mov ecx, dword [esp + 0x90]
mov esi, dword [esp + 0x80]
cmp esi, dword [ecx]
jne 0x41e180
push dword [esp + 0x24]
lea eax, [esp + 0x18]
push ecx
push eax
call fcn.0041fb60
add esp, 4
mov ecx, eax
call fcn.00418fb0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jmp 0x41e237
push 0x5c9f1c
lea ecx, [esp + 0xa4]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
call fcn.00410260
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0xac]
mov dword [esp + 0x18], eax
call fcn.00403d70
lea eax, [esp + 0x64]
push eax
lea edx, [esp + 0xa4]
lea ecx, [esp + 0xac]
call fcn.004107b0
mov esi, dword [esp + 0x6c]
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x68]
add esp, 4
mov byte [esp + 0x8c], 0
mov edx, esi
push dword [esp + 0x8c]
push eax
call fcn.00421ee0
add esp, 8
cmp eax, esi
jne 0x41e226
sub esi, dword [esp + 0x64]
test esi, 0xfffffff8
mov esi, dword [esp + 0x14]
je 0x41e21b
push 0x2c
mov ecx, esi
call fcn.0040ed20
push dword [esp + 0x24]
mov ecx, esi
call fcn.00403870
mov eax, dword [esp + 0x64]
test eax, eax
je 0x41e237
push eax
call fcn.0052199f
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x228], 0xf
mov dword [esp + 0x224], 0
mov byte [esp + 0x214], 0
test byte [eax], 3
je 0x41e3c7
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x13], 0
test eax, eax
je 0x41e295
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.0041c930
mov ecx, eax
mov dword [esp + 0x28], ecx
jmp 0x41e2b5
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
lea eax, [esp + 0x38]
mov byte [esp + 0x17], 1
push eax
mov ecx, edi
call fcn.0041dc20
mov ecx, eax
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x41e309
push dword [esp + 0x74]
push dword [esp + 0x74]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [ebp + 0x3c]
push dword [esp + 0x9c]
push dword [esp + 0x70]
push dword [esp + 0x78]
push dword [esp + 0x80]
push dword [ebp + 0x28]
push dword [esp + 0x68]
push dword [esp + 0x70]
push dword [esp + 0x6c]
push dword [esp + 0x64]
push dword [esp + 0xcc]
push dword [esp + 0x58]
call fcn.0041bbc0
mov ecx, dword [esp + 0x28]
mov eax, dword [edi + 0x154]
test al, 8
je 0x41e357
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
cmp cl, 0x58
push eax
movzx eax, cl
mov ecx, 0x42
cmove eax, ecx
mov ecx, edi
movzx eax, al
push eax
lea eax, [esp + 0x238]
push eax
call fcn.0041e550
push eax
lea ecx, [esp + 0x218]
call fcn.00410220
lea ecx, [esp + 0x22c]
call fcn.00403840
cmp byte [esp + 0x13], 0
je 0x41e365
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x224], 0
je 0x41e3c7
cmp dword [0x5d8510], 2
jg 0x41e3ac
mov eax, 2
lea ecx, [esp + 0xb0]
push eax
push 0x7cc
push str.b:_browsers_src_basedebug_trace_event_impl.cc
mov dword [esp + 0x2c], eax
call fcn.00411a70
lea ecx, [esp + 0x214]
add eax, 8
push ecx
push eax
call fcn.00405b90
add esp, 8
mov eax, dword [esp + 0x20]
test al, 2
je 0x41e3cb
and eax, 0xfffffffd
lea ecx, [esp + 0xb0]
mov dword [esp + 0x20], eax
call fcn.00411ac0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
cmp dword [edi + 0x138], ecx
jne 0x41e46f
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
test al, 0x10
je 0x41e3fb
lea ecx, [esp + 0x160]
call fcn.00411ac0
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
call eax
push dword [esp + 0x3c]
lea eax, [edi + 0x13c]
push eax
call fcn.00412ea0
add esp, 8
lea ecx, [edi + 0x130]
mov bl, al
push ecx
lea ecx, [esp + 0x7c]
call fcn.00415660
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
mov ebx, dword [esp + 0x78]
je 0x41e446
test ebx, ebx
je 0x41e46b
push ebx
call dword [esp + 0x80]
add esp, 4
test ebx, ebx
je 0x41e46b
lea ecx, [ebx + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x41e46b
test ecx, ecx
je 0x41e46b
add ecx, 0xfffffffc
je 0x41e46b
mov eax, dword [ecx]
push 1
call dword [eax]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
test byte [eax], 4
je 0x41e4c1
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x41e4c1
push dword [ebp + 0x3c]
mov edx, dword [esp + 0x54]
cmp dl, 0x58
push dword [esp + 0x5c]
push dword [esp + 0x64]
push dword [esp + 0x6c]
push dword [ebp + 0x28]
push dword [esp + 0x54]
push dword [esp + 0x5c]
push dword [esp + 0x58]
push eax
movzx eax, dl
mov edx, 0x42
cmove eax, edx
movzx eax, al
push eax
push dword [esp + 0x74]
push dword [esp + 0x74]
call ecx
add esp, 0x30
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41e4dd
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
call fcn.0041cb00
cmp dword [esp + 0x228], 0x10
mov eax, dword [esp + 0x34]
mov dword [ebx], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 4], eax
jb 0x41e503
push dword [esp + 0x214]
call fcn.0052199f
add esp, 4
push 0
push dword [esi]
mov dword [esp + 0x230], 0xf
mov dword [esp + 0x22c], 0
mov byte [esp + 0x21c], 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x41e534
call fcn.00418790
mov ecx, dword [esp + 0x244]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00527f3e
mov esp, ebp
pop ebp
ret 0x38