Function at 0x41ae90
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
push edi
cmp dword [ebp], 0x3c
je 0x41aeb1
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov ebx, dword [ebp + 4]
test bl, 0x4f
je 0x41aeca
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov edi, dword [ebp + 0xc]
xor edx, edx
test edi, edi
je 0x41aee0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
inc edx
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x41aef5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x41af0a
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x41af1f
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
test bl, 1
je 0x41af39
mov edi, dword [ebp + 0x28]
test edi, edi
je 0x41af39
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
add edx, 0x3c
push edx
call fcn.00424750
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x41b07a
mov eax, dword [ebp]
lea edx, [esi + 0x3c]
mov dword [esi], eax
mov ecx, dword [ebp + 4]
mov dword [esi + 4], ecx
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x41af8c
mov edi, edx
mov dword [esi + 0xc], edx
sub edi, eax
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x41af70
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
jmp 0x41af8f
mov dword [esi + 0xc], ebx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x41afb9
mov edi, edx
mov dword [esi + 0x10], edx
sub edi, eax
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x41af9d
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
jmp 0x41afbc
mov dword [esi + 0x10], ebx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x41afe6
mov edi, edx
mov dword [esi + 0x14], edx
sub edi, eax
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x41afca
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
jmp 0x41afe9
mov dword [esi + 0x14], ebx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x41b013
mov edi, edx
mov dword [esi + 0x18], edx
sub edi, eax
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x41aff7
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
jmp 0x41b016
mov dword [esi + 0x18], ebx
test byte [ebp + 4], 1
je 0x41b037
mov eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x41b034
mov dword [esi + 0x28], edx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41b028
jmp 0x41b037
mov dword [esi + 0x28], ebx
lea ecx, [esp + 0x14]
push ecx
push 4
push esi
push 0x41b090
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
je 0x41b074
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
push esi
call fcn.00424c20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4