Function at 0x41b540
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 0x41b561
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 0x41b57a
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 0x41b590
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 0x41b5a5
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 0x41b5ba
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 0x41b5cf
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 0x41b5e9
mov edi, dword [ebp + 0x28]
test edi, edi
je 0x41b5e9
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.00424e40
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x41b72a
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 0x41b63c
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 0x41b620
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 0x41b63f
mov dword [esi + 0xc], ebx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x41b669
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 0x41b64d
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 0x41b66c
mov dword [esi + 0x10], ebx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x41b696
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 0x41b67a
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 0x41b699
mov dword [esi + 0x14], ebx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x41b6c3
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 0x41b6a7
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 0x41b6c6
mov dword [esi + 0x18], ebx
test byte [ebp + 4], 1
je 0x41b6e7
mov eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x41b6e4
mov dword [esi + 0x28], edx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41b6d8
jmp 0x41b6e7
mov dword [esi + 0x28], ebx
lea ecx, [esp + 0x14]
push ecx
push 4
push esi
push 0x41b740
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
je 0x41b724
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.00425310
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4