Function at 0x47d8c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d18d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, 0x73799c
mov ecx, esi
call fcn.0047a990
or esi, 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x7379a0]
jne 0x47d922
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x47db12
mov eax, dword [0x72f83c]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
and edx, 0x7fffffff
mov eax, dword [eax]
inc ecx
cmp eax, 1
je 0x47d93f
test eax, eax
jne 0x47d945
cmp edx, ecx
jb 0x47d947
jmp 0x47d96f
cmp edx, ecx
mov eax, dword [0x72f83c]
sbb esi, esi
and esi, 8
cmp ecx, edx
jbe 0x47d95b
mov eax, dword [eax + 4]
inc eax
jmp 0x47d963
mov eax, dword [eax + 8]
and eax, 0x7fffffff
push esi
push eax
mov ecx, 0x72f83c
call fcn.0044d5d0
mov eax, dword [0x72f83c]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
lea edx, [ecx + edx*4]
mov ecx, dword [ebp + 8]
mov dword [edx + eax], ecx
mov eax, dword [0x72f83c]
inc dword [eax + 4]
mov eax, dword [0x72f840]
mov edx, dword [eax + 8]
mov esi, dword [eax + 4]
and edx, 0x7fffffff
mov eax, dword [eax]
inc esi
cmp eax, 1
je 0x47d9a8
test eax, eax
jne 0x47d9ae
cmp edx, esi
jb 0x47d9b0
jmp 0x47d9d8
cmp edx, esi
mov eax, dword [0x72f840]
sbb ecx, ecx
and ecx, 8
cmp esi, edx
jbe 0x47d9c4
mov eax, dword [eax + 4]
inc eax
jmp 0x47d9cc
mov eax, dword [eax + 8]
and eax, 0x7fffffff
push ecx
push eax
mov ecx, 0x72f840
call fcn.0044d5d0
mov eax, dword [0x72f840]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
lea edx, [ecx + edx*4]
mov ecx, dword [ebp + 0xc]
mov dword [edx + eax], ecx
mov eax, dword [0x72f840]
inc dword [eax + 4]
cmp dword [0x7379a0], 0
jne 0x47db03
cmp dword [0x7379a4], 0
jne 0x47dae2
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x7379a4], eax
mov eax, dword [0x72f83c]
mov eax, dword [eax]
cmp eax, 1
je 0x47da6b
test eax, eax
je 0x47da6b
mov eax, dword [0x72f83c]
mov ecx, dword [eax + 8]
and ecx, 0x7fffffff
jne 0x47da57
push 2
push ecx
push 4
push 4
call fcn.00424ff0
add esp, 0x10
mov dword [0x72f83c], eax
jmp 0x47da6b
push ecx
mov eax, esp
push ecx
mov ecx, 0x72f83c
mov dword [eax], 0
call fcn.0044d5d0
mov eax, dword [0x72f83c]
mov ebx, dword [0x7379a4]
mov ecx, dword [eax]
mov eax, dword [0x72f83c]
cmp ecx, 1
je 0x47da86
test ecx, ecx
jne 0x47da97
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
and edx, 0x7fffffff
inc ecx
cmp ecx, edx
jle 0x47dab4
mov ecx, dword [eax + 4]
inc ecx
push ecx
mov eax, esp
push ecx
mov ecx, 0x72f83c
mov dword [eax], 8
call fcn.0044d5d0
mov eax, dword [0x72f83c]
mov edi, dword [eax + 0xc]
add edi, eax
mov eax, dword [eax + 4]
shl eax, 2
push eax
push edi
lea esi, [edi + 4]
push esi
call fcn.00554ff0
add esp, 0xc
cmp esi, edi
je 0x47dada
sub esi, 4
mov dword [esi], ebx
cmp esi, edi
jne 0x47dad1
mov eax, dword [0x72f83c]
inc dword [eax + 4]
push 0x7379a0
push 0
push 0
push 0x47d410
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47db0f
push dword [0x7379a4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x10]
test al, 1
je 0x47db20
and eax, 0xfffffffe
mov ecx, eax
call fcn.0047ae40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret