Function at 0x41cf9e
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e2703
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, dword [0x5181f4]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
or dword [esp + 0x20], 0xffffffff
xor edi, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0xd0], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
lea esi, [esp + 0x10]
mov byte [esp + 0xd0], 1
call fcn.0041eb8b
cmp dword [esp + 0x14], edi
je 0x41d01e
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x14]
sar eax, 2
jne 0x41d023
call fcn.00441e1b
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
cmp dword [esp + 0x14], edi
je 0x41d042
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x14]
sar eax, 2
cmp eax, 1
ja 0x41d047
call fcn.00441e1b
mov eax, dword [0x5223e4]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x14]
sar eax, 2
cmp eax, 2
ja 0x41d068
call fcn.00441e1b
mov esi, dword [esp + 0x14]
push edi
push edi
push edi
add esi, 8
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov dword [esi], eax
cmp dword [esp + 0x14], edi
je 0x41d090
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x14]
sar eax, 2
cmp eax, 2
ja 0x41d095
call fcn.00441e1b
mov eax, dword [esp + 0x14]
cmp dword [eax + 8], edi
jne 0x41d0b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x2af
mov ecx, 0x4fe018
jmp 0x41d55e
cmp dword [esp + 0x14], 0
jne 0x41d0be
xor edi, edi
jmp 0x41d0c9
mov edi, dword [esp + 0x18]
sub edi, dword [esp + 0x14]
sar edi, 2
push 1
push 0x3e8
push 0
lea esi, [esp + 0x1c]
call fcn.0041f474
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
cmp eax, 1
je 0x41d345
cmp eax, 2
je 0x41d1b4
cmp eax, 0xc0
je 0x41d0b3
cmp eax, 0x102
jne 0x41d60a
mov edi, dword [esp + 0x28]
cmp edi, dword [esp + 0x2c]
jbe 0x41d116
call fcn.00441e1b
lea ebx, [esp + 0x24]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], edi
mov esi, dword [esp + 0x2c]
cmp dword [esp + 0x28], esi
jbe 0x41d131
call fcn.00441e1b
test ebx, ebx
je 0x41d13d
lea eax, [esp + 0x24]
cmp ebx, eax
je 0x41d142
call fcn.00441e1b
cmp edi, esi
je 0x41d0b3
lea esi, [esp + 0x54]
call fcn.0041e513
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41d199
call fcn.0041e513
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 4]
push eax
mov eax, dword [esp + 0x30]
mov edx, edi
call fcn.0041f4b3
sub dword [esp + 0x30], 4
pop ecx
push dword [0x5223e4]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x41d122
test ebx, ebx
jne 0x41d1a2
call fcn.00441e1b
cmp edi, dword [ebx + 8]
jb 0x41d1ac
call fcn.00441e1b
add edi, 4
jmp 0x41d11e
xor eax, eax
xor ebx, ebx
cmp dword [esp + 0x28], eax
mov dword [esp + 0x8c], eax
je 0x41d1d0
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sar eax, 2
cmp eax, dword [0x51ee2c]
jae 0x41d0b3
push 0x5225e4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xac]
push eax
call fcn.0041e1f8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x60], eax
mov eax, dword [0x5225d0]
lea edi, [esp + 0x6c]
lea esi, [esp + 0x5c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], 0x5225cc
call fcn.0041e412
test al, al
je 0x41d22f
or dword [esp + 0x20], 0xffffffff
jmp 0x41d28d
mov esi, dword [esp + 0x5c]
test esi, esi
jne 0x41d23c
call fcn.00441e1b
lea ebx, [esi + 4]
mov esi, dword [esp + 0x60]
cmp esi, dword [ebx]
jne 0x41d24c
call fcn.00441e1b
add esi, 0x10
mov eax, dword [esi]
mov eax, dword [eax]
mov edi, dword [eax + 0x48]
mov eax, dword [eax + 0x4c]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x60]
cmp eax, dword [ebx]
jne 0x41d26d
call fcn.00441e1b
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov ecx, 0x989680
mul ecx
add eax, edi
mov ebx, edx
adc ebx, dword [esp + 0xa0]
mov dword [esp + 0x8c], eax
push 0x5225e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x20], 0
jl 0x41d0b3
call fcn.00496190
cmp edx, ebx
jb 0x41d334
ja 0x41d2bb
cmp eax, dword [esp + 0x8c]
jb 0x41d334
mov esi, 0x5225e4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x20]
push eax
lea edi, [esp + 0xbc]
mov ebx, 0x5225d8
call fcn.0041e260
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
push esi
push esi
push dword [esp + 0x28]
push 0x41dd5e
push esi
push esi
call fcn.00443185
add esp, 0x18
cmp eax, esi
mov dword [esp + 0x68], eax
je 0x41d313
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x28]
call fcn.0041e4b9
jmp 0x41d334
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x33e
push 0xa
push 0xffffffffffffffff
push eax
mov ecx, str._beginthreadex
mov dword [esp + 0x44], eax
call fcn.0042cdde
add esp, 0x10
push dword [0x5223e4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x41d0b3
mov eax, dword [0x5225d0]
or dword [esp + 0x44], 0xffffffff
or dword [esp + 0x48], 0xffffffff
mov ebx, 0x5225cc
push 0x5225e4
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5225d0]
mov eax, dword [eax]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x7c], ebx
mov eax, dword [0x5225d0]
lea edi, [esp + 0x7c]
lea esi, [esp + 0x38]
mov dword [esp + 0x80], eax
call fcn.0041e412
test al, al
jne 0x41d49a
mov esi, dword [esp + 0x38]
test esi, esi
jne 0x41d3ad
call fcn.00441e1b
lea edi, [esi + 4]
mov esi, dword [esp + 0x3c]
cmp esi, dword [edi]
mov dword [esp + 0x64], edi
jne 0x41d3c1
call fcn.00441e1b
lea eax, [esi + 0x10]
mov dword [esp + 0x40], eax
mov eax, dword [eax]
mov eax, dword [eax]
cmp byte [eax + 0x2c], 0
je 0x41d48c
mov ebx, dword [esp + 0x3c]
cmp ebx, dword [edi]
mov eax, dword [0x5225dc]
mov esi, 0x5225d8
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], esi
jne 0x41d3fb
call fcn.00441e1b
lea eax, [esp + 0xb0]
push eax
add ebx, 0xc
mov eax, esi
call fcn.0041e304
lea edi, [esp + 0x94]
mov esi, eax
call fcn.0041e412
test al, al
je 0x41d487
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x64]
cmp eax, dword [ecx]
jne 0x41d430
call fcn.00441e1b
mov esi, dword [esp + 0x40]
mov eax, dword [esi]
mov eax, dword [eax]
mov edi, dword [eax + 0x48]
mov ebx, dword [eax + 0x4c]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x64]
cmp eax, dword [ecx]
jne 0x41d44f
call fcn.00441e1b
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov ecx, 0x989680
mul ecx
add eax, edi
adc edx, ebx
cmp dword [esp + 0x48], edx
jb 0x41d487
ja 0x41d46f
cmp dword [esp + 0x44], eax
jbe 0x41d487
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov ebx, 0x5225cc
lea esi, [esp + 0x38]
call fcn.0041582b
jmp 0x41d37f
mov eax, dword [0x5225d0]
lea edi, [esp + 0x84]
lea esi, [esp + 0x4c]
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], ebx
call fcn.0041e412
test al, al
je 0x41d4c8
or dword [esp + 0x20], 0xffffffff
jmp 0x41d4ea
mov edi, dword [esp + 0x4c]
test edi, edi
jne 0x41d4d5
call fcn.00441e1b
mov esi, dword [esp + 0x50]
cmp esi, dword [edi + 4]
jne 0x41d4e3
call fcn.00441e1b
mov eax, dword [esi + 0xc]
mov dword [esp + 0x20], eax
push 0x5225e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x20], 0
jl 0x41d0b3
mov eax, dword [esp + 0x44]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x48]
xor esi, esi
cmp dword [esp + 0x14], esi
mov dword [esp + 0x78], eax
je 0x41d528
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x14]
sar eax, 2
cmp eax, 2
ja 0x41d52d
call fcn.00441e1b
push esi
push esi
push esi
push esi
lea eax, [esp + 0x84]
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
test eax, eax
jne 0x41d0b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x304
mov ecx, 0x4fe074
push 0xa
push 0xffffffffffffffff
push eax
mov dword [esp + 0x44], eax
call fcn.0042cdde
add esp, 0x10
cmp dword [esp + 0x14], 0
je 0x41d588
mov ecx, dword [esp + 0x18]
mov eax, ecx
sub eax, dword [esp + 0x14]
sar eax, 2
cmp eax, 2
ja 0x41d591
call fcn.00441e1b
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
cmp dword [eax + 8], 0
je 0x41d5b7
sub ecx, eax
sar ecx, 2
cmp ecx, 2
ja 0x41d5aa
call fcn.00441e1b
mov eax, dword [esp + 0x14]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [esp + 0x28], esi
je 0x41d628
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sar eax, 2
je 0x41d628
lea eax, [esp + 0x24]
call fcn.0041e47b
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x24]
call fcn.0041e47b
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x28], esi
je 0x41d628
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sar eax, 2
je 0x41d5b9
sub dword [esp + 0x2c], 4
jmp 0x41d5b9
cmp eax, 0xffffffff
jne 0x41d56f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x2c0
mov ecx, 0x4fe040
jmp 0x41d55e
cmp dword [esp + 0x14], esi
je 0x41d638
push dword [esp + 0x14]
call fcn.00441cca
pop ecx
cmp dword [esp + 0x28], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
je 0x41d654
push dword [esp + 0x28]
call fcn.00441cca
pop ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret