Function at 0x47ce7f
Capabilities:
Create thread

Disassembly:
push 0x68
mov eax, 0x50a4b3
call fcn.004d0cf3
mov edi, ecx
mov dword [ebp - 0x20], edi
call fcn.00406cde
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0x28
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x47ceb9
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0044369a
lea esi, [edi + 0x18]
xor ebx, ebx
mov eax, dword [esi + 4]
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x47cf1d
push ebx
mov ecx, esi
call fcn.00405e15
cmp dword [eax], 0x14
je 0x47cedd
inc ebx
cmp ebx, dword [ebp - 0x28]
jl 0x47cec8
jmp 0x47cf1d
test ebx, ebx
js 0x47cf1d
cmp ebx, dword [esi + 4]
jge 0x47cf1d
mov ecx, dword [esi]
mov eax, ebx
shl eax, 3
add ecx, eax
call fcn.0042c7fb
mov edx, dword [esi + 4]
lea eax, [edx - 1]
cmp ebx, eax
je 0x47cf1a
mov eax, dword [esi]
sub edx, ebx
shl edx, 3
lea ecx, [eax + ebx*8]
lea eax, [edx - 8]
push eax
lea eax, [ecx + 8]
push eax
push edx
push ecx
call fcn.004214a7
add esp, 0x10
dec dword [esi + 4]
call fcn.00406cde
push eax
lea ecx, [ebp - 0x28]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
push eax
push 0x15
mov ecx, esi
call fcn.00489e7b
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx - 0xc], 0
je 0x47d023
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [edi + 0x88]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.0047e427
mov ebx, dword [ebp - 0x1c]
test al, al
jne 0x47cf83
or edi, 0xffffffff
jmp 0x47d365
mov ecx, ebx
call fcn.0048f50d
test al, al
jne 0x47d013
call fcn.00406cde
push eax
lea ecx, [ebp + 8]
call fcn.00406b09
or edi, 0xffffffff
mov dword [ebp - 4], edi
lea eax, [ebp + 8]
push ebx
push 0xf7
push eax
call fcn.004801b2
mov esi, dword [ebp + 8]
add esp, 0xc
cmp byte [0x5706cc], 0
je 0x47cffe
call fcn.00406cde
push eax
lea ecx, [ebp + 0xc]
call fcn.00406b09
mov dword [ebp - 4], edi
test esi, esi
je 0x47cfe2
push esi
lea ecx, [ebp + 0xc]
call fcn.004072a1
lea eax, [ebp + 0xc]
mov ecx, 0x57069c
push eax
call fcn.0048a377
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
mov dl, 1
lea ecx, [ebp + 8]
call fcn.0048b036
mov dword [ebp - 4], edi
lea ecx, [esi - 0x10]
jmp 0x47d2c2
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.0047edf8
jmp 0x47d362
mov ecx, dword [ebp + 0xc]
call fcn.004807eb
test al, al
jne 0x47d041
test byte [edi + 0x6c], 1
je 0x47d03b
test byte [edi + 0x6c], 0x48
je 0x47d041
mov byte [ebp - 0xd], 1
jmp 0x47d045
mov byte [ebp - 0xd], 0
call fcn.00406cde
push eax
lea ecx, [ebp - 0x18]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
mov ecx, esi
push 0x13
call fcn.00489ee9
test eax, eax
je 0x47d070
add eax, 4
lea ecx, [ebp - 0x18]
push eax
call fcn.0044369a
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
call fcn.00406cde
push eax
lea ecx, [ebp - 0x24]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0xd], 0
je 0x47d139
test dword [edi + 0x6c], 0x1000
je 0x47d104
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jne 0x47d104
lea ecx, [ebp - 0x70]
call fcn.00421811
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x70], 0x5348e8
call fcn.00406df5
lea ecx, [ebp - 0x4c]
call fcn.00406df5
push 0
lea ecx, [edi + 0x16c]
mov byte [ebp - 0x48], 0
call fcn.0048516f
push eax
lea ecx, [ebp - 0x4c]
call fcn.0044369a
lea ecx, [ebp - 0x70]
call fcn.00494779
cmp byte [ebp - 0x48], 0
jne 0x47d0fc
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x18]
call fcn.0044369a
lea ecx, [ebp - 0x70]
call fcn.0049464f
lea eax, [ebp - 0x44]
push eax
lea ecx, [edi + 0x16c]
call fcn.00485340
mov esi, eax
lea edi, [ebp - 0x38]
push 0x8d
lea ecx, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00409267
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x24]
push esi
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, dword [ebp - 0x20]
jmp 0x47d13c
mov esi, dword [ebp - 0x24]
lea ecx, [edi + 0x178]
call fcn.00484ff8
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x120]
call fcn.0044369a
call fcn.00406cde
push eax
lea ecx, [ebp - 0x14]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x38]
push 0
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0x28]
call fcn.00481c78
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x104]
cmp dword [eax - 0xc], 0
jne 0x47d1d9
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea ecx, [edi + 0x1d4]
call fcn.00422d68
lea eax, [ebp - 0x2c]
push eax
xor eax, eax
push eax
push dword [ebp - 0x20]
push 0x47d37b
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x20]
push eax
lea ecx, [ecx + 0x1cc]
call fcn.00422d68
push 0xffffffffffffffff
push dword [edi + 0x1d4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp - 0x20]
lea ecx, [edi + 0x16c]
call fcn.00485394
cmp dword [ebp - 0x28], 0
je 0x47d235
mov ecx, 0x5706d4
call fcn.0048d5c2
lea eax, [edi + 0xfc]
push eax
lea ecx, [ebp + 0xc]
call fcn.004073ac
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp - 0x28]
call fcn.0047ef81
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
cmp byte [edi + 0x1c1], 0
jne 0x47d230
and dword [edi + 0xb8], 0
mov edi, dword [ebp - 0x28]
jmp 0x47d29d
push 4
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
call fcn.00445339
push 0x524494
mov ecx, eax
call fcn.004453c8
neg eax
sbb al, al
inc al
mov dword [ebp - 0x20], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00406dd3
cmp byte [ebp - 0x20], 0
je 0x47d27b
push 4
push 0
lea ecx, [ebp - 0x14]
call fcn.00472880
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
mov ecx, edi
push dword [ebp + 0xc]
push eax
lea eax, [edi + 0x88]
push eax
push dword [ebp + 8]
call fcn.0047e427
test al, al
jne 0x47d2cc
or edi, 0xffffffff
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
jmp 0x47d365
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
call fcn.0047edf8
test eax, eax
jne 0x47d318
mov eax, dword [edi + 0x10]
test eax, eax
je 0x47d2f2
cmp eax, 0x669
je 0x47d2f2
cmp eax, 0xbc2
jne 0x47d318
mov eax, dword [edi + 0x1c4]
cmp dword [eax - 0xc], 0
je 0x47d32b
push eax
call dword [sym.imp.msi.dll_MsiRecordGetStringA]
cmp eax, 5
setne al
test al, al
je 0x47d32b
and dword [edi + 0xb8], 0
jmp 0x47d32b
cmp byte [edi + 0x1c1], 0
jne 0x47d32b
mov dword [edi + 0xb8], 4
cmp dword [edi + 0x10], 0x642
jne 0x47d338
or dword [edi + 0x10], 0xffffffff
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
mov edi, dword [edi + 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebx - 0x10]
call fcn.00406dd3
mov eax, edi
call fcn.004d0cbc
ret 0xc