Function at 0x4a6f30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a5f1
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.0040be70
lea edi, [eax + 0x10]
mov dword [ebp - 0x58], edi
mov dword [ebp - 4], 1
cmp dword [edi - 0xc], 0
je 0x4a704e
call fcn.004911f0
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 0x4a6fc5
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 1
jmp 0x4a6fcc
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x178]
test eax, eax
js 0x4a6fe2
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 2
jmp 0x4a6fe9
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x174]
test eax, eax
js 0x4a6fff
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 3
jmp 0x4a7006
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.004907b0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x24]
call fcn.00490770
test eax, eax
js 0x4a704b
mov ecx, dword [ebp - 0x3c]
call fcn.004a76a0
mov edi, dword [ebp - 0x58]
mov dword [ebp - 0x48], eax
jmp 0x4a763c
mov edi, dword [ebp - 0x58]
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4a767b
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 0x4a70e8
lea edx, [esi - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x40], edx
cmp eax, edx
je 0x4a70e8
cmp dword [edx + 0xc], 0
lea esi, [edx + 0xc]
jl 0x4a70d0
mov eax, dword [eax]
cmp eax, dword [edx]
jne 0x4a70d0
mov ecx, dword [ecx + 0x21c]
lea ecx, [ecx - 0x10]
call fcn.0040be70
mov dword [ebp - 0x44], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4a70c8
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 0x4a70e5
push dword [ebp - 0x48]
mov eax, dword [ecx + 0x21c]
lea ecx, [ebp - 0x54]
push eax
call fcn.004143c0
mov esi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x3c]
cmp dword [esi - 0xc], 0
je 0x4a7269
lea eax, [ebp - 0x54]
push eax
lea eax, [ecx + 0x90]
push eax
push dword [ebp - 0x50]
call fcn.004a9c60
mov esi, dword [ebp - 0x54]
test al, al
jne 0x4a7118
mov dword [ebp - 0x48], 0xffffffff
jmp 0x4a7620
mov ecx, esi
call fcn.004c0e10
test al, al
jne 0x4a71d8
lea ecx, [ebp - 0x44]
call fcn.00413410
mov byte [ebp - 4], 7
lea eax, [ebp - 0x44]
push esi
push 0xf7
push eax
call fcn.0049e040
add esp, 0xc
cmp byte [0x5d65b0], 0
je 0x4a71a3
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4a7685
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.004b4d50
push eax
mov ecx, 0x5d657c
call fcn.004c8170
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 0x4a71a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dl, 1
lea ecx, [ebp - 0x44]
call fcn.0049dc80
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 0x4a71cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x48], 0xffffffff
jmp 0x4a7620
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 0x4a725a
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x40], eax
jl 0x4a724c
mov eax, dword [esi - 0x10]
cmp eax, dword [ecx]
jne 0x4a724c
lea ecx, [esi - 0x10]
call fcn.0040be70
mov edx, dword [ebp - 0x40]
or ecx, 0xffffffff
mov dword [ebp - 0x48], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a7232
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.004aa550
jmp 0x4a7617
push dword [esi - 0xc]
mov ecx, edx
push esi
call fcn.004143c0
mov eax, dword [ebp - 0x3c]
push dword [ebp - 0x50]
mov ecx, eax
call fcn.004aa550
jmp 0x4a7617
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.004a7aa0
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4a768f
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.004ae390
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov eax, dword [ecx + 0x10c]
cmp dword [eax - 0xc], 0
jne 0x4a7389
mov eax, dword [ecx + 0xa4]
cmp dword [eax - 0xc], 0
jl 0x4a7302
push 0x58aafc
push eax
call fcn.005223f0
mov ecx, dword [ebp - 0x3c]
add esp, 8
test eax, eax
je 0x4a7302
sub eax, dword [ecx + 0xa4]
sar eax, 1
je 0x4a7389
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 0x4a7336
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 0x4a7ee0
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 0x4a7375
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 0x4a739f
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 0x4a745c
mov ecx, 0x5d65c0
call fcn.004ca1f0
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x104]
sub ecx, 0x10
call fcn.0040be70
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.004aa870
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 0x4a743d
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 0x4a74fc
mov dword [eax + 0xc0], 0
jmp 0x4a74fc
push 4
push 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040bce0
mov byte [ebp - 4], 0x18
mov ecx, 0x57f100
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a74a2
test dx, dx
je 0x4a7499
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a74a2
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a7477
mov dword [ebp - 0x40], 0
jmp 0x4a74aa
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 0x4a74c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x40], 0
jne 0x4a74db
push 4
push 0
lea ecx, [ebp - 0x44]
call fcn.00490da0
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x44]
push eax
lea eax, [ecx + 0x90]
push eax
push dword [ebp - 0x50]
call fcn.004a9c60
test al, al
jne 0x4a7524
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 0x4a7620
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4a7620
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 0x4a7598
cmp dword [edx + 0xc], 0
lea eax, [edx + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
jl 0x4a758c
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x4a758c
mov ecx, dword [ebp - 0x48]
call fcn.0040be70
mov dword [ebp - 0x60], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0x4c]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a757f
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 0x4a7598
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x40]
push eax
call fcn.004143c0
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x3c]
call fcn.004aa550
test eax, eax
mov eax, dword [ebp - 0x3c]
jne 0x4a75e8
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4a75c1
cmp ecx, 0x669
je 0x4a75c1
cmp ecx, 0xbc2
jne 0x4a75e8
mov eax, dword [eax + 0x1d0]
cmp dword [eax - 0xc], 0
je 0x4a75fb
push eax
call dword [sym.imp.msi.dll_MsiRecordGetStringA]
cmp eax, 5
je 0x4a75fb
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0xc0], 0
jmp 0x4a75fb
cmp byte [eax + 0x1cc], 0
jne 0x4a75fb
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 0x4a7617
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 0x4a763c
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 0x4a765b
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.00520c02
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004143a0
push 0x80004005
call fcn.004143a0
push 0x80004005
call fcn.004143a0
int3