Function at 0x1001da30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], 0
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x10]
call fcn.1001dcb0
mov ecx, dword [edi + 0x154]
cmp dword [edi + 0x34], 0
mov dword [ebp + 0x10], eax
je 0x1001da9d
push dword [ebp + 8]
lea ecx, [edi + 0x164]
call fcn.1001ff50
mov ecx, edi
call fcn.1001d3d0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [edi + 0x44], 0
je 0x1001dab3
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [edi + 0x34], 1
cmp eax, ecx
je 0x1001dacb
mov ecx, edi
mov dword [edi + 0x154], eax
call fcn.1001e080
push dword [ebp + 8]
inc dword [edi + 0x38]
lea ecx, [ebp - 0x48]
call fcn.1001f940
mov esi, eax
lea ebx, [edi + 0x164]
cmp ebx, esi
je 0x1001db11
push esi
mov ecx, ebx
call fcn.10020140
lea ecx, [esi + 0xc]
push ecx
lea ecx, [ebx + 0xc]
call fcn.10020140
lea eax, [esi + 0x18]
push eax
lea ecx, [ebx + 0x18]
call fcn.10020140
lea eax, [esi + 0x24]
push eax
lea ecx, [ebx + 0x24]
call fcn.10020140
lea ecx, [ebp - 0x48]
call fcn.1001faa0
mov ecx, edi
call fcn.1001d3d0
mov ecx, edi
call fcn.1001d470
test byte [ebp + 0x10], 4
je 0x1001dc38
push 0x1c
call fcn.1011a4b2
add esp, 4
test eax, eax
je 0x1001db4a
mov ecx, eax
call fcn.1001c510
mov esi, eax
jmp 0x1001db4c
xor esi, esi
test esi, esi
je 0x1001db5c
cmp esi, dword [edi + 0x158]
je 0x1001dc9b
mov ecx, dword [edi + 0x158]
mov dword [edi + 0x158], 0
test ecx, ecx
je 0x1001db77
mov eax, dword [ecx]
push 1
call dword [eax + 4]
sub esp, 8
mov dword [edi + 0x158], esi
mov ecx, esp
call fcn.10021d10
push str.bucket0
push 0x10193954
mov ecx, esi
call fcn.1001c7d0
mov esi, dword [edi + 0x158]
sub esp, 8
mov ecx, esp
call fcn.10021d10
push str.bucket1
push 0x10193958
mov ecx, esi
call fcn.1001c7d0
mov esi, dword [edi + 0x158]
sub esp, 8
mov ecx, esp
call fcn.10021d10
push str.bucket2
push 0x1019395c
mov ecx, esi
call fcn.1001c7d0
mov esi, dword [edi + 0x158]
lea ebx, [edi + 0x15c]
push 8
call fcn.1011a4b2
add esp, 4
mov dword [ebp + 8], eax
test ebx, ebx
setne cl
mov dword [eax], esi
push 0
push 0
push eax
push 0x100232c0
push 0
push 0
mov byte [eax + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1001dc22
push dword [ebp + 8]
call fcn.1011a1ea
add esp, 4
jmp 0x1001dc38
test ebx, ebx
je 0x1001dc31
mov dword [ebx], eax
mov dword [ebx + 4], 0
jmp 0x1001dc38
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 0x48]
mov byte [edi + 0x44], 1
push eax
lea ecx, [ebp - 0x18]
call fcn.100203e0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp - 0x14]
xor esi, esi
sub ebx, dword [ebp - 0x18]
sar ebx, 2
test ebx, ebx
je 0x1001dc70
mov edi, dword [ebp - 0x18]
mov ecx, dword [edi + esi*4]
mov eax, dword [ecx]
call dword [eax]
inc esi
cmp esi, ebx
jb 0x1001dc61
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov byte [edi + 0x44], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001dc92
push eax
call fcn.1011a1ea
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.1011c09e
int3