Function at 0x417757
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov esi, edx
push edi
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x418], ecx
cmp eax, ebx
jne 0x417792
xor eax, eax
inc eax
jmp 0x417a6a
lea ecx, [ebp - 0x410]
push ecx
push eax
mov dword [ebp - 0x410], ebx
call fcn.004032e3
xor eax, eax
pop ecx
inc eax
pop ecx
cmp dword [ebp - 0x410], ebx
je 0x417a6a
cmp dword [esi + 0x24], eax
je 0x417a6a
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x78], eax
cmp dword [esi + 0x70], ebx
jne 0x4177d3
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x68], eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x41782f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x410], eax
cmp dword [0x4c5da8], ebx
jne 0x4177fa
mov dword [0x4c5da8], ebx
lea eax, [esi + 0x20]
push eax
mov ecx, 0x4c5d78
call fcn.0040c8fb
push ebx
movzx eax, ax
push eax
push ebx
push ebx
push 0x56000000
push ebx
xor eax, eax
push eax
push dword [ebp - 0x410]
mov ecx, esi
call fcn.0040e52e
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, esi
call fcn.00417afa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
xor eax, eax
push 0x3fe
mov word [ebp - 0x408], ax
lea eax, [ebp - 0x406]
push ebx
push eax
call fcn.004766d0
add esp, 0xc
push dword [ebp - 0x418]
lea eax, [ebp - 0x408]
push dword [esi + 0x68]
push edi
push str._InstallerIPCListenerProcessID_d__InstallerIPCListenerPort_d__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push dword [ebp - 0x40c]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, ebx
je 0x417892
push eax
call fcn.0040f163
pop ecx
lea eax, [ebp - 0x410]
push eax
push 1
push 0x4b31c8
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x40c]
mov dword [ebp - 0x410], ebx
call fcn.0040ed99
mov edi, dword [ebp - 0x410]
add esp, 0x14
cmp edi, ebx
jne 0x4178d4
call fcn.00417ad7
mov eax, 0x80004005
jmp 0x417a6a
cmp byte [ebp + 0x14], bl
jne 0x4179af
lea edi, [esi + 0x28]
mov ebx, dword [edi + 0xc]
lea esi, [ebp - 0x41c]
mov dword [ebp - 0x40c], edi
call fcn.00419a80
jmp 0x41791b
lea esi, [ebp - 0x41c]
call fcn.00412040
mov edx, dword [ebp - 0x420]
mov ecx, dword [eax]
push dword [edx + 0x78]
mov eax, dword [ecx]
call dword [eax]
call fcn.00412068
mov edi, dword [ebp - 0x40c]
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x414]
call fcn.00419a80
mov edi, esi
lea esi, [ebp - 0x41c]
call fcn.00417ed7
test al, al
jne 0x4178f6
mov esi, dword [ebp - 0x420]
mov eax, dword [esi + 0x78]
mov dword [ebp - 0x418], eax
call fcn.00417ad7
mov edi, dword [ebp - 0x40c]
mov ebx, dword [edi + 0xc]
lea esi, [ebp - 0x414]
call fcn.00419a80
jmp 0x41798b
lea esi, [ebp - 0x414]
call fcn.00412040
push dword [ebp - 0x418]
mov ecx, dword [eax]
mov eax, dword [ecx]
push 0x64
push 0
call dword [eax + 0xc]
call fcn.00412068
mov edi, dword [ebp - 0x40c]
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x424]
call fcn.00419a80
mov edi, esi
lea esi, [ebp - 0x414]
call fcn.00417ed7
test al, al
jne 0x417964
jmp 0x417a68
cmp dword [esi + 0x74], ebx
jne 0x4179c3
push ebx
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x74], eax
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp - 0x40c]
lea ecx, [esi + 0x48]
mov dword [esi + 0x40], edi
call fcn.00401a3e
mov ebx, dword [esi + 0x34]
add esi, 0x28
mov edi, esi
mov dword [ebp - 0x40c], esi
lea esi, [ebp - 0x41c]
call fcn.00419a80
jmp 0x417a1d
lea esi, [ebp - 0x41c]
call fcn.00412040
mov edx, dword [ebp - 0x420]
mov ecx, dword [eax]
push dword [edx + 0x78]
mov eax, dword [ecx]
call dword [eax]
call fcn.00412068
mov edi, dword [ebp - 0x40c]
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x414]
call fcn.00419a80
mov edi, esi
lea esi, [ebp - 0x41c]
call fcn.00417ed7
test al, al
jne 0x4179f8
xor eax, eax
lea ecx, [ebp - 0x428]
push ecx
push eax
push dword [ebp - 0x420]
mov dword [ebp - 0x428], eax
push 0x417a7b
push eax
push eax
call fcn.00477955
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047674a
leave
ret 0x10