Function at 0x40a8e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], esp
mov dword [esi + 0x78], 0xffffffff
mov dword [esi + 0x74], 0x40ea60
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x70]
mov ecx, dword fs:[0]
mov dword [esi + 0x70], ecx
mov dword fs:[0], eax
cmp byte [ebx + 0x11], 0
je 0x40a927
mov byte [esi + 2], 3
jmp 0x40a949
xor ecx, ecx
call fcn.0040e460
test eax, eax
je 0x40ac46
cmp dword [eax], 1
jbe 0x40a941
mov byte [esi + 2], 1
jmp 0x40a949
call fcn.00408500
mov byte [esi + 2], al
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
mov dword [esi + 0x24], eax
lea eax, [esi + 0x58]
push edi
push eax
call dword [ebx + 0xc]
add esp, 8
mov eax, 0xfdbc1681
mov ecx, 0xb1ef64
xor eax, dword [esi + 0x5c]
xor ecx, dword [esi + 0x58]
or ecx, eax
jne 0x40a990
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x64]
mov eax, 4
xor ecx, 0xcd1e7bc1
xor edx, 0xc1a2c89c
or edx, ecx
mov ecx, edi
je 0x40a9d7
lea eax, [esi + 0x48]
push edi
push eax
call dword [ebx + 0xc]
add esp, 8
mov eax, 0xbbe3bb87
mov ecx, 0xf1c4635f
xor eax, dword [esi + 0x4c]
xor ecx, dword [esi + 0x48]
or ecx, eax
mov eax, 0xc
mov ecx, 0x704154
jne 0x40a9dc
mov edx, dword [esi + 0x50]
mov ebx, dword [esi + 0x54]
xor edx, 0x313f4ac5
xor ebx, 0x331dbe88
or ebx, edx
jne 0x40a9dc
lea ecx, [edi + 4]
mov eax, 8
mov ecx, dword [ecx]
mov eax, dword [edi + eax]
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], eax
call fcn.0040a320
mov edi, 9
mov ecx, 0x704160
test eax, eax
mov dword [esi + 0x10], eax
je 0x40aa05
mov edx, dword [eax + 0x10]
test edx, edx
je 0x40aa05
mov edi, dword [eax + 0x14]
mov ecx, edx
dec edi
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x30]
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], ecx
lea ecx, [esi + 0x24]
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x28]
mov dword [esi + 0x40], ecx
lea ecx, [esi + 2]
mov dword [esi + 0x44], ecx
movzx ecx, byte [0x786374]
mov dword [esi + 4], eax
test cl, cl
je 0x40aa9e
xor ecx, ecx
mov byte [0x786374], 1
mov dword [esi + 0x78], 0
call fcn.0040e740
test eax, eax
je 0x40abed
mov ebx, dword [eax]
mov dword [eax], 0
test ebx, ebx
mov dword [esi + 0x14], ebx
je 0x40aaa5
mov dword [esi + 0x1c], ebx
mov cl, 1
xor eax, eax
lea edi, [ebx + 8]
lock cmpxchg byte [ebx + 8], cl
jne 0x40abdf
mov dword [esi + 4], edi
mov eax, dword [0x786390]
mov dword [esi + 0x20], ebx
test eax, 0x7fffffff
je 0x40aae0
mov byte [esi + 1], 1
mov dword [esi + 0x78], 2
call fcn.00667d90
mov ebx, dword [esi + 0x20]
xor al, 1
mov dword [esi + 0x18], eax
jmp 0x40aae7
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 0
mov byte [esi + 3], 0
mov dword [esi + 0x78], 1
lea ecx, [esi + 0x38]
lea edx, [esi + 8]
push 0x704194
call fcn.0040ad60
add esp, 4
mov eax, dword [esi + 4]
xor ebx, ebx
test eax, eax
jne 0x40ab72
jmp 0x40ab7f
mov dword [esi + 0x18], 0
movzx eax, byte [ebx + 9]
lea edx, [ebx + 0xc]
mov dword [esi + 0x78], 4
lea ecx, [esi + 0x38]
push 0x70416c
call fcn.0040ad60
add esp, 4
cmp byte [esi + 0x18], 0
je 0x40abab
mov ecx, dword [esi + 4]
xor eax, eax
xchg byte [ecx], al
cmp al, 2
jne 0x40ab28
push ecx
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle]
mov dword [esi + 0x78], 3
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov byte [0x786374], 1
mov dword [esi + 0x78], 3
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.0040e740
test eax, eax
je 0x40ac0c
mov ecx, dword [eax]
mov edx, dword [esi + 4]
test ecx, ecx
mov dword [eax], edx
mov dword [esi + 8], ecx
je 0x40ab69
lock dec dword [ecx]
jne 0x40ab69
lea ecx, [esi + 8]
call fcn.004068f0
mov eax, dword [esi + 0x10]
mov bl, 1
test eax, eax
je 0x40ab7f
lock dec dword [eax]
jne 0x40ab7f
lea ecx, [esi + 0x10]
call fcn.00406890
mov eax, dword [esi + 0x14]
not bl
test eax, eax
setne cl
test bl, cl
je 0x40ab9a
lock dec dword [eax]
jne 0x40ab9a
lea ecx, [esi + 0x14]
call fcn.004068f0
mov eax, dword [esi + 0x70]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x786390]
test eax, 0x7fffffff
je 0x40ab0f
mov byte [esi + 1], 1
mov dword [esi + 0x78], 2
call fcn.00667d90
test al, al
jne 0x40ab0f
mov eax, dword [esi + 0x20]
mov byte [eax + 9], 1
jmp 0x40ab0f
push edi
call fcn.00668000
add esp, 4
jmp 0x40aa72
lea eax, [esi + 8]
push 0x703d3c
push 0x703ad0
push eax
push 0x46
push str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionlibrary_std_src_threadlocal.rs
call fcn.00667a60
add esp, 0x14
jmp 0x40ac44
mov eax, dword [esi + 4]
lock dec dword [eax]
jne 0x40ac1c
lea ecx, [esi + 8]
call fcn.004068f0
mov byte [esi + 1], 0
mov dword [esi + 0x78], 2
lea eax, [esi + 8]
push 0x703d3c
push 0x703ad0
push eax
push 0x46
push str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionlibrary_std_src_threadlocal.rs
call fcn.00667a60
add esp, 0x14
ud2
lea eax, [esi + 8]
push 0x703d3c
push 0x703ad0
push eax
push 0x46
push str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionlibrary_std_src_threadlocal.rs
call fcn.00667a60
push ebp
sub esp, 0x14
lea esi, [ebp - 0x7c]
mov ebp, dword [esi + 0x68]
cmp dword [esi + 4], 0
je 0x40ac80
mov eax, dword [esi + 4]
lock dec dword [eax]
jne 0x40ac80
lea ecx, [esi + 0x10]
call fcn.00406890
add esp, 0x14
pop ebp
ret