Function at 0xb7bdae
Capabilities:
Check for time delay via gettickcount
Set thread local storage value

Disassembly:
push 0x5c
mov eax, 0xbcb217
call fcn.00bc132b
mov ebx, ecx
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
or dword [ebp - 0x24], 0xffffffff
lea edi, [ebp - 0x30]
mov dword [ebx + 0x34], eax
lea ecx, [ebp - 0x24]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x30], SysReAllocString
call fcn.00b7c5e1
test eax, eax
js 0xbf2866
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov eax, dword [ebx + 0x2c]
neg eax
sbb eax, eax
and eax, 2
push eax
push 0
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
test eax, eax
js 0xbf2866
and dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.00b7c15b
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
test eax, eax
js 0xb7c0b1
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], edi
push ecx
lea eax, [ebx + 0x38]
mov ecx, ebx
push eax
call fcn.00b7c15b
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
test eax, eax
js 0xb7c0b1
push esi
call dword [sym.imp.api_ms_win_shcore_thread_l1_1_0.dll_SHSetThreadRef]
mov dword [ebp - 0x20], eax
test eax, eax
js 0xb7c0b1
mov eax, dword [ebx + 0x2c]
and dword [ebx + 0x1c], 0
shl eax, 0x18
or eax, dword [ebx + 0x30]
inc eax
cmp dword [ebx + 0x20], 0
mov dword [ebp - 0x30], eax
jne 0xb7c11d
mov esi, dword [ebx + 0x24]
test esi, esi
je 0xb7bec4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0xb7beb4
and dword [esi + 0xc], 0
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
cmp edi, fcn.00b7c530
jne 0xbf27b5
call fcn.00b7c530
push esi
push 0
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
and dword [ebx + 0x24], 0
mov byte [ebx + 0x3c], 0
lock dec dword [0xd0addc]
mov edi, 0xd0add8
cmp dword [ebx + 0x58], 0
jne 0xb7bf5b
cmp dword [ebx + 0x38], 1
jg 0xbf27fd
jne 0xb7bff9
cmp byte [0xd08e09], 0
je 0xb7bff9
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov ecx, eax
lea esi, [ecx + 0x7530]
cmp dword [ebx + 0x58], 0
jne 0xb7bf5b
cmp ecx, esi
jae 0xb7bff9
push 6
push 0x1cff
mov eax, esi
sub eax, ecx
push eax
lea eax, [ebx + 0x44]
push eax
push 1
call dword [sym.imp.api_ms_win_rtcore_ntuser_synch_l1_1_0.dll_MsgWaitForMultipleObjectsEx]
cmp eax, 0xffffffff
je 0xbf280f
xor eax, eax
push 1
push eax
push eax
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_PeekMessageW]
test eax, eax
jne 0xbf281a
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov ecx, eax
jmp 0xb7bf09
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_PeekMessageW]
test eax, eax
jne 0xbf27c4
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x58]
shl eax, 0x18
or eax, dword [ebx + 0x30]
or eax, 0x800000
inc eax
mov dword [ebp - 0x30], eax
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0xc]
cmp esi, fcn.00ba1b00
je 0xb7c109
cmp esi, fcn.00b53350
je 0xb7c113
cmp esi, fcn.00b52fa0
je 0xb7c12b
cmp esi, fcn.00b88b70
je 0xb7c135
cmp esi, fcn.00b52330
je 0xb7c151
mov ecx, esi
call dword [0xd0cffc]
call esi
mov eax, dword [ebx + 0x2c]
shl eax, 0x18
or eax, dword [ebx + 0x30]
inc eax
cmp dword [ebx + 0x18], 0
mov dword [ebp - 0x30], eax
jne 0xbf27eb
mov ecx, ebx
call fcn.00b7c48d
jmp 0xb7bed8
cmp dword [ebx + 0x58], 0
jne 0xb7bf5b
cmp dword [ebx + 0x38], 1
jg 0xb7bed8
cmp dword [ebp - 0x2c], 1
jg 0xb7bed8
push edi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
xor edx, edx
cmp dword [ebx + 0x58], edx
jne 0xbf285e
cmp dword [0xd0af5c], edx
jne 0xbf285e
cmp dword [0xd0addc], edx
jne 0xbf285e
mov ecx, 0xd0934c
mov byte [ebp - 0x11], 1
cmp dword [0xd0934c], ebx
je 0xb7c05b
mov ecx, dword [ecx]
add ecx, 0xc
cmp dword [ecx], ebx
jne 0xb7c052
mov eax, dword [ebx + 0xc]
mov dword [ecx], eax
mov eax, dword [ebx]
mov dword [ebx + 0xc], edx
push ebx
mov esi, dword [eax + 8]
cmp esi, fcn.00b77c80
jne 0xbf283c
call fcn.00b77c80
cmp dword [0xd0934c], 0
je 0xb7c13f
push edi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
cmp byte [ebp - 0x11], 0
je 0xb7bed8
push 0
call dword [sym.imp.api_ms_win_shcore_thread_l1_1_0.dll_SHSetThreadRef]
and dword [ebp - 0x28], 0
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x30], SysReAllocString
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
mov byte [ebp - 4], 0
test esi, esi
je 0xb7c0cf
mov eax, dword [esi]
push esi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0xd0cffc]
call esi
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0xb7c0e7
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0xd0cffc]
call esi
mov eax, dword [ebp - 0x20]
test eax, eax
js 0xbf2866
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0xb7c103
push 0
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
call fcn.00bc12da
ret
call fcn.00ba1b00
jmp 0xb7bfd6
call fcn.00b53350
jmp 0xb7bfd6
push dword [ebx + 0x20]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0xb7be8b
call fcn.00b52fa0
jmp 0xb7bfd6
call fcn.00b88b70
jmp 0xb7bfd6
mov eax, dword [0xd09350]
test eax, eax
je 0xb7c087
jmp 0xbf284b
call fcn.00b52330
jmp 0xb7bfd6
mov ecx, edi
call dword [0xd0cffc]
call edi
jmp 0xb7beb4
lea eax, [ebp - 0x4c]
mov byte [ebx + 0x3c], 1
push eax
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_TranslateMessage]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_DispatchMessageW]
xor eax, eax
push 1
push eax
push eax
mov byte [ebx + 0x3c], al
push eax
jmp 0xb7bf63
push dword [ebx + 0x18]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
and dword [ebx + 0x18], 0
jmp 0xb7bfed
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00c1c2f1
cmp dword [ebx + 0x38], 1
jmp 0xb7bee8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0xb7bf38
lea eax, [ebp - 0x68]
mov byte [ebx + 0x3c], 1
push eax
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_TranslateMessage]
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_DispatchMessageW]
xor eax, eax
mov byte [ebx + 0x3c], al
jmp 0xb7bf3a
mov ecx, esi
call dword [0xd0cffc]
call esi
jmp 0xb7c07a
push eax
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
and dword [0xd09350], 0
jmp 0xb7c087
mov byte [ebp - 0x11], dl
jmp 0xb7c087
cmp dword [ebx + 0x20], 0
mov dword [ebx + 0x1c], eax
je 0xbf2878
push dword [ebx + 0x20]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0xbf2888
call fcn.00c21ed2
and dword [ebx + 0x24], 0
lock dec dword [0xd0addc]
mov dl, 1
mov ecx, ebx
call fcn.00c22003
lea ecx, [ebx + 0x10]
call fcn.00b84c25
jmp 0xb7c0f2