Function at 0x4478f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x468600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, 1
push 8
mov ebx, ecx
mov dword [ebp - 0x34], edi
call fcn.0040b46c
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x44792a
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [ebp - 0x2c], eax
jmp 0x44792d
mov dword [ebp - 0x2c], ecx
test byte [0x47a594], 1
mov dword [ebx + 0x94], ecx
jne 0x447961
or dword [0x47a594], edi
push 0x47a57c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x452e70
mov byte [0x47a578], 0
call fcn.00428267
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x47a57c
call edi
push 0x47a5b8
call edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x47a5b8
call edi
cmp dword [0x47a5b4], 0
jne 0x447a5a
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x47a5d4
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x47a5d4
call edi
cmp dword [0x47a5d0], 0
jne 0x4479f0
mov eax, dword [ebp - 0x28]
push 0
push 0
push eax
push 0x446ee0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x47a5d4
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x30]
push 0x47a5d4
mov dword [0x47a5d0], ecx
call edi
push 0x47a5d4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x47a5d4
call edi
cmp dword [0x47a5d0], 0
jne 0x447a44
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x47a57c
call edi
mov ecx, ebx
call fcn.004471a0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040b49b
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427f57
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x47a57c
call edi
mov eax, 0x10
mov ecx, 0x458808
mov edx, esi
lea ecx, [ecx]
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x447b3f
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x447a70
xor eax, eax
xor ecx, ecx
test eax, eax
sete cl
mov eax, 0x10
mov edx, esi
mov dword [ebx + 0x8c], ecx
mov ecx, 0x458fcc
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x447b76
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x447aa3
xor eax, eax
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebx + 0x90], ecx
mov ecx, 0x47a5b4
call fcn.00446b60
cmp dword [eax], 0
je 0x447a1c
push 0x47a60c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 0x47a608
call fcn.00446b60
mov edx, dword [eax]
push esi
push edx
call fcn.00446820
add esp, 8
push 0x47a60c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x447c57
push 0x1c
call fcn.0040b46c
add esp, 4
test eax, eax
je 0x447bad
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov edi, eax
jmp 0x447baf
movzx edi, byte [ecx]
movzx eax, byte [edx]
sub eax, edi
jne 0x447b6b
movzx eax, byte [edx + 1]
movzx edi, byte [ecx + 1]
sub eax, edi
jne 0x447b6b
movzx eax, byte [edx + 2]
movzx edi, byte [ecx + 2]
sub eax, edi
jne 0x447b6b
movzx eax, byte [edx + 3]
movzx edx, byte [ecx + 3]
sub eax, edx
sar eax, 0x1f
or eax, 1
jmp 0x447a8a
movzx eax, byte [edx]
movzx edi, byte [ecx]
sub eax, edi
jne 0x447ba2
movzx eax, byte [edx + 1]
movzx edi, byte [ecx + 1]
sub eax, edi
jne 0x447ba2
movzx eax, byte [edx + 2]
movzx edi, byte [ecx + 2]
sub eax, edi
jne 0x447ba2
movzx eax, byte [edx + 3]
movzx edx, byte [ecx + 3]
sub eax, edx
sar eax, 0x1f
or eax, 1
jmp 0x447abd
xor edi, edi
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], eax
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, 0x47a5b4
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
call fcn.00446b60
mov edx, dword [eax]
push 0
lea ecx, [ebp - 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationA]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 1
mov ecx, dword [esi]
mov dword [edi], ecx
mov edx, dword [esi + 4]
mov dword [edi + 4], edx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov edx, dword [esi + 0xc]
mov dword [edi + 0xc], edx
test eax, eax
jne 0x447c36
push edi
call fcn.0040b49b
add esp, 4
jmp 0x447a1c
push 0x47a60c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov ecx, 0x47a608
call fcn.00446b60
push eax
call fcn.00446860
add esp, 8
jmp 0x447c65
push 0x47a60c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [edi + 0x14]
push 0x47a60c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x28], 0
lea edi, [ebx + 0x74]
lea ebx, [ebx]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi], eax
test eax, eax
je 0x447d7f
mov eax, dword [ebp - 0x28]
inc eax
add edi, 4
cmp eax, 4
mov dword [ebp - 0x28], eax
jl 0x447c80
push 0
push 0
push ebx
push 0x4474c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebx + 4]
mov dword [ecx + 0x4c], eax
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebx + 4]
cmp dword [eax + 0x4c], 0
je 0x447a1c
test ecx, ecx
je 0x447a1c
mov edx, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [eax + 0x34], edx
mov ecx, dword [esi + 4]
mov dword [eax + 0x38], ecx
mov edx, dword [esi + 8]
mov dword [eax + 0x3c], edx
mov ecx, dword [esi + 0xc]
mov esi, dword [ebp - 0x2c]
mov dword [eax + 0x40], ecx
push 0x47a628
mov dword [esi], ebx
mov dword [esi + 4], 0
call edi
push 0x47a628
call edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x47a628
call edi
push esi
push 0x47a624
call fcn.004466a0
add esp, 8
push 0x47a628
call edi
mov edx, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
mov dword [edx + 0x28], esi
mov eax, dword [ebx + 4]
mov dword [eax + 0x30], ecx
mov eax, dword [ebp + 8]
sub eax, 0
mov dword [ebx + 0x94], 1
je 0x447d86
sub eax, 1
jne 0x447d67
push ecx
mov ecx, dword [ebx + 4]
add ecx, 0x34
push ecx
mov ecx, ebx
call fcn.00446ba0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00427f57
mov esp, ebp
pop ebp
ret 0xc
xor ecx, ecx
jmp 0x447cc4
mov edx, dword [ebx + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x447d67