Function at 0x419ac0
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 0x419ae1
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 0x419afa
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 0x419b10
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 0x419b25
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 0x419b3a
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 0x419b4f
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 0x419b69
mov edi, dword [ebp + 0x28]
test edi, edi
je 0x419b69
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.004233b0
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x419caa
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 0x419bbc
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 0x419ba0
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 0x419bbf
mov dword [esi + 0xc], ebx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x419be9
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 0x419bcd
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 0x419bec
mov dword [esi + 0x10], ebx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x419c16
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 0x419bfa
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 0x419c19
mov dword [esi + 0x14], ebx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x419c43
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 0x419c27
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 0x419c46
mov dword [esi + 0x18], ebx
test byte [ebp + 4], 1
je 0x419c67
mov eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x419c64
mov dword [esi + 0x28], edx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x419c58
jmp 0x419c67
mov dword [esi + 0x28], ebx
lea ecx, [esp + 0x14]
push ecx
push 4
push esi
push 0x419cc0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
je 0x419ca4
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.00423880
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4