Function at 0x4ddb90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, 0x20
mov dword [ebp - 4], edi
mov ecx, dword [edi + 8]
mov esi, dword [edi + 0x14]
mov dword [edi + 0x38], eax
lea eax, [edi + 0x70]
mov dword [ebp - 8], ecx
nop word [eax + eax]
mov dword [eax + 0x100], 0
lea eax, [eax + 8]
mov dword [eax + 0xfc], 0
mov dword [eax - 8], 0
mov dword [eax - 4], 0
sub edx, 1
jne 0x4ddbc0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x48], edx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x40], edx
mov dword [edi + 0x44], edx
mov dword [edi + 0x50], esi
mov dword [edi + 0x54], edx
mov dword [ebp - 0x10], edx
test ecx, ecx
je 0x4ddea6
lea esi, [edi + 0x27c]
mov edx, dword [esi]
test edx, edx
je 0x4ddc23
mov ecx, dword [esi - 0xc]
mov eax, dword [esi + 4]
cmp eax, dword [ecx]
je 0x4ddc4e
mov eax, dword [esi - 0xc]
push edx
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi - 0xc]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov eax, dword [eax + 0x18]
push ecx
push eax
mov eax, dword [eax]
call eax
add esp, 0x10
mov dword [esi], eax
test eax, eax
je 0x4dde9a
mov edx, dword [esi - 8]
test edx, edx
je 0x4ddc60
mov ecx, dword [esi - 0xc]
mov eax, dword [esi - 4]
cmp eax, dword [ecx + 4]
je 0x4ddc8d
mov eax, dword [esi - 0xc]
push edx
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi - 0xc]
mov ecx, dword [eax + 4]
mov dword [esi - 4], ecx
mov eax, dword [eax + 0x18]
push ecx
push eax
mov eax, dword [eax]
call eax
add esp, 0x10
mov dword [esi - 8], eax
test eax, eax
je 0x4dde9a
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call edi
mov dword [esi + 0x30], eax
test eax, eax
jne 0x4ddcc6
call ebx
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x4dde6c
push 0
push 0
push 0
push 0
call edi
mov dword [esi + 0x34], eax
test eax, eax
jne 0x4ddceb
call ebx
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x4dde6c
mov eax, dword [ebp - 0x10]
add esi, 0x44
mov edi, dword [ebp - 8]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, edi
jb 0x4ddc13
mov esi, dword [ebp - 4]
add esi, 0x29c
mov dword [ebp - 0x10], 0
cmp dword [esi - 0x14], 0
jne 0x4dddb5
push 0
push 0
push 0
lea eax, [esi - 0x2c]
mov dword [esi - 4], 0x4dd970
push 0
mov dword [esi], eax
mov dword [esi - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi - 0x10], eax
test eax, eax
jne 0x4ddd56
call ebx
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x4dde78
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi - 0xc], eax
test eax, eax
jne 0x4ddd7f
call ebx
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x4dde78
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [esi - 0x14]
push eax
push 0x4dd710
push 0
push 0
call fcn.0050c00d
add esp, 0x18
mov dword [esi - 0x14], eax
test eax, eax
jne 0x4dddb5
call ebx
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x4dde78
mov eax, dword [ebp - 0x10]
add esi, 0x44
inc eax
mov dword [ebp - 0x10], eax
cmp eax, edi
jb 0x4ddd10
mov edi, dword [ebp - 4]
add edi, 0x28c
xor esi, esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4dddf2
call ebx
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x4dde81
inc esi
add edi, 0x44
cmp esi, dword [ebp - 8]
jb 0x4dddd2
mov edi, dword [ebp - 4]
push dword [edi + 0x2b0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4dde10
call ebx
push dword [edi + 0x2ac]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4dde22
call ebx
test esi, esi
je 0x4dde42
add edi, 0x290
nop dword [eax]
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edi, [edi + 0x44]
sub esi, 1
jne 0x4dde30
mov edi, dword [ebp - 8]
test edi, edi
je 0x4ddedb
mov esi, dword [ebp - 4]
add esi, 0x2b0
mov eax, dword [esi - 4]
test eax, eax
je 0x4ddead
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4ddead
call ebx
jmp 0x4ddeb4
pop edi
pop esi
mov eax, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xc], 0xc
jmp 0x4dde4d
mov edi, dword [ebp - 4]
mov dword [ebp - 0xc], 0xc
mov dword [edi + 0x2a4], 1
jmp 0x4dddfe
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x4dddfe
mov dword [esi - 4], 0
mov eax, dword [esi]
test eax, eax
je 0x4ddec9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4ddec9
call ebx
jmp 0x4ddecf
mov dword [esi], 0
add esi, 0x44
sub edi, 1
jne 0x4dde56
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4ddee8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret