Function at 0x41da70
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 0x41da91
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 0x41daaa
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 0x41dac0
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 0x41dad5
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 0x41daea
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 0x41daff
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 0x41db19
mov edi, dword [ebp + 0x28]
test edi, edi
je 0x41db19
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.00427860
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x41dc5a
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 0x41db6c
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 0x41db50
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 0x41db6f
mov dword [esi + 0xc], ebx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x41db99
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 0x41db7d
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 0x41db9c
mov dword [esi + 0x10], ebx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x41dbc6
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 0x41dbaa
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 0x41dbc9
mov dword [esi + 0x14], ebx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x41dbf3
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 0x41dbd7
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 0x41dbf6
mov dword [esi + 0x18], ebx
test byte [ebp + 4], 1
je 0x41dc17
mov eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x41dc14
mov dword [esi + 0x28], edx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41dc08
jmp 0x41dc17
mov dword [esi + 0x28], ebx
lea ecx, [esp + 0x14]
push ecx
push 4
push esi
push 0x41dc70
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
je 0x41dc54
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.00427d30
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4