Function at 0x1003aad
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x178
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push dword [ebx + 0x14]
xor eax, eax
push 0x3c
push 3
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
call fcn.01004a3e
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x60]
mov eax, dword [ebp + 8]
push dword [ebx + 0x5c]
push dword [ebx + 0x14]
push dword [eax]
lea eax, [ebp - 0xb8]
push eax
call fcn.01007d83
push 0xb
pop ecx
mov esi, eax
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x48]
xor esi, esi
cmp edi, esi
je 0x1003b37
push 0x53
push 7
call fcn.01004a3e
pop ecx
pop ecx
push edi
push 7
call fcn.01003f59
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1003d6e
cmp dword [ebx + 0x70], esi
je 0x1003b4f
cmp dword [ebp - 0x14], esi
jne 0x1003b4f
push 0x7c
push 1
call fcn.01004a3e
pop ecx
pop ecx
mov dword [ebx + 0x70], esi
call fcn.01003361
cmp eax, esi
jle 0x1003b64
and eax, 0xffff
or eax, 0x80070000
cmp eax, esi
jne 0x1003d6e
mov eax, dword [ebx + 0x74]
test eax, eax
mov dword [ebp + 0xc], eax
jle 0x1003bfe
mov edx, dword [ebp + 8]
mov edx, dword [edx + esi*4]
lea eax, [esi + esi*2]
shl eax, 2
lea ecx, [ebp + eax - 0x178]
mov dword [ebp + eax - 0x174], ebx
mov dword [ebp + eax - 0x170], esi
lea eax, [ebp - 0x4c]
push eax
xor eax, eax
push eax
push ecx
push 0x1003684
push eax
push eax
mov dword [ecx], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp + esi*4 - 0x8c], eax
jne 0x1003bdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov dword [ebp - 4], eax
jne 0x1003be7
push 0x83
push 7
call fcn.01004a3e
cmp dword [ebp - 4], esi
pop ecx
pop ecx
jne 0x1003d19
inc esi
cmp esi, dword [ebx + 0x74]
jl 0x1003b78
jmp 0x1003bfe
push esi
push 0x86
push 3
call fcn.01004a3e
add esp, 0xc
and dword [ebp - 4], 0
mov dword [ebp + 0xc], esi
push 0x4e
push 3
call fcn.01004a3e
push 0x100133c
push 0xa
call fcn.01004c0f
add esp, 0x10
call fcn.01004618
cmp dword [0x1011c3c], 0
jne 0x1003cc2
lea eax, [ebp - 8]
push eax
call fcn.01003a59
test eax, eax
jne 0x1003c51
call fcn.010039e5
lea eax, [ebp - 8]
push eax
call fcn.01003a59
test eax, eax
jne 0x1003c51
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1003c1b
mov ebx, dword [ebp - 8]
lea ecx, [ebx + 8]
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ecx
lea eax, [ebp - 0xb8]
push eax
call fcn.010066ea
push 0xb
pop ecx
mov esi, eax
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x48]
test edi, edi
je 0x1003c84
cmp edi, 0x500
jne 0x1003cb4
mov eax, dword [ebp - 0x38]
inc dword [ebp - 0xc]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0xc]
push ebx
mov dword [ebx + 0x18], eax
call fcn.010034c8
cmp edi, 0x500
jne 0x1003c1b
push 1
push 0x1011c38
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1003cc2
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 0x1f
push 1
push 0x1011c38
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x8c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jle 0x1003d19
lea eax, [ebp - 0x1c]
push eax
lea esi, [ebp + ebx*4 - 0x8c]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1003d0b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1003d0b
mov dword [ebp - 0x18], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [ebp + 0xc]
jl 0x1003cea
call fcn.0100355a
call fcn.010039e5
cmp dword [ebp - 0x10], 0
je 0x1003d6e
push edi
push 7
pop esi
push esi
call fcn.01003f59
cmp dword [ebp - 0x40], 0
mov dword [ebp - 4], eax
je 0x1003d46
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push 0x74
jmp 0x1003d50
movzx eax, word [ebp - 0x44]
push eax
push dword [ebp - 0x3c]
push 0x57
push esi
call fcn.01004a3e
add esp, 0x10
cmp edi, 0x601
jne 0x1003d6e
push 0x88
push esi
call fcn.01004a3e
pop ecx
pop ecx
mov eax, dword [0x1011c40]
cmp eax, 1
pop edi
pop esi
pop ebx
jne 0x1003d88
push 0x72
push 3
call fcn.01004a3e
pop ecx
pop ecx
jmp 0x1003d95
push eax
push 0x58
push 3
call fcn.01004a3e
add esp, 0xc
call fcn.01007c05
call fcn.01003333
cmp dword [ebp - 0x40], 0
je 0x1003dad
push dword [ebp - 0x40]
call fcn.0100c41a
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1003db7
mov eax, dword [ebp - 0x18]
leave
ret 8