Function at 0x48d7f7
Capabilities:
Create thread

Disassembly:
push 0x160
mov eax, 0x516eef
call fcn.004da767
mov edi, ecx
mov dword [ebp - 0x3c], edi
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x258]
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x48], ebx
call fcn.004071bb
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
cmp dword [eax - 0xc], 0
je 0x48d88b
call fcn.00473910
push 0x46
pop ecx
mov esi, eax
lea edi, [ebp - 0x16c]
rep movsd dword es:[edi], dword [esi]
push ecx
push dword [ebp - 0x164]
lea ecx, [ebp - 0x38]
push dword [ebp - 0x168]
push dword [ebp - 0x16c]
call fcn.00472d10
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00472dd0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x38]
call fcn.00472e10
shr eax, 0x1f
xor al, 1
je 0x48d888
mov ecx, dword [ebp - 0x3c]
call fcn.0048dc1b
mov esi, eax
jmp 0x48dc05
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x44]
call fcn.0040cf67
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x1f4]
call fcn.004872fd
mov eax, dword [ebp - 0x44]
cmp dword [eax - 0xc], 0
je 0x48d9bb
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
lea eax, [edi + 0x90]
push eax
push ebx
call fcn.0048f1bd
test al, al
je 0x48d95f
mov ecx, dword [ebp - 0x44]
call fcn.0049c872
test al, al
jne 0x48d967
lea ecx, [ebp - 0x40]
call fcn.0040cf67
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
push dword [ebp - 0x44]
push 0xf7
push eax
call fcn.00488a5e
add esp, 0xc
cmp byte [0x57f5ec], 0
je 0x48d949
lea ecx, [ebp - 0x3c]
call fcn.0040cf67
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x48d92b
push esi
call fcn.004dfc45
pop ecx
push eax
push esi
lea ecx, [ebp - 0x3c]
call fcn.0041107c
lea eax, [ebp - 0x3c]
mov ecx, 0x57f5b8
push eax
call fcn.004a12ac
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.0040d22d
mov byte [ebp - 4], 2
mov dl, 1
lea ecx, [ebp - 0x40]
call fcn.00488892
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040d22d
or esi, 0xffffffff
jmp 0x48dbf9
mov eax, dword [ebp - 0x44]
lea esi, [edi + 0x1f0]
mov ebx, dword [esi]
sub ebx, 0x10
lea ecx, [eax - 0x10]
cmp ecx, ebx
je 0x48d9ac
cmp dword [ebx + 0xc], 0
jl 0x48d9a1
mov edx, dword [ecx]
cmp edx, dword [ebx]
jne 0x48d9a1
call fcn.00407162
mov ecx, ebx
mov esi, eax
call fcn.0040d743
lea eax, [esi + 0x10]
mov dword [edi + 0x1f0], eax
jmp 0x48d9ac
push dword [eax - 0xc]
mov ecx, esi
push eax
call fcn.0040d9ac
push dword [ebp - 0x48]
mov ecx, edi
call fcn.0048f69c
jmp 0x48dbf6
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
mov ecx, edi
call fcn.0048dd18
lea ecx, [ebp - 0x40]
call fcn.0040cf67
push 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [edi + 0x30]
call fcn.004917fb
lea ecx, [edi + 0x30]
mov dword [ebp - 0x3c], eax
call fcn.00493e45
test al, al
jne 0x48da47
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea ecx, [edi + 0x1dc]
call fcn.0040e16d
lea eax, [ebp - 0x54]
push eax
xor eax, eax
push eax
push edi
push 0x48df95
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [edi + 0x1d4]
call fcn.0040e16d
push 0xffffffffffffffff
push dword [edi + 0x1e0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [edi + 0x178]
call fcn.00495834
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x48dae4
push ecx
call fcn.00473910
mov ecx, eax
call fcn.00473bc0
test al, al
je 0x48da9d
call fcn.004a9fb5
mov edx, 0x57f5fc
lea ecx, [ebp - 0x48]
call fcn.004a262e
mov byte [ebp - 4], 6
mov ecx, dword [eax]
call fcn.004a9f5c
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
mov bl, al
call fcn.0040d22d
test bl, bl
jne 0x48daa7
mov ecx, 0x57f5fc
call fcn.004a2998
lea eax, [edi + 0x104]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004071bb
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 7
push eax
push esi
mov ecx, edi
call fcn.0048f8bf
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.0040d22d
cmp byte [edi + 0x1cc], 0
jne 0x48db3d
and dword [edi + 0xc0], 0
jmp 0x48db3d
push 4
push 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00406ffe
mov byte [ebp - 4], 8
push 0x5322a8
push dword [eax]
call fcn.004e27b0
pop ecx
pop ecx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
mov esi, eax
call fcn.0040d22d
test esi, esi
jne 0x48db23
push 4
push esi
lea ecx, [ebp - 0x40]
call fcn.00473770
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
lea eax, [edi + 0x90]
push eax
push ebx
call fcn.0048f1bd
test al, al
jne 0x48db4e
or esi, 0xffffffff
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040d22d
jmp 0x48dbf9
mov eax, dword [ebp - 0x40]
lea esi, [edi + 0x1f0]
mov ebx, dword [esi]
sub ebx, 0x10
lea ecx, [eax - 0x10]
cmp ecx, ebx
je 0x48db93
cmp dword [ebx + 0xc], 0
jl 0x48db88
mov edx, dword [ecx]
cmp edx, dword [ebx]
jne 0x48db88
call fcn.00407162
mov ecx, ebx
mov esi, eax
call fcn.0040d743
lea eax, [esi + 0x10]
mov dword [edi + 0x1f0], eax
jmp 0x48db93
push dword [eax - 0xc]
mov ecx, esi
push eax
call fcn.0040d9ac
push dword [ebp - 0x48]
mov ecx, edi
call fcn.0048f69c
test eax, eax
jne 0x48dbd7
mov eax, dword [edi + 0x14]
test eax, eax
je 0x48dbb6
cmp eax, 0x669
je 0x48dbb6
cmp eax, 0xbc2
jne 0x48dbd7
mov eax, dword [edi + 0x1d0]
cmp dword [eax - 0xc], 0
je 0x48dbea
push eax
call dword [sym.imp.msi.dll_MsiRecordGetStringA]
cmp eax, 5
je 0x48dbea
and dword [edi + 0xc0], 0
jmp 0x48dbea
cmp byte [edi + 0x1cc], 0
jne 0x48dbea
mov dword [edi + 0xc0], 4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040d22d
mov esi, dword [edi + 0x14]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.0040d22d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040d22d
mov eax, esi
call fcn.004da711
ret 4