Function at 0x1005aa50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101591b2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x101c0618]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x1005aa97
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebx + 0x10]
lea ecx, [ebx + 0x10]
mov dword [ebp - 0x24], ecx
call dword [eax + 4]
cmp dword [ebx + 4], 0
mov dword [ebp - 4], 0
je 0x1005ac53
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push dword [ebp + 0xc]
push esi
push 0
push 0
call fcn.10120aaa
add esp, 0x18
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1005ac53
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1005aaee
push eax
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.1005a9c0
mov eax, dword [ebx + 8]
add ebx, 8
mov dword [ebp - 0x18], 0
mov esi, dword [eax]
mov dword [ebp - 0x14], esi
cmp esi, eax
je 0x1005ab77
mov edi, dword [esi + 0x14]
test edi, edi
jne 0x1005ab28
lea ecx, [ebp - 0x14]
call fcn.1005a680
push esi
mov ecx, ebx
call fcn.1005af10
push 0x18
push eax
call fcn.100b4158
add esp, 8
jmp 0x1005ab70
lea eax, [ebp - 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1005ab68
cmp dword [ebp - 0x18], 0x103
je 0x1005ab68
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
mov ecx, edi
call fcn.1005a8a0
lea ecx, [ebp - 0x14]
call fcn.1005a680
push esi
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.1005a4d0
jmp 0x1005ab70
lea ecx, [ebp - 0x14]
call fcn.1005a680
mov esi, dword [ebp - 0x14]
cmp esi, dword [ebx]
jne 0x1005ab04
push 0x24
call fcn.1002c7e0
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
test edi, edi
je 0x1005abda
lea ecx, [edi + 4]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov dword [edi], eax
mov eax, dword [ebp + 0x14]
mov byte [ebp - 4], 3
mov dword [edi + 0x1c], eax
test esi, esi
je 0x1005abd1
mov edx, esi
lea eax, [edx + 1]
mov dword [ebp + 0x18], eax
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x1005abc0
sub edx, dword [ebp + 0x18]
push edx
push esi
call fcn.1003b820
mov dword [edi + 0x20], 0
jmp 0x1005abdc
xor edi, edi
mov byte [ebp - 4], 0
test edi, edi
je 0x1005ac42
mov edx, dword [ebx]
mov esi, edx
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1005ac11
mov ecx, dword [ebp - 0x10]
cmp dword [eax + 0x10], ecx
jae 0x1005abfe
mov eax, dword [eax + 8]
jmp 0x1005ac02
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x1005abf4
cmp esi, edx
je 0x1005ac11
cmp ecx, dword [esi + 0x10]
jae 0x1005ac3f
lea eax, [ebp - 0x10]
mov ecx, ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x1017da5c
call fcn.1005a000
push eax
add eax, 0x10
mov ecx, ebx
push eax
push esi
lea eax, [ebp - 0x20]
push eax
call fcn.1005a190
mov esi, dword [ebp - 0x20]
mov dword [esi + 0x14], edi
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1005ac4e
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov ebx, dword [ebp + 0xc]
jmp 0x1005ac55
xor ebx, ebx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 4], 5
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14