Function at 0x4a72f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a8f1
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x5c], 0
mov ecx, dword [eax + 0x258]
sub ecx, 0x10
call fcn.0040a1d0
lea edi, [eax + 0x10]
mov dword [ebp - 0x58], edi
mov dword [ebp - 4], 1
cmp dword [edi - 0xc], 0
je 0x4a740e
call fcn.00490ee0
mov esi, eax
mov dword [ebp - 0x14], 0
mov ecx, 0x46
lea edi, [ebp - 0x17c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x17c]
test eax, eax
js 0x4a7385
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 1
jmp 0x4a738c
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x178]
test eax, eax
js 0x4a73a2
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 2
jmp 0x4a73a9
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x174]
test eax, eax
js 0x4a73bf
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 3
jmp 0x4a73c6
mov dword [ebp - 0x1c], 0
push ecx
lea eax, [ebp - 0x58]
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.00490730
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x24]
call fcn.004906f0
test eax, eax
js 0x4a740b
mov ecx, dword [ebp - 0x3c]
call fcn.004a7a60
mov edi, dword [ebp - 0x58]
mov dword [ebp - 0x48], eax
jmp 0x4a79fc
mov edi, dword [ebp - 0x58]
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4a7a3b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x54], esi
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 0x21c]
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x48], edx
test edx, edx
je 0x4a74a8
lea edx, [esi - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x40], edx
cmp eax, edx
je 0x4a74a8
cmp dword [edx + 0xc], 0
lea esi, [edx + 0xc]
jl 0x4a7490
mov eax, dword [eax]
cmp eax, dword [edx]
jne 0x4a7490
mov ecx, dword [ecx + 0x21c]
lea ecx, [ecx - 0x10]
call fcn.0040a1d0
mov dword [ebp - 0x44], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4a7488
mov esi, dword [ebp - 0x40]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x44]
lea esi, [eax + 0x10]
mov dword [ebp - 0x54], esi
jmp 0x4a74a5
push dword [ebp - 0x48]
mov eax, dword [ecx + 0x21c]
lea ecx, [ebp - 0x54]
push eax
call fcn.004126c0
mov esi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x3c]
cmp dword [esi - 0xc], 0
je 0x4a7629
lea eax, [ebp - 0x54]
push eax
lea eax, [ecx + 0x90]
push eax
push dword [ebp - 0x50]
call fcn.004aa030
mov esi, dword [ebp - 0x54]
test al, al
jne 0x4a74d8
mov dword [ebp - 0x48], 0xffffffff
jmp 0x4a79e0
mov ecx, esi
call fcn.004c1040
test al, al
jne 0x4a7598
lea ecx, [ebp - 0x44]
call fcn.00411710
mov byte [ebp - 4], 7
lea eax, [ebp - 0x44]
push esi
push 0xf7
push eax
call fcn.0049e440
add esp, 0xc
cmp byte [0x5d6558], 0
je 0x4a7563
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4a7a45
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x50]
push dword [ebp - 0x44]
call fcn.004b5110
push eax
mov ecx, 0x5d6524
call fcn.004c8520
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a7563
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dl, 1
lea ecx, [ebp - 0x44]
call fcn.0049e090
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a758c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x48], 0xffffffff
jmp 0x4a79e0
mov eax, dword [ebp - 0x3c]
lea ecx, [esi - 0x10]
lea edx, [eax + 0x1f0]
mov dword [ebp - 0x40], ecx
mov ecx, dword [edx]
sub ecx, 0x10
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x40], ecx
je 0x4a761a
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x40], eax
jl 0x4a760c
mov eax, dword [esi - 0x10]
cmp eax, dword [ecx]
jne 0x4a760c
lea ecx, [esi - 0x10]
call fcn.0040a1d0
mov edx, dword [ebp - 0x40]
or ecx, 0xffffffff
mov dword [ebp - 0x48], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a75f2
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
add eax, 0x10
push dword [ebp - 0x50]
mov dword [ecx], eax
mov eax, dword [ebp - 0x3c]
mov ecx, eax
call fcn.004aa920
jmp 0x4a79d7
push dword [esi - 0xc]
mov ecx, edx
push esi
call fcn.004126c0
mov eax, dword [ebp - 0x3c]
push dword [ebp - 0x50]
mov ecx, eax
call fcn.004aa920
jmp 0x4a79d7
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.004a7e60
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4a7a4f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x3c]
push 0
push eax
lea eax, [ebp - 0x44]
lea ecx, [ecx + 0x30]
push eax
call fcn.004ae780
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov eax, dword [ecx + 0x10c]
cmp dword [eax - 0xc], 0
jne 0x4a7749
mov eax, dword [ecx + 0xa4]
cmp dword [eax - 0xc], 0
jl 0x4a76c2
push 0x58a924
push eax
call fcn.00522cd0
mov ecx, dword [ebp - 0x3c]
add esp, 8
test eax, eax
je 0x4a76c2
sub eax, dword [ecx + 0xa4]
sar eax, 1
je 0x4a7749
push 0
push 0
push 1
add ecx, 0x1dc
push 0
mov dword [ebp - 0x40], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x4c], ecx
cmp ecx, dword [eax + 4]
je 0x4a76f6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x3c]
lea ecx, [eax + 0x1d4]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x60]
push ecx
push 0
push eax
push 0x4a82a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x4c], ecx
cmp ecx, dword [eax + 4]
je 0x4a7735
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x3c]
push 0xffffffffffffffff
push dword [eax + 0x1e0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x1c8]
test edx, edx
je 0x4a775f
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax + 4]
mov ecx, dword [ebp - 0x3c]
cmp dword [ebp - 0x48], 0
mov dword [ecx + 0x1c8], 0
mov dword [ecx + 0x1bc], 0
mov dword [ecx + 0x1c0], 0
mov dword [ecx + 0x1c4], 0
je 0x4a781c
mov ecx, 0x5d6568
call fcn.004ca650
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x104]
sub ecx, 0x10
call fcn.0040a1d0
add eax, 0x10
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
push eax
push dword [ebp - 0x48]
mov dword [ebp - 0x5c], 1
call fcn.004aac40
mov eax, 1
mov dword [ebp - 0x5c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0x11
or eax, 0xffffffff
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a77fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x1cc], 0
jne 0x4a78bc
mov dword [eax + 0xc0], 0
jmp 0x4a78bc
push 4
push 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040a040
mov byte [ebp - 4], 0x18
mov ecx, 0x57f010
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a7862
test dx, dx
je 0x4a7859
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a7862
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a7837
mov dword [ebp - 0x40], 0
jmp 0x4a786a
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 0x11
or eax, 0xffffffff
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a7889
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x40], 0
jne 0x4a789b
push 4
push 0
lea ecx, [ebp - 0x44]
call fcn.00490d20
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x44]
push eax
lea eax, [ecx + 0x90]
push eax
push dword [ebp - 0x50]
call fcn.004aa030
test al, al
jne 0x4a78e4
mov dword [ebp - 0x48], 0xffffffff
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a79e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4a79e0
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x44]
add edx, 0x1f0
mov dword [ebp - 0x40], edx
add ecx, 0xfffffff0
mov dword [ebp - 0x48], ecx
mov edx, dword [edx]
sub edx, 0x10
mov dword [ebp - 0x64], edx
cmp ecx, edx
je 0x4a7958
cmp dword [edx + 0xc], 0
lea eax, [edx + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
jl 0x4a794c
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x4a794c
mov ecx, dword [ebp - 0x48]
call fcn.0040a1d0
mov dword [ebp - 0x60], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0x4c]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a793f
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x60]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4a7958
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x40]
push eax
call fcn.004126c0
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x3c]
call fcn.004aa920
test eax, eax
mov eax, dword [ebp - 0x3c]
jne 0x4a79a8
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4a7981
cmp ecx, 0x669
je 0x4a7981
cmp ecx, 0xbc2
jne 0x4a79a8
mov eax, dword [eax + 0x1d0]
cmp dword [eax - 0xc], 0
je 0x4a79bb
push eax
call dword [sym.imp.msi.dll_MsiRecordGetStringA]
cmp eax, 5
je 0x4a79bb
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0xc0], 0
jmp 0x4a79bb
cmp byte [eax + 0x1cc], 0
jne 0x4a79bb
mov dword [eax + 0xc0], 4
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x48]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a79d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a79fc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4a7a1b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x48]
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.005214e1
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
int3