Function at 0x10003980
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100535f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1005f004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x18
push 8
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 0x14], ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100039d0
sub ecx, edx
lea esi, [ecx + 1]
push esi
call fcn.10010ed5
add esp, 4
mov dword [ebx], eax
push esi
push 0
push eax
call fcn.10012c40
mov ecx, dword [ebp + 0xc]
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003a00
sub ecx, edx
lea esi, [ecx + 1]
push esi
call fcn.10010ed5
add esp, 4
mov dword [ebx + 4], eax
push esi
push 0
push eax
call fcn.10012c40
mov ecx, dword [ebp + 0x18]
add esp, 0xc
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003a30
sub ecx, edx
lea esi, [ecx + 1]
push esi
call fcn.10010ed5
add esp, 4
mov dword [ebx + 0x10], eax
push esi
push 0
push eax
call fcn.10012c40
add esp, 0xc
push ebp
mov ebp, 0xabbdd1e7
sub ebp, ebx
nop
pop ebp
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x10003ab0
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003a70
sub ecx, edx
lea edi, [ecx + 1]
push edi
call fcn.10010ed5
mov ebx, dword [ebp - 0x14]
add esp, 4
push edi
push 0
push eax
mov dword [ebx + 0xc], eax
call fcn.10012c40
mov ecx, dword [ebx + 0xc]
add esp, 0xc
nop word [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x10003aa0
jmp 0x10003aba
mov ebx, dword [ebp - 0x14]
mov dword [ebx + 0xc], 0
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10003b00
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003ac6
sub ecx, edx
lea edi, [ecx + 1]
push edi
call fcn.10010ed5
add esp, 4
mov dword [ebx + 8], eax
push edi
push 0
push eax
call fcn.10012c40
mov ecx, dword [ebx + 8]
add esp, 0xc
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x10003af0
jmp 0x10003b07
mov dword [ebx + 8], 0
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x10003b50
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003b13
sub ecx, edx
lea edi, [ecx + 1]
push edi
call fcn.10010ed5
add esp, 4
mov dword [ebx + 0x14], eax
push edi
push 0
push eax
call fcn.10012c40
mov ecx, dword [ebx + 0x14]
add esp, 0xc
nop word [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x10003b40
jmp 0x10003b57
mov dword [ebx + 0x14], 0
push ebp
mov ebp, 0x78828e1c
sbb ebp, eax
sbb ebp, edx
add ebp, esp
or ebp, edi
nop
pop ebp
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov ecx, dword [ebx]
nop
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x10003b70
mov ecx, dword [ebx + 4]
mov edx, dword [ebp + 0xc]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x10003b84
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebp + 0x18]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x10003b98
call fcn.1001c67b
cmp eax, 0xffffffff
jge 0x10003bbc
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
push eax
mov eax, 0x6daced31
add eax, esi
xor eax, esp
nop
pop eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push dword [ebp - 0x14]
push 0x100043a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20