Function at 0x489cd4
Capabilities:
Create thread

Disassembly:
push 0x160
mov eax, 0x50c000
call fcn.004d0e17
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x258]
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x40], esi
call fcn.004069f3
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
cmp dword [eax - 0xc], 0
je 0x489d61
call fcn.00470200
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.0046f260
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x24]
call fcn.0046f320
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x38]
call fcn.0046f360
test eax, eax
js 0x489d5e
mov ecx, ebx
call fcn.0048a047
mov edi, eax
jmp 0x48a031
mov esi, dword [ebp - 0x40]
lea ecx, [ebp - 0x44]
call fcn.0040c77f
mov byte [ebp - 4], 1
lea ecx, [ebx + 0x21c]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x489d84
push ecx
lea ecx, [ebp - 0x44]
call fcn.0044d0c3
mov eax, dword [ebp - 0x44]
cmp dword [eax - 0xc], 0
je 0x489e49
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
lea eax, [ebx + 0x90]
push eax
push esi
call fcn.0048b316
test al, al
je 0x489e25
mov ecx, dword [ebp - 0x44]
call fcn.004968c4
test al, al
jne 0x489e2d
lea ecx, [ebp - 0x3c]
call fcn.0040c77f
mov byte [ebp - 4], 2
lea eax, [ebp - 0x3c]
push dword [ebp - 0x44]
push 0xf7
push eax
call fcn.004856c0
add esp, 0xc
cmp byte [0x5735e0], 0
je 0x489e0f
lea ecx, [ebp - 0x40]
call fcn.0040c77f
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
push dword [ebp - 0x3c]
call fcn.00490d37
push eax
mov ecx, 0x5735ac
call fcn.0049abcf
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0040ca45
mov byte [ebp - 4], 2
mov dl, 1
lea ecx, [ebp - 0x3c]
call fcn.00485504
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040ca45
or edi, 0xffffffff
jmp 0x48a025
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebx + 0x1f0]
call fcn.0044d0c3
push esi
mov ecx, ebx
call fcn.0048b777
jmp 0x48a022
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, ebx
call fcn.0048a157
lea ecx, [ebp - 0x3c]
call fcn.0040c77f
push 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebx + 0x30]
call fcn.0048d516
lea ecx, [ebx + 0x30]
mov edi, eax
call fcn.0048f44d
test al, al
jne 0x489ef2
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea esi, [ebx + 0x1dc]
mov dword [ebp - 0x48], eax
cmp eax, dword [esi + 4]
je 0x489eb4
mov ecx, esi
call fcn.00404fb2
mov eax, dword [ebp - 0x48]
mov dword [esi + 4], eax
lea eax, [ebp - 0x54]
push eax
xor eax, eax
push eax
push ebx
push 0x48a2b0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea esi, [ebx + 0x1d4]
mov dword [ebp - 0x48], eax
cmp eax, dword [esi + 4]
je 0x489ee4
mov ecx, esi
call fcn.00404fb2
mov eax, dword [ebp - 0x48]
mov dword [esi + 4], eax
push 0xffffffffffffffff
push dword [ebx + 0x1e0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebx + 0x178]
call fcn.00490cf5
test edi, edi
je 0x489f48
mov ecx, 0x5735f0
call fcn.0049b86b
lea eax, [ebx + 0x104]
push eax
lea ecx, [ebp - 0x40]
call fcn.004069f3
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push eax
push edi
mov ecx, ebx
call fcn.0048b8ef
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.0040ca45
cmp byte [ebx + 0x1cc], 0
jne 0x489fa5
and dword [ebx + 0xc0], 0
jmp 0x489fa5
push 4
xor edi, edi
lea eax, [ebp - 0x48]
push edi
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040684b
mov byte [ebp - 4], 7
push 0x5272a0
push dword [eax]
call fcn.004d87a0
pop ecx
pop ecx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
mov esi, eax
call fcn.0040ca45
test esi, esi
jne 0x489f88
push 4
push edi
lea ecx, [ebp - 0x3c]
call fcn.0046fc50
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebx + 0x90]
mov ecx, ebx
push eax
push esi
call fcn.0048b316
test al, al
jne 0x489fb3
or edi, 0xffffffff
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040ca45
jmp 0x48a025
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebx + 0x1f0]
call fcn.0044d0c3
push esi
mov ecx, ebx
call fcn.0048b777
test eax, eax
jne 0x48a003
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x489fe3
cmp eax, 0x669
je 0x489fe3
cmp eax, 0xbc2
jne 0x48a003
mov eax, dword [ebx + 0x1d0]
cmp dword [eax - 0xc], 0
je 0x48a016
push eax
call dword [sym.imp.msi.dll_MsiRecordGetStringA]
cmp eax, 5
je 0x48a016
mov dword [ebx + 0xc0], edi
jmp 0x48a016
cmp byte [ebx + 0x1cc], 0
jne 0x48a016
mov dword [ebx + 0xc0], 4
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040ca45
mov edi, dword [ebx + 0x14]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.0040ca45
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040ca45
mov eax, edi
call fcn.004d0dc1
ret 4