Function at 0x10381560
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov edx, ecx
mov dword [ebp - 4], edx
push ebx
push esi
mov dword [edx + 0xa4], 0
lea ebx, [edx + 0x14]
mov dword [edx + 0x90], 0
mov dword [edx + 0x94], 0
push edi
test eax, eax
je 0x10381610
mov esi, eax
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x103815a0
sub esi, ecx
lea edi, [esi + 1]
cmp edi, 2
jb 0x10381610
test edi, edi
mov ecx, 1
mov eax, edi
cmove eax, ecx
mov ecx, ebx
push eax
call fcn.10353240
test al, al
je 0x103815f0
mov ecx, dword [ebx + 4]
lea eax, [ecx - 1]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [ebp + 0xc]
push dword [ebx]
call fcn.103ce0b0
xor eax, eax
add esp, 0xc
test edi, edi
cmove esi, eax
mov eax, dword [ebx]
mov byte [esi + eax], 0
mov edx, dword [ebp - 4]
xor ecx, ecx
mov eax, dword [ebx + 4]
test eax, eax
je 0x10381628
dec eax
cmp ecx, eax
jae 0x10381628
mov eax, dword [ebx]
cmp byte [ecx + eax], 0x5c
jne 0x1038160d
mov byte [ecx + eax], 0x2f
inc ecx
jmp 0x103815f5
mov eax, dword [ebx]
test eax, eax
je 0x103815f3
cmp dword [ebx + 4], 1
jbe 0x103815f3
mov byte [eax], 0
mov dword [ebx + 4], 1
jmp 0x103815f3
mov ebx, dword [ebp + 8]
lea edi, [edx + 0x2c]
test ebx, ebx
je 0x103816ab
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10381637
sub esi, ecx
lea ecx, [esi + 1]
cmp ecx, 2
jb 0x103816ab
mov eax, ecx
test ecx, ecx
mov ecx, 1
cmove eax, ecx
mov ecx, edi
push eax
call fcn.10353240
test al, al
je 0x10381687
mov ecx, dword [edi + 4]
lea eax, [ecx - 1]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push ebx
push dword [edi]
call fcn.103ce0b0
lea eax, [esi + 1]
xor ecx, ecx
add esp, 0xc
test eax, eax
mov eax, dword [edi]
cmove esi, ecx
mov byte [esi + eax], cl
mov edx, dword [ebp - 4]
xor ecx, ecx
nop dword [eax]
mov eax, dword [edi + 4]
test eax, eax
je 0x103816c3
dec eax
cmp ecx, eax
jae 0x103816c3
mov eax, dword [edi]
cmp byte [eax + ecx], 0x5c
jne 0x103816a8
mov byte [eax + ecx], 0x2f
inc ecx
jmp 0x10381690
mov eax, dword [edi]
test eax, eax
je 0x1038168a
cmp dword [edi + 4], 1
jbe 0x1038168a
mov byte [eax], 0
mov dword [edi + 4], 1
jmp 0x1038168a
mov eax, dword [ebp + 0x10]
lea esi, [edx + 0x20]
test eax, eax
je 0x1038174b
mov ebx, eax
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x103816d2
sub ebx, ecx
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x1038174b
mov eax, ecx
test ecx, ecx
mov ecx, 1
cmove eax, ecx
mov ecx, esi
push eax
call fcn.10353240
test al, al
je 0x10381724
mov ecx, dword [esi + 4]
lea eax, [ecx - 1]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [ebp + 0x10]
push dword [esi]
call fcn.103ce0b0
lea eax, [ebx + 1]
xor ecx, ecx
add esp, 0xc
test eax, eax
mov eax, dword [esi]
cmove ebx, ecx
mov byte [ebx + eax], cl
mov edx, dword [ebp - 4]
xor ecx, ecx
nop dword [eax]
mov eax, dword [esi + 4]
test eax, eax
je 0x10381763
dec eax
cmp ecx, eax
jae 0x10381763
mov eax, dword [esi]
cmp byte [ecx + eax], 0x5c
jne 0x10381748
mov byte [ecx + eax], 0x2f
inc ecx
jmp 0x10381730
mov eax, dword [esi]
test eax, eax
je 0x10381727
cmp dword [esi + 4], 1
jbe 0x10381727
mov byte [eax], 0
mov dword [esi + 4], 1
jmp 0x10381727
mov ecx, dword [edx + 0x18]
lea ebx, [edx + 0x14]
test ecx, ecx
je 0x10381772
lea edx, [ecx - 1]
jmp 0x10381775
or edx, 0xffffffff
mov dword [ebp + 0xc], edx
lea eax, [ecx - 1]
mov edx, dword [ebx]
add eax, edx
test ecx, ecx
cmove eax, edx
cmp byte [eax - 1], 0x2f
je 0x103817d9
mov eax, dword [ebp + 0xc]
test ecx, ecx
mov dword [ebp + 0x10], 0
cmove eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
add eax, 1
mov dword [ebp + 0x10], eax
jne 0x103817ba
test edx, edx
je 0x103817d0
cmp ecx, 1
jbe 0x103817d0
mov byte [edx], 0
mov dword [ebx + 4], 1
jmp 0x103817d0
inc eax
mov ecx, ebx
push eax
call fcn.10353240
test al, al
je 0x103817d0
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x10]
mov byte [ecx + eax], 0
mov eax, dword [ebx]
mov edx, dword [ebp + 0xc]
mov byte [edx + eax], 0x2f
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x103817e5
lea edx, [ecx - 1]
jmp 0x103817e8
or edx, 0xffffffff
mov dword [ebp + 0xc], edx
lea eax, [ecx - 1]
mov edx, dword [edi]
add eax, edx
test ecx, ecx
cmove eax, edx
cmp byte [eax - 1], 0x2f
je 0x1038184c
mov eax, dword [ebp + 0xc]
test ecx, ecx
mov dword [ebp + 0x10], 0
cmove eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
add eax, 1
mov dword [ebp + 0x10], eax
jne 0x1038182d
test edx, edx
je 0x10381843
cmp ecx, 1
jbe 0x10381843
mov byte [edx], 0
mov dword [edi + 4], 1
jmp 0x10381843
inc eax
mov ecx, edi
push eax
call fcn.10353240
test al, al
je 0x10381843
mov eax, dword [edi]
mov ecx, dword [ebp + 0x10]
mov byte [ecx + eax], 0
mov eax, dword [edi]
mov edx, dword [ebp + 0xc]
mov byte [edx + eax], 0x2f
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10381858
lea edx, [ecx - 1]
jmp 0x1038185b
or edx, 0xffffffff
mov dword [ebp + 0xc], edx
lea eax, [ecx - 1]
mov edx, dword [esi]
add eax, edx
test ecx, ecx
cmove eax, edx
cmp byte [eax - 1], 0x2f
je 0x103818bf
mov eax, dword [ebp + 0xc]
test ecx, ecx
mov dword [ebp + 0x10], 0
cmove eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
add eax, 1
mov dword [ebp + 0x10], eax
jne 0x103818a0
test edx, edx
je 0x103818b6
cmp ecx, 1
jbe 0x103818b6
mov byte [edx], 0
mov dword [esi + 4], 1
jmp 0x103818b6
inc eax
mov ecx, esi
push eax
call fcn.10353240
test al, al
je 0x103818b6
mov eax, dword [esi]
mov ecx, dword [ebp + 0x10]
mov byte [ecx + eax], 0
mov eax, dword [esi]
mov edx, dword [ebp + 0xc]
mov byte [edx + eax], 0x2f
mov ecx, dword [edi]
mov dl, 1
call fcn.103658d0
mov ecx, dword [ebx]
mov dl, 1
call fcn.103658d0
mov edi, dword [ebp - 4]
push 1
lea ecx, [edi + 0x38]
call fcn.103938d0
lea esi, [edi + 0x6c]
lea eax, [esi + 0x10]
mov dword [esi + 0xc], 0x10381930
push eax
push 0
push esi
push 0x10367840
push 0
push 0
mov dword [esi], edi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 0x14], eax
test eax, eax
pop edi
setne cl
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10