Function at 0x4a5a50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f69e
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x5d8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x40], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x4c], 0
mov ecx, dword [edi + 0x258]
sub ecx, 0x10
mov dword [ebp - 0x54], esi
call fcn.00408b00
add eax, 0x10
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x50]
cmp dword [eax - 0xc], 0
je 0x4a5b79
call fcn.004c9100
mov esi, eax
mov dword [ebp - 0x14], 0
mov ecx, 0x47
lea edi, [ebp - 0x174]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x174]
test eax, eax
js 0x4a5ae8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 1
jmp 0x4a5aef
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x170]
test eax, eax
js 0x4a5b05
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 2
jmp 0x4a5b0c
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x16c]
test eax, eax
js 0x4a5b22
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 3
jmp 0x4a5b29
mov dword [ebp - 0x1c], 0
push ecx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
push eax
lea ecx, [ebp - 0x38]
movups xmmword [ebp - 0x38], xmm0
call fcn.00490430
xor eax, eax
nop dword [eax]
mov ecx, dword [ebp + eax - 0x38]
cmp dword [ebp + eax - 0x24], ecx
jl 0x4a5b73
jg 0x4a5b64
add eax, 4
cmp eax, 0x10
jl 0x4a5b50
mov ecx, dword [ebp - 0x40]
call fcn.004a60d0
mov esi, eax
jmp 0x4a6076
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x54]
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x4a60b7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 3
lea ecx, [edi + 0x21c]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x4a5bb0
push ecx
lea ecx, [ebp - 0x48]
call fcn.00478300
mov eax, dword [ebp - 0x48]
cmp dword [eax - 0xc], 0
je 0x4a5ce5
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
lea eax, [edi + 0x90]
push eax
push esi
call fcn.004a8330
test al, al
jne 0x4a5bdc
or esi, 0xffffffff
jmp 0x4a6057
mov ecx, dword [ebp - 0x48]
call fcn.004be280
test al, al
jne 0x4a5cc9
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x4a60b7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
push dword [ebp - 0x48]
push 0xf7
push eax
call fcn.0049cb80
mov esi, dword [ebp - 0x40]
add esp, 0xc
cmp byte [0x5de650], 0
je 0x4a5c9b
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x4a60b7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x3c], edi
mov byte [ebp - 4], 8
test esi, esi
je 0x4a5c71
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5c55
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x3c]
call fcn.00418f60
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x3c]
mov ecx, 0x5de618
push eax
call fcn.004c5b20
mov byte [ebp - 4], 5
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4a5c9b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dl, 1
lea ecx, [ebp - 0x40]
call fcn.0049c7c0
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a5cc1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or esi, 0xffffffff
jmp 0x4a6057
lea eax, [ebp - 0x48]
push eax
lea ecx, [edi + 0x1f0]
call fcn.00478300
push esi
mov ecx, edi
call fcn.004a8c00
jmp 0x4a6054
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push ecx
mov ecx, edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.004a64e0
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x4a60b7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x1c]
push 0
push eax
lea eax, [ebp - 0x3c]
lea ecx, [edi + 0x30]
push eax
call fcn.004ac9e0
mov esi, eax
mov eax, dword [edi + 0x10c]
mov dword [ebp - 0x40], esi
cmp dword [eax - 0xc], 0
jne 0x4a5df5
mov eax, dword [edi + 0xa4]
cmp dword [eax - 0xc], 0
jl 0x4a5d79
push 0x5924c0
push eax
call fcn.0052360f
add esp, 8
test eax, eax
je 0x4a5d79
sub eax, dword [edi + 0xa4]
sar eax, 1
je 0x4a5df5
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, eax
mov dword [ebp - 0x44], ecx
cmp ecx, dword [edi + 0x1e0]
je 0x4a5dac
mov edx, dword [edi + 0x1dc]
lea ecx, [edi + 0x1dc]
call dword [edx + 4]
mov ecx, dword [ebp - 0x44]
mov dword [edi + 0x1e0], ecx
lea eax, [ebp - 0x58]
push eax
push 0
push edi
push 0x4a67f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
mov dword [ebp - 0x44], ecx
cmp ecx, dword [edi + 0x1d8]
je 0x4a5de7
mov edx, dword [edi + 0x1d4]
lea ecx, [edi + 0x1d4]
call dword [edx + 4]
mov ecx, dword [ebp - 0x44]
mov dword [edi + 0x1d8], ecx
push 0xffffffffffffffff
push dword [edi + 0x1e0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [edi + 0x1c8]
test ecx, ecx
je 0x4a5e06
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [edi + 0x1c8], 0
mov dword [edi + 0x1bc], 0
mov dword [edi + 0x1c0], 0
mov dword [edi + 0x1c4], 0
test esi, esi
je 0x4a5eb6
mov ecx, 0x5de660
call fcn.004c8440
mov byte [ebp - 4], 0xe
mov ecx, dword [edi + 0x104]
sub ecx, 0x10
call fcn.00408b00
lea esi, [eax + 0x10]
mov dword [ebp - 0x44], esi
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x40]
mov ecx, edi
mov dword [ebp - 0x4c], 1
call fcn.004a9000
mov eax, 1
mov dword [ebp - 0x4c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0xd
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a5e9b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [edi + 0x1cc], 0
jne 0x4a5eae
mov dword [edi + 0xc0], 0
mov esi, dword [ebp - 0x40]
jmp 0x4a5fa6
push 4
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040d340
mov byte [ebp - 4], 0x11
mov ecx, 0x586858
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a5ef7
test dx, dx
je 0x4a5ef3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a5ef7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a5ed1
xor esi, esi
jmp 0x4a5efc
sbb esi, esi
or esi, 1
mov byte [ebp - 4], 0xd
or eax, 0xffffffff
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a5f1b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x4a5f89
mov eax, dword [ebp - 0x3c]
mov ecx, 4
mov dword [ebp - 0x40], ecx
mov esi, dword [eax - 0xc]
cmp esi, ecx
jge 0x4a5f3a
mov ecx, esi
mov dword [ebp - 0x40], ecx
test ecx, ecx
jle 0x4a5f89
sub esi, ecx
cmp dword [eax - 4], 1
jle 0x4a5f53
push dword [eax - 0xc]
lea ecx, [ebp - 0x3c]
call fcn.00408c70
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
lea edx, [esi*2 + 2]
push edx
lea ecx, [eax + ecx*2]
push ecx
push edx
push eax
call fcn.00443fe0
add esp, 0x10
test esi, esi
js 0x4a60c1
mov eax, dword [ebp - 0x3c]
cmp esi, dword [eax - 8]
jg 0x4a60c1
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x3c]
mov word [eax + esi*2], cx
mov esi, dword [ebp - 0x54]
lea eax, [ebp - 0x3c]
push eax
lea eax, [edi + 0x90]
mov ecx, edi
push eax
push esi
call fcn.004a8330
test al, al
jne 0x4a5fce
or esi, 0xffffffff
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a6057
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4a6057
lea eax, [ebp - 0x3c]
push eax
lea ecx, [edi + 0x1f0]
call fcn.00478300
push esi
mov ecx, edi
call fcn.004a8c00
test eax, eax
jne 0x4a6022
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4a5ffe
cmp eax, 0x669
je 0x4a5ffe
cmp eax, 0xbc2
jne 0x4a6022
mov eax, dword [edi + 0x1d0]
cmp dword [eax - 0xc], 0
je 0x4a6035
push eax
call dword [sym.imp.msi.dll_MsiRecordGetStringA]
cmp eax, 5
je 0x4a6035
mov dword [edi + 0xc0], 0
jmp 0x4a6035
cmp byte [edi + 0x1cc], 0
jne 0x4a6035
mov dword [edi + 0xc0], 4
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a6054
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi + 0x14]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a6076
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a6098
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521dac
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00408fc0
push 0x80070057
call fcn.00408fc0
int3