Function at 0x1019c2f
Capabilities:
Create thread
Reference absolute stream path on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
push 4
mov dword [eax], esi
mov eax, dword [ebp + 8]
xor ecx, ecx
pop ebx
mov edx, ebx
mul edx
seto cl
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
neg ecx
or ecx, eax
push ecx
call fcn.0102af97
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x1019cae
mov eax, dword [0x102e010]
cmp eax, 0x102e010
je 0x1019ca4
test byte [eax + 0x9c], bl
je 0x1019ca4
cmp byte [eax + 0x99], 2
jb 0x1019ca4
push 0x1001b34
push 0x46
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010165d0
mov eax, 0x8007000e
jmp 0x1019e71
mov ecx, dword [ebp + 8]
push edi
shl ecx, 2
push ecx
push esi
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [0x102e5b0]
mov eax, dword [ecx]
add esp, 0xc
push esi
push ebx
push esi
lea edx, [ebp - 8]
push edx
call dword [eax + 0x18]
mov edi, eax
cmp edi, esi
jge 0x1019d3f
mov eax, dword [0x102e010]
cmp eax, 0x102e010
je 0x1019d0e
test byte [eax + 0x9c], bl
je 0x1019d0e
cmp byte [eax + 0x99], 2
jb 0x1019d0e
push edi
push 0x1001b34
push 0x47
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010164b8
or edi, 0x10000000
cmp dword [ebp - 8], esi
mov dword [ebp - 4], edi
sete al
movzx eax, al
push eax
push 0x1003534
push esi
push esi
push esi
push 0x1003468
push dword [0x102e5ac]
push ebx
call fcn.0102c428
jmp 0x1019e23
xor ebx, ebx
cmp dword [ebp + 8], esi
jbe 0x1019e28
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0xc]
mov edi, eax
cmp edi, esi
jl 0x1019d83
push esi
push esi
push dword [ebp - 0x10]
push 0x10186dd
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + ebx*4], eax
cmp eax, esi
je 0x1019dc8
inc ebx
cmp ebx, dword [ebp + 8]
jb 0x1019d4a
jmp 0x1019e28
mov eax, dword [0x102e010]
cmp eax, 0x102e010
je 0x1019dbd
test dword [eax + 0x9c], 0x4000
je 0x1019dbd
cmp byte [eax + 0x99], 2
jb 0x1019dbd
push edi
push 0x1001b34
push 0x48
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010164b8
or edi, 0x10000000
mov dword [ebp - 4], edi
jmp 0x1019e23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1019ddc
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x102e010]
cmp eax, 0x102e010
je 0x1019e1b
test dword [eax + 0x9c], 0x4000
je 0x1019e1b
cmp byte [eax + 0x99], 2
jb 0x1019e1b
push dword [ebp - 4]
push 0x1001b34
push 0x49
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010164b8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 4], esi
jl 0x1019e3a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x1019e6d
xor edi, edi
cmp dword [ebp + 8], esi
jbe 0x1019e58
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edi*4]
cmp eax, esi
je 0x1019e52
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp + 8]
jb 0x1019e41
push dword [ebp - 0xc]
call fcn.0102afb2
pop ecx
mov ecx, dword [ebp - 8]
cmp ecx, esi
je 0x1019e6d
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc