Function at 0x473c81
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
call fcn.0040372d
mov eax, dword [ebp + 0x10]
add eax, 0x28
mov ecx, dword [eax]
xor esi, esi
cmp dword [ecx - 0xc], esi
je 0x473caa
lea edi, [ebp - 8]
call fcn.004412d2
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x18]
mov eax, dword [edi + 4]
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x473d16
mov eax, esi
mov ecx, edi
call fcn.00481a75
cmp dword [eax], 0x14
je 0x473cd0
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x473cba
jmp 0x473d16
test esi, esi
jl 0x473d16
cmp esi, dword [edi + 4]
jge 0x473d16
mov ecx, dword [edi]
mov eax, esi
shl eax, 3
add ecx, eax
push ecx
mov dword [ebp - 0x14], eax
call fcn.0042a6c7
mov eax, dword [edi + 4]
lea ecx, [eax - 1]
cmp esi, ecx
je 0x473d13
mov ecx, dword [edi]
mov edx, dword [ebp - 0x14]
sub eax, esi
shl eax, 3
add ecx, edx
lea edx, [eax - 8]
push edx
lea edx, [ecx + 8]
push edx
push eax
push ecx
call fcn.0041ddfb
add esp, 0x10
dec dword [edi + 4]
lea eax, [ebp - 0x14]
push eax
call fcn.0040372d
push eax
push 0x15
pop eax
mov ecx, edi
call fcn.004816ac
lea ecx, [ebp - 0x14]
call fcn.004036cd
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x473dfa
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push dword [ebp + 0x10]
push eax
lea eax, [ebx + 0x88]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.00474f3b
test al, al
jne 0x473d6f
lea ecx, [ebp - 8]
call fcn.004036cd
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0x10
push dword [ebp - 8]
call fcn.0048633f
pop ecx
test al, al
jne 0x473de8
lea eax, [ebp + 0x10]
push eax
call fcn.0040372d
push dword [ebp - 8]
lea eax, [ebp + 0x10]
push 0xf7
push eax
call fcn.004767f6
add esp, 0xc
cmp byte [0x5457ac], 0
je 0x473dc7
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
call fcn.0048273d
push eax
call fcn.0048274d
push eax
mov eax, 0x54577c
call fcn.00481b6e
lea ecx, [ebp + 0xc]
call fcn.004036cd
push 1
lea esi, [ebp + 0x10]
call fcn.004828eb
pop ecx
mov ecx, esi
call fcn.004036cd
or ebx, 0xffffffff
lea ecx, [ebp - 8]
call fcn.004036cd
mov eax, ebx
jmp 0x473d68
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, ebx
call fcn.00475947
jmp 0x4740ed
push dword [ebp + 0x10]
call fcn.00476eab
test al, al
jne 0x473e1e
lea eax, [ebx + 0x28]
call fcn.00477ed4
test al, al
jne 0x473e18
test byte [ebx + 0x6c], 0x48
je 0x473e1e
mov byte [ebp - 1], 1
jmp 0x473e22
mov byte [ebp - 1], 0
lea eax, [ebp - 0x10]
push eax
call fcn.0040372d
push 0x13
mov esi, edi
call fcn.00481701
xor esi, esi
cmp eax, esi
je 0x473e45
add eax, 4
lea edi, [ebp - 0x10]
call fcn.004412d2
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call fcn.0040372d
cmp byte [ebp - 1], 0
je 0x473f02
test dword [ebx + 0x6c], 0x1000
je 0x473ed0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
jne 0x473ed0
lea eax, [ebp - 0x5c]
push eax
call fcn.0041e15a
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x5c], 0x518d58
call fcn.0040372d
lea eax, [ebp - 0x38]
push eax
call fcn.0040372d
push esi
lea eax, [ebx + 0x16c]
mov byte [ebp - 0x34], 0
call fcn.004812f3
lea edi, [ebp - 0x38]
call fcn.004412d2
lea ebx, [ebp - 0x5c]
call 0x48cbcc
cmp byte [ebp - 0x34], 0
jne 0x473ec5
lea eax, [ebp - 0x3c]
lea edi, [ebp - 0x10]
call fcn.004412d2
lea esi, [ebp - 0x5c]
call fcn.0048ca95
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebx + 0x16c]
call fcn.004814a2
mov esi, eax
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x8d
lea eax, [ebp - 0x14]
push eax
movsd dword es:[edi], dword [esi]
call fcn.00405c1f
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 0x18]
xor esi, esi
lea eax, [ebx + 0x16c]
call fcn.0048141b
lea edi, [ebx + 0x120]
lea eax, [ebp - 0x10]
call fcn.004412d2
lea eax, [ebp - 0xc]
push eax
call fcn.0040372d
push esi
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0xc]
lea eax, [ebx + 0x28]
push ecx
push eax
call fcn.004780c2
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x104]
cmp dword [eax - 0xc], esi
jne 0x473f8c
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
lea esi, [ebx + 0x1d4]
call fcn.0041f552
lea eax, [ebp - 0x18]
push eax
xor eax, eax
push eax
push ebx
push 0x4740f5
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea esi, [ebx + 0x1cc]
mov edi, eax
call fcn.0041f552
push 0xffffffffffffffff
push dword [ebx + 0x1d4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea esi, [ebx + 0x16c]
call fcn.00481507
xor esi, esi
cmp dword [ebp + 8], esi
je 0x473ff7
push 0x5457b4
call fcn.00483df1
lea eax, [ebp + 0x10]
push eax
lea eax, [ebx + 0x28]
call fcn.00478027
mov ecx, eax
mov eax, dword [ebp + 8]
mov edi, ebx
call fcn.00475a79
lea ecx, [ebp + 0x10]
call fcn.004036cd
cmp byte [ebx + 0x1c1], 0
jne 0x473fd7
mov dword [ebx + 0xb8], esi
lea ecx, [ebp - 0xc]
call fcn.004036cd
lea ecx, [ebp - 0x14]
call fcn.004036cd
lea ecx, [ebp - 0x10]
call fcn.004036cd
mov ebx, dword [ebp + 8]
jmp 0x473ddc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
pop edi
mov ecx, edi
xor edx, edx
call fcn.00442a08
push 0x505fb0
push eax
call fcn.004429e2
neg eax
sbb al, al
inc al
lea ecx, [ebp - 0x18]
mov byte [ebp + 0xb], al
call fcn.004036cd
cmp byte [ebp + 0xb], 0
je 0x47403a
lea eax, [ebp - 0xc]
push eax
mov eax, edi
xor ecx, ecx
call fcn.0046a9f0
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push dword [ebp + 0x10]
push eax
lea eax, [ebx + 0x88]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.00474f3b
test al, al
jne 0x474070
lea ecx, [ebp - 0xc]
call fcn.004036cd
lea ecx, [ebp - 0x14]
call fcn.004036cd
lea ecx, [ebp - 0x10]
jmp 0x473dd4
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, ebx
call fcn.00475947
test eax, eax
jne 0x4740b9
mov eax, dword [ebx + 0x10]
cmp eax, esi
je 0x474096
cmp eax, 0x669
je 0x474096
cmp eax, 0xbc2
jne 0x4740b9
mov eax, dword [ebx + 0x1c4]
cmp dword [eax - 0xc], esi
je 0x4740c8
push eax
call sub.msi.dll_MsiRecordGetStringA
cmp eax, 5
setne al
test al, al
je 0x4740c8
mov dword [ebx + 0xb8], esi
jmp 0x4740c8
cmp byte [ebx + 0x1c1], 0
jne 0x4740c8
mov dword [ebx + 0xb8], edi
cmp dword [ebx + 0x10], 0x642
jne 0x4740d5
or dword [ebx + 0x10], 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.004036cd
lea ecx, [ebp - 0x14]
call fcn.004036cd
lea ecx, [ebp - 0x10]
call fcn.004036cd
mov ebx, dword [ebx + 0x10]
jmp 0x473ddc