Function at 0x41e4d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d5e8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x49b0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x10], 0
jne 0x41e528
push 0
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x41e3a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x10], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
jmp 0x41e541
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp + 0x40]
jge 0x41e6da
mov edx, dword [ebp - 0x2c]
add edx, 0x34
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x492c16
mov ecx, dword [ebp - 0x2c]
add ecx, 0x1c
call fcn.0040b9c0
mov eax, dword [ebp - 0x2c]
add eax, 0x34
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp + 0x24]
push eax
call fcn.0041c0f0
add esp, 4
mov dword [ebp - 0x48], eax
lea ecx, [ebp + 0x24]
call fcn.00403600
push eax
lea ecx, [ebp + 0x24]
call fcn.00409350
push eax
mov ecx, dword [ebp + 0x20]
push ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x54], esp
lea edx, [ebp + 8]
push edx
call fcn.004092c0
mov dword [ebp - 0x58], eax
call fcn.0041b9e0
add esp, 0x24
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x41e5e1
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41e538
imul ecx, dword [ebp + 0x44], 0x3e8
add ecx, 0x14
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 0
je 0x41e60d
jmp 0x41e6c8
push 0x492c17
lea ecx, [ebp - 0x28]
call fcn.004055e0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
add edx, 0x34
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x2c]
add eax, 0x1c
push eax
lea ecx, [ebp - 0x28]
call fcn.004091b0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x34
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [ebp - 0x28]
push edx
call fcn.0041c0f0
add esp, 4
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x30], 0
je 0x41e6ab
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x48]
jne 0x41e6ab
mov dword [ebp - 0x30], 1
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 0x3c]
call fcn.004091b0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00404910
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404910
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00404910
mov eax, dword [ebp - 0x4c]
jmp 0x41e6fe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00404910
jmp 0x41e538
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], 0
jmp 0x41e538
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404910
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00404910
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456b9f
mov esp, ebp
pop ebp
ret 0x40