Function at 0x1006ad53
Capabilities:
Create thread
Terminate thread

Disassembly:
push 0x1c
mov eax, 0x101838bc
call fcn.10145d80
mov esi, ecx
movzx eax, word [ebp + 0xc]
sub eax, 0x158
je 0x1006af36
dec eax
je 0x1006aee3
sub eax, 4
je 0x1006ae1d
sub eax, 6
jne 0x1006b068
mov eax, dword [esi + 0x5c]
xor ebx, ebx
inc ebx
xor edi, edi
cmp eax, edi
mov dword [esi + 0x50], ebx
je 0x1006add1
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1006adb5
push edi
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x2c]
cmp eax, edi
mov dword [esi + 0x5c], edi
je 0x1006add1
push edi
lea ecx, [eax + 0x24]
call fcn.1006553c
mov ecx, dword [esi + 0x28]
call fcn.1006513f
mov eax, dword [esi + 0x2c]
push edi
push dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
mov ecx, dword [esi + 0x28]
add ecx, 0x184
call fcn.100650ae
push dword [esi + 0x54]
mov ecx, dword [esi + 0x28]
call fcn.10067293
mov eax, dword [esi + 0x48]
mov eax, dword [eax]
mov ecx, dword [esi + 0x28]
mov dword [ecx + 0x1f0], eax
mov eax, dword [esi + 0x28]
push ebx
push dword [eax + 4]
call edi
jmp 0x1006b068
mov eax, dword [esi + 0x5c]
xor edi, edi
cmp eax, edi
je 0x1006ae3d
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1006b068
mov eax, dword [esi + 0x28]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
add eax, 4
push edi
push dword [eax]
call ebx
mov eax, dword [esi + 0x2c]
add eax, 4
push 1
push dword [eax]
call ebx
mov dword [esi + 0x50], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp + 0xc], edi
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x101f84b0
mov byte [ebp - 4], 1
call fcn.100e560e
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x1006aea2
push dword [ebp + 0xc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x1006b068
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1006b068
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push eax
call dword [ecx + 0x34]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
call fcn.10007b11
push eax
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 2
call fcn.10007845
lea ecx, [ebp - 0x28]
call fcn.10003b75
push edi
push edi
push esi
push 0x1006ad37
push edi
push edi
call fcn.10147cdf
add esp, 0x18
mov dword [esi + 0x5c], eax
jmp 0x1006ae7f
mov eax, dword [esi + 0x30]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
xor edi, edi
push edi
push dword [eax + 4]
call ebx
mov ecx, dword [esi + 0x28]
add ecx, 0x184
call fcn.100650ae
push dword [esi + 0x54]
mov ecx, dword [esi + 0x28]
call fcn.10067293
mov eax, dword [esi + 0x48]
mov eax, dword [eax]
mov ecx, dword [esi + 0x28]
mov dword [ecx + 0x1f0], eax
mov eax, dword [esi + 0x28]
push 5
push dword [eax + 4]
call ebx
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x5c], edi
jmp 0x1006b068
mov ebx, dword [esi + 0x54]
xor edi, edi
cmp ebx, edi
jl 0x1006b05d
mov ecx, dword [esi + 0x44]
call fcn.10031235
cmp ebx, eax
jge 0x1006b05d
mov eax, dword [0x101f3028]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 3
mov dword [ebp - 0x18], edi
push 0x101a569e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.1002939e
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x1c], edi
call fcn.1007a762
pop ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
call fcn.100e560e
mov eax, dword [ebp - 0x18]
cmp eax, edi
jne 0x1006afc1
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x18]
cmp eax, edi
mov byte [ebp - 4], 3
je 0x1006afb4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp + 0xc]
call fcn.10003b75
jmp 0x1006b068
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x34]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
call fcn.10007b11
mov eax, dword [0x101f3028]
mov dword [ebp - 0x10], eax
push 0xe2
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.100045b9
push dword [ebp - 0x24]
lea eax, [ebp + 0xc]
push dword [ebp - 0x10]
push eax
call fcn.10004662
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.100a8e6c
push 1
push edi
push edi
push 4
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call fcn.100a8e98
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.100a8e75
lea ecx, [ebp - 0x10]
call fcn.10003b75
lea ecx, [ebp - 0x24]
call fcn.10003b75
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x18]
cmp eax, edi
mov byte [ebp - 4], 3
je 0x1006b055
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp + 0xc]
call fcn.10003b75
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
call fcn.10145e58
ret 0x10