Function at 0x477e10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aaf92
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
push edi
mov eax, dword [0x5f537c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 1
mov dl, byte [eax + 4]
mov eax, dword [eax]
cmp eax, 3
ja case.default.0x477e8b
jmp dword [eax*4 + 0x4782f8]
xor ecx, ecx
test dl, dl
setne cl
lea ecx, [ecx*4 + 1]
jmp 0x477edb
xor ecx, ecx
test dl, dl
setne cl
lea ecx, [ecx*4 + 2]
jmp 0x477edb
xor ecx, ecx
test dl, dl
setne cl
lea ecx, [ecx*4 + 8]
jmp 0x477edb
xor ecx, ecx
test dl, dl
setne cl
lea ecx, [ecx*4 + 0x10]
jmp 0x477edb
mov dword [ebp - 4], 1
xor ecx, ecx
mov edx, dword [edi + 0x16c]
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x477fac
cmp ecx, edx
je 0x477efa
mov dword [ebp - 4], 1
cmp dword [ebp + 0xc], eax
je 0x477f06
mov dword [ebp - 4], 1
mov eax, dword [edi + 0x17c]
lea esi, [edi + 0x17c]
mov edx, dword [esi + 4]
cmp eax, edx
je 0x477f36
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x477f34
push dword [ebp - 0x1c]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00461680
jmp 0x477f46
mov eax, dword [esi]
push esi
push edx
push eax
call fcn.0045de40
mov eax, dword [esi]
add esp, 0xc
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0xc]
push dword [ebp - 0x1c]
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [esi + 0x10]
call fcn.00461680
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0x18]
push dword [ebp - 0x1c]
push dword [eax + 0x1c]
push dword [eax + 0x18]
push dword [esi + 0x1c]
call fcn.00461680
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0x24]
push dword [ebp - 0x1c]
push dword [eax + 0x28]
push dword [eax + 0x24]
push dword [esi + 0x28]
call fcn.00461680
mov ecx, edi
call fcn.0047a1a0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp byte [edi + 0x44], 0
je 0x477fcc
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x34], eax
cmp ecx, edx
je 0x477fe3
mov dword [edi + 0x16c], ecx
mov ecx, edi
call fcn.0047ab30
inc dword [edi + 0x38]
lea ecx, [ebp - 0x5c]
push esi
call fcn.00462ec0
lea eax, [esi + 0xc]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x50]
call fcn.00462ec0
lea eax, [esi + 0x18]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x44]
call fcn.00462ec0
lea eax, [esi + 0x24]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x38]
call fcn.00462ec0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [edi + 0x17c]
call fcn.00467100
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0047cd80
lea ecx, [ebp - 0x44]
call fcn.0047cd80
lea ecx, [ebp - 0x50]
call fcn.0047cd80
lea ecx, [ebp - 0x5c]
call fcn.0047cd80
mov ecx, edi
call fcn.0047a1a0
mov ecx, edi
call fcn.0047a250
test byte [ebp - 0x10], 4
je 0x4781e8
push 0x1c
call fcn.0045a8af
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x4780cb
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], 0
mov dword [esi], vtable.base::debug::TraceSamplingThread.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
push 0
mov byte [esi + 0x10], 0
lea ecx, [esi + 0x18]
push 0
mov byte [ebp - 4], 0x11
mov dword [esi + 0x14], 0
call fcn.00464d20
jmp 0x4780cd
xor esi, esi
mov byte [ebp - 4], 1
test esi, esi
je 0x4780e1
cmp esi, dword [edi + 0x170]
je 0x4782e9
mov ecx, dword [edi + 0x170]
mov dword [edi + 0x170], 0
test ecx, ecx
je 0x4780fc
mov eax, dword [ecx]
push 1
call dword [eax + 4]
sub esp, 8
mov dword [edi + 0x170], esi
mov eax, esp
push 0x46c700
push eax
call fcn.0045c220
mov ecx, dword [edi + 0x170]
add esp, 8
push str.bucket0
push 0x60239c
call fcn.00475c70
sub esp, 8
mov eax, esp
push 0x46c700
push eax
call fcn.0045c220
mov ecx, dword [edi + 0x170]
add esp, 8
push str.bucket1
push 0x6023a0
call fcn.00475c70
sub esp, 8
mov eax, esp
push 0x46c700
push eax
call fcn.0045c220
mov ecx, dword [edi + 0x170]
add esp, 8
push str.bucket2
push 0x6023a4
call fcn.00475c70
mov esi, dword [edi + 0x170]
push 8
mov dword [ebp - 4], 1
call fcn.0045a8af
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], esi
lea esi, [edi + 0x174]
push 0
push 0
push eax
push 0x4797e0
test esi, esi
push 0
setne cl
push 0
mov byte [eax + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4781d2
push 8
push dword [ebp - 0x14]
call fcn.0045a8df
add esp, 8
mov dword [ebp - 4], 1
jmp 0x4781e8
test esi, esi
je 0x4781e1
mov dword [esi], eax
mov dword [esi + 4], 0
jmp 0x4781e8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi + 0x48]
mov byte [edi + 0x44], 1
lea eax, [ebp - 0x28]
cmp eax, ecx
je 0x47825f
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
sub eax, ecx
mov esi, eax
mov dword [ebp - 0x10], ecx
sar esi, 2
mov dword [ebp - 0x14], eax
test esi, esi
je 0x478245
cmp esi, 0x3fffffff
ja 0x4782ee
xor eax, eax
lea ecx, [ebp - 0x28]
cmp eax, esi
sbb eax, eax
and eax, esi
push eax
call fcn.0047bc60
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
push dword [ebp - 0x10]
push esi
call fcn.0056d160
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, esi
mov dword [ebp - 0x24], eax
jmp 0x478265
push eax
push ecx
shl esi, 2
push 0
mov dword [ebp - 0x10], esi
call fcn.0056d160
mov dword [ebp - 0x24], esi
add esp, 0xc
mov esi, dword [ebp - 0x28]
jmp 0x478268
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
push edi
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
sub eax, esi
sar eax, 2
mov dword [ebp - 0x10], eax
test eax, eax
je 0x478294
xor edi, edi
mov ecx, dword [esi + edi*4]
mov eax, dword [ecx]
call dword [eax]
inc edi
cmp edi, dword [ebp - 0x10]
jb 0x478284
mov edi, dword [ebp - 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov byte [edi + 0x44], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x4782d6
mov ecx, dword [ebp - 0x20]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4782cc
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4782f3
push ecx
push esi
call fcn.0045a8df
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
call fcn.005863a0
call fcn.0040c2d0
call fcn.0057097a
xchg edx, eax
jle 4686658
add byte [edx - 0x4dffb882], ah
jle 0x47834a
add dl, al
jle 0x47834e
add ah, cl
int3
fimul dword [ebx - 0x37740001]
call fcn.00478430
mov ecx, str.BrokerEvent
add byte [eax], al
add byte [ecx + str.BrokerEvent], bh
clc
scasd eax, dword es:[edi]
pop ebx
add byte [ebx + 0x3a108ac6], cl
adc dword [ebp + 0x1a], esi
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x478374
test dl, dl
je 0x478370
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x478374
add eax, 2
add ecx, 2
test dl, dl
jne 0x478354
xor eax, eax
jmp 0x478379
sbb eax, eax
or eax, 1
test eax, eax
je 0x4783f1
mov ecx, esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x478394
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x24]
call fcn.0040ca10
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
call fcn.00473a00
mov edx, dword [ebp - 0x10]
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4783f1
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4783e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478424
push edx
push ecx
call fcn.0045a8df
add esp, 8
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x478404
call fcn.00473be0
test al, al
je 0x478414
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.00478650
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0057097a
int3