Function at 0x1004e422
Capabilities:
Create thread
Terminate thread

Disassembly:
push 0x1c
mov eax, 0x1013bf2d
call fcn.101018b2
mov esi, ecx
movzx eax, word [ebp + 0xc]
sub eax, 0x158
je 0x1004e605
dec eax
je 0x1004e5b2
sub eax, 4
je 0x1004e4ec
sub eax, 6
jne 0x1004e737
mov eax, dword [esi + 0x5c]
xor ebx, ebx
inc ebx
xor edi, edi
cmp eax, edi
mov dword [esi + 0x50], ebx
je 0x1004e4a0
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1004e484
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 0x1004e4a0
push edi
lea ecx, [eax + 0x24]
call fcn.10048938
mov ecx, dword [esi + 0x28]
call fcn.1004853b
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.100484aa
push dword [esi + 0x54]
mov ecx, dword [esi + 0x28]
call fcn.1004a946
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 0x1004e737
mov eax, dword [esi + 0x5c]
xor edi, edi
cmp eax, edi
je 0x1004e50c
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1004e737
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, 0x1019e6e0
mov byte [ebp - 4], 1
call fcn.100addc2
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x1004e571
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 0x1004e737
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1004e737
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.1000587e
push eax
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 2
call fcn.10005459
lea ecx, [ebp - 0x28]
call fcn.100015d9
push edi
push edi
push esi
push 0x1004e406
push edi
push edi
call fcn.1010370a
add esp, 0x18
mov dword [esi + 0x5c], eax
jmp 0x1004e54e
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.100484aa
push dword [esi + 0x54]
mov ecx, dword [esi + 0x28]
call fcn.1004a946
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 0x1004e737
mov ebx, dword [esi + 0x54]
xor edi, edi
cmp ebx, edi
jl 0x1004e72c
mov ecx, dword [esi + 0x44]
call fcn.1001fd50
cmp ebx, eax
jge 0x1004e72c
mov eax, dword [0x1019a028]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 3
mov dword [ebp - 0x18], edi
push 0x10157f4e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.100164bd
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x1c], edi
call fcn.1005d061
pop ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
call fcn.100addc2
mov eax, dword [ebp - 0x18]
cmp eax, edi
jne 0x1004e690
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 0x1004e683
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp + 0xc]
call fcn.100015d9
jmp 0x1004e737
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.1000587e
mov eax, dword [0x1019a028]
mov dword [ebp - 0x10], eax
push 0xe2
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.1000201d
push dword [ebp - 0x24]
lea eax, [ebp + 0xc]
push dword [ebp - 0x10]
push eax
call fcn.100020c6
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.10086249
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.10086275
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.10086252
lea ecx, [ebp - 0x10]
call fcn.100015d9
lea ecx, [ebp - 0x24]
call fcn.100015d9
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 0x1004e724
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp + 0xc]
call fcn.100015d9
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
call fcn.1010198a
ret 0x10