Function at 0x427100
Capabilities:
Create thread

Disassembly:
mov eax, 0x471fe9
call fcn.0046f99c
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x20
mov dword [esi], 0x490308
call fcn.0044a1a0
mov edi, eax
pop ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x427174
push ebx
push SysReAllocString
push ebx
mov dword [edi], 0x490310
push ebx
mov dword [edi + 4], 0x490304
mov dword [edi + 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [edi + 8], eax
lea esi, [edi + 0xc]
call fcn.00401082
mov byte [ebp - 4], 2
mov dword [edi + 0x18], ebx
call fcn.004280fa
mov esi, dword [ebp + 8]
mov dword [edi + 0x14], eax
mov dword [eax], eax
mov eax, dword [edi + 0x14]
mov dword [eax + 4], eax
jmp 0x427176
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
push edi
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
call fcn.0041d5b0
lea edi, [esi + 0xc]
mov dword [ebp - 4], 3
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
push 8
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00427dbd
mov dword [ebp - 0x10], ebx
push 0x18
call fcn.0044a1a0
mov ebx, eax
pop ecx
mov dword [ebp - 0x1c], ebx
xor esi, esi
cmp ebx, esi
je 0x427221
mov eax, dword [ebp - 0x10]
push esi
push esi
push 1
mov dword [ebx], eax
mov dword [ebx + 4], esi
push esi
mov dword [ebx + 8], 0x490304
mov dword [ebx + 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0xc], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], esi
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
cmp edx, esi
je 0x427223
call fcn.00401038
test al, al
je 0x427223
mov eax, dword [ebx + 0x14]
cmp eax, esi
je 0x427213
mov esi, eax
call fcn.0040105c
xor esi, esi
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x10], eax
jmp 0x427223
xor ebx, ebx
mov byte [ebp - 4], 4
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call fcn.004281af
mov byte [ebp - 4], 7
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x24]
cmp ecx, eax
jae 0x427267
mov ecx, dword [edi]
lea edx, [ebp - 0x24]
cmp ecx, edx
ja 0x427267
mov ebx, edx
sub ebx, ecx
sar ebx, 3
cmp eax, dword [edi + 8]
jne 0x427260
mov ecx, edi
call fcn.00427fff
mov eax, dword [edi]
lea ecx, [eax + ebx*8]
jmp 0x427276
cmp eax, dword [edi + 8]
jne 0x427273
mov ecx, edi
call fcn.00427fff
lea ecx, [ebp - 0x24]
mov eax, dword [edi + 4]
call fcn.00428132
add dword [edi + 4], 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x20], esi
je 0x427295
mov esi, dword [ebp - 0x20]
call fcn.0040105c
xor esi, esi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x10]
push esi
push esi
add ebx, 0xfffffff8
mov eax, dword [ebx]
push ebx
push 0x427631
push esi
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov ebx, dword [ebx]
cmp dword [ebx + 4], esi
je 0x4272fc
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 8
jb 0x4271aa
xor esi, esi
mov eax, dword [edi]
mov eax, dword [esi + eax]
add eax, 8
push eax
or eax, 0xffffffff
call fcn.004129a8
add esi, 8
cmp esi, 0x40
jb 0x4272cf
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0042836c
pop ecx
pop ecx
lea esi, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.00404b2c
push 0x4914a0
mov eax, esi
push eax
call fcn.004535e6
int3