Function at 0x41c040
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 0x41c061
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 0x41c07a
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 0x41c090
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 0x41c0a5
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 0x41c0ba
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 0x41c0cf
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 0x41c0e9
mov edi, dword [ebp + 0x28]
test edi, edi
je 0x41c0e9
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.00426170
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x41c22a
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 0x41c13c
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 0x41c120
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 0x41c13f
mov dword [esi + 0xc], ebx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x41c169
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 0x41c14d
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 0x41c16c
mov dword [esi + 0x10], ebx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x41c196
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 0x41c17a
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 0x41c199
mov dword [esi + 0x14], ebx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x41c1c3
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 0x41c1a7
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 0x41c1c6
mov dword [esi + 0x18], ebx
test byte [ebp + 4], 1
je 0x41c1e7
mov eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x41c1e4
mov dword [esi + 0x28], edx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41c1d8
jmp 0x41c1e7
mov dword [esi + 0x28], ebx
lea ecx, [esp + 0x14]
push ecx
push 4
push esi
push 0x41c240
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
je 0x41c224
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.00426640
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4