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

Disassembly:
push 0xffffffffffffffff
push 0x48e35b
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b82d8]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x68]
call fcn.004111d0
lea ecx, [esp + 0x50]
mov dword [esp + 0x88], 0
call fcn.004111d0
cmp dword [ebp], 0
mov byte [esp + 0x88], 1
je 0x40db7b
lea eax, [esp + 0x68]
push eax
mov ecx, ebp
call fcn.0040d2c0
mov ecx, dword [ebp]
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x6c]
push eax
call fcn.00418f10
jmp 0x40db87
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebp
call fcn.0040d2c0
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov esi, ecx
cmp ecx, eax
jbe 0x40dba2
call fcn.0045d981
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x28], edi
mov ebx, esi
mov dword [esp + 0x14], eax
cmp ecx, eax
jbe 0x40dbb9
call fcn.0045d981
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], edx
call fcn.00411230
cmp byte [ebp + 4], 0
mov byte [esp + 0x88], 2
je 0x40dbe5
call fcn.0040c7b0
test al, al
je 0x40dd58
xor esi, esi
cmp edi, esi
je 0x40dbf1
cmp edi, dword [esp + 0x20]
je 0x40dbf6
call fcn.0045d981
cmp ebx, dword [esp + 0x14]
je 0x40dd5a
cmp byte [0x4b6531], 0
jne 0x40dc67
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc
call fcn.00419b96
mov esi, eax
add esp, 4
test esi, esi
je 0x40dc57
test edi, edi
jne 0x40dc53
call fcn.0045d981
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40dc36
call fcn.0045d981
mov eax, dword [ebx]
push esi
mov dword [esi], ebp
mov dword [esi + 4], eax
mov byte [esi + 8], 0
mov byte [esi + 9], 0
call fcn.0040da90
add esp, 4
jmp 0x40dd37
mov eax, dword [edi]
jmp 0x40dc2c
xor esi, esi
push esi
call fcn.0040da90
add esp, 4
jmp 0x40dd37
push 0xc
call fcn.00419b96
mov esi, eax
add esp, 4
test esi, esi
je 0x40dca1
test edi, edi
jne 0x40dc9d
call fcn.0045d981
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40dc8c
call fcn.0045d981
mov eax, dword [ebx]
mov dword [esi], ebp
mov dword [esi + 4], eax
mov byte [esi + 8], 0
mov byte [esi + 9], 0
jmp 0x40dca3
mov eax, dword [edi]
jmp 0x40dc82
xor esi, esi
push 0
push 0
push esi
push fcn.0040da90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40dd37
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x3c]
call fcn.00411430
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
sub ecx, eax
and ecx, 0xfffffffc
cmp ecx, 0x100
jne 0x40dd37
push 0xffffffffffffffff
push 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov ebp, eax
cmp ecx, eax
jbe 0x40dd0a
call fcn.0045d981
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x38]
mov edi, ecx
cmp ecx, eax
jbe 0x40dd19
call fcn.0045d981
mov edx, dword [esp + 0x38]
push ebp
push esi
push edi
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040fea0
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
test edi, edi
jne 0x40dd54
call fcn.0045d981
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40dd4c
call fcn.0045d981
add ebx, 4
jmp 0x40dbe5
mov eax, dword [edi]
jmp 0x40dd42
xor esi, esi
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x44]
sar eax, 2
cmp eax, esi
je 0x40dd89
ja 0x40dd70
call fcn.0045d981
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
push 0xffffffffffffffff
push 1
sub eax, ecx
push ecx
sar eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x44]
mov byte [0x4b6531], 0
cmp eax, esi
je 0x40dda9
push eax
call fcn.00419bc5
add esp, 4
mov ecx, dword [esp + 0x38]
push ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call fcn.00419bc5
mov eax, dword [esp + 0x60]
add esp, 4
cmp eax, esi
je 0x40ddd3
push eax
call fcn.00419bc5
add esp, 4
mov edx, dword [esp + 0x50]
push edx
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
call fcn.00419bc5
mov eax, dword [esp + 0x78]
add esp, 4
cmp eax, esi
je 0x40ddfd
push eax
call fcn.00419bc5
add esp, 4
mov eax, dword [esp + 0x68]
push eax
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
call fcn.00419bc5
add esp, 4
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret