Function at 0x4060ee
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x45a180]
push ebx
push esi
push edi
mov ecx, 0x45a180
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
add eax, 0x28
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x406120
lea edi, [ebp - 0x14]
call fcn.004087db
mov ebx, dword [ebp + 8]
lea esi, [ebx + 0x18]
call fcn.00415a5e
mov eax, dword [0x45a180]
mov edi, 0x45a180
mov ecx, edi
call dword [eax + 0xc]
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebx + 0x18]
push eax
push 0x15
add esi, 0x10
pop eax
mov dword [ebp - 0x10], esi
call fcn.00415a02
lea eax, [esi - 0x10]
call fcn.004045dc
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
je 0x40622f
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push dword [ebp + 0x10]
push eax
lea eax, [ebx + 0x88]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.00407411
test al, al
jne 0x406197
lea eax, [esi - 0x10]
call fcn.004045dc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0x10
push esi
call fcn.0041ab9c
pop ecx
test al, al
jne 0x40621d
mov eax, dword [0x45a180]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push 0xf7
push eax
call fcn.00409637
mov esi, dword [ebp + 0x10]
add esp, 0xc
cmp byte [0x45aed4], 0
je 0x4061f5
push esi
lea eax, [ebp + 0xc]
call fcn.00416bf9
push eax
call fcn.00416c0a
push eax
mov eax, 0x45aea4
call fcn.00415f87
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004045dc
push 1
lea eax, [ebp + 0x10]
call fcn.00416de2
pop ecx
lea eax, [esi - 0x10]
call fcn.004045dc
or ebx, 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, ebx
jmp 0x406190
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, ebx
call fcn.00407f1c
jmp 0x406560
push dword [ebp + 0x10]
call fcn.00411f32
test al, al
jne 0x406253
lea eax, [ebx + 0x28]
call fcn.0040b521
test al, al
jne 0x40624d
test byte [ebx + 0x6c], 0x48
je 0x406253
mov byte [ebp - 1], 1
jmp 0x406257
mov byte [ebp - 1], 0
mov eax, dword [0x45a180]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
push 0x13
lea esi, [ebx + 0x18]
mov dword [ebp - 0xc], eax
call fcn.00415ac5
xor esi, esi
cmp eax, esi
je 0x406287
add eax, 4
lea edi, [ebp - 0xc]
call fcn.004087db
mov edi, 0x45a180
mov eax, dword [0x45a180]
mov ecx, edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [eax + 0xc]
add eax, 0x10
cmp byte [ebp - 1], 0
mov dword [ebp - 0x10], eax
je 0x40634e
test dword [ebx + 0x6c], 0x1000
je 0x40631e
mov eax, dword [ebp - 0xc]
cmp dword [eax - 0xc], esi
jne 0x40631e
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov ecx, edi
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x5c], 0x453e10
call fcn.004045c1
mov ecx, edi
lea esi, [ebp - 0x38]
call fcn.004045c1
push 0
lea eax, [ebx + 0x16c]
mov byte [ebp - 0x34], 0
call fcn.00415635
mov edi, esi
call fcn.004087db
lea ebx, [ebp - 0x5c]
call fcn.0041f973
cmp byte [ebp - 0x34], 0
jne 0x406313
lea eax, [ebp - 0x3c]
lea edi, [ebp - 0xc]
call fcn.004087db
lea eax, [ebp - 0x5c]
call fcn.0041f831
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebx + 0x16c]
call fcn.004157e8
mov esi, eax
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x8d
lea eax, [ebp - 0x10]
push eax
movsd dword es:[edi], dword [esi]
call fcn.00404304
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x18]
lea eax, [ebx + 0x16c]
call fcn.0041575c
lea edi, [ebx + 0x120]
lea eax, [ebp - 0xc]
call fcn.004087db
mov eax, dword [0x45a180]
mov ecx, 0x45a180
call dword [eax + 0xc]
xor edi, edi
push edi
lea ecx, [ebp - 0x24]
push ecx
add eax, 0x10
lea ecx, [ebp - 8]
mov dword [ebp - 8], eax
lea eax, [ebx + 0x28]
push ecx
push eax
call fcn.0040b714
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x104]
cmp dword [eax - 0xc], edi
jne 0x4063e6
push edi
push edi
push 1
push edi
lea esi, [ebx + 0x1d4]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
call fcn.00408d3b
lea eax, [ebp - 0x18]
push eax
xor eax, eax
push eax
push ebx
push 0x406568
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea esi, [ebx + 0x1cc]
mov edi, eax
call fcn.00408d3b
push 0xffffffffffffffff
push dword [ebx + 0x1d4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edi, edi
lea esi, [ebx + 0x16c]
call fcn.0041584e
cmp dword [ebp + 8], edi
je 0x406458
push 0x45aedc
call fcn.004184d2
lea esi, [ebp + 0x10]
lea eax, [ebx + 0x28]
call fcn.0040b679
push dword [ebp + 8]
mov esi, ebx
call fcn.00408066
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.004045dc
cmp byte [ebx + 0x1c1], 0
jne 0x40642f
mov dword [ebx + 0xb8], edi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004045dc
mov ebx, dword [ebp + 8]
jmp 0x40620b
lea eax, [ebp - 0x18]
push eax
push 4
pop esi
mov ecx, esi
xor edx, edx
lea eax, [ebp - 8]
call fcn.00408be5
push 0x44accc
push eax
call fcn.00408f22
neg eax
sbb al, al
inc al
mov byte [ebp + 0xb], al
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004045dc
cmp byte [ebp + 0xb], 0
je 0x40649b
push edi
mov eax, esi
lea ecx, [ebp - 8]
call fcn.0040881c
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push dword [ebp + 0x10]
push eax
lea eax, [ebx + 0x88]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.00407411
test al, al
jne 0x4064da
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
jmp 0x406203
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, ebx
call fcn.00407f1c
test eax, eax
jne 0x406523
mov eax, dword [ebx + 0x10]
cmp eax, edi
je 0x406500
cmp eax, 0x669
je 0x406500
cmp eax, 0xbc2
jne 0x406523
mov eax, dword [ebx + 0x1c4]
cmp dword [eax - 0xc], edi
je 0x406532
push eax
call sub.msi.dll_MsiRecordGetStringA
cmp eax, 5
setne al
test al, al
je 0x406532
mov dword [ebx + 0xb8], edi
jmp 0x406532
cmp byte [ebx + 0x1c1], 0
jne 0x406532
mov dword [ebx + 0xb8], esi
cmp dword [ebx + 0x10], 0x642
jne 0x40653f
or dword [ebx + 0x10], 0xffffffff
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004045dc
mov ebx, dword [ebx + 0x10]
jmp 0x40620b