Function at 0x405f7c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x455ee0]
push ebx
push esi
push edi
mov ecx, 0x455ee0
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 0x405fae
lea edi, [ebp - 0x14]
call fcn.0040872e
mov ebx, dword [ebp + 8]
lea esi, [ebx + 0x18]
call fcn.00412fc7
mov eax, dword [0x455ee0]
mov edi, 0x455ee0
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.00412f6b
lea eax, [esi - 0x10]
call fcn.004046a2
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
je 0x4060ba
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push dword [ebp + 0x10]
push eax
lea eax, [ebx + 0x7c]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.00407342
test al, al
jne 0x406022
lea eax, [esi - 0x10]
call fcn.004046a2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0x10
push esi
call fcn.0041a5f0
pop ecx
test al, al
jne 0x4060a8
mov eax, dword [0x455ee0]
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.0040950d
mov esi, dword [ebp + 0x10]
add esp, 0xc
cmp byte [0x456c38], 0
je 0x406080
push esi
lea eax, [ebp + 0xc]
call fcn.004141f6
push eax
call fcn.00414207
push eax
mov eax, 0x456c08
call fcn.004134f0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004046a2
push 1
lea eax, [ebp + 0x10]
call fcn.004143df
pop ecx
lea eax, [esi - 0x10]
call fcn.004046a2
or ebx, 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, ebx
jmp 0x40601b
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, ebx
call fcn.00407e56
jmp 0x4063c7
push dword [ebp + 0x10]
call fcn.0040f8a1
test al, al
jne 0x4060e4
mov eax, dword [ebx + 0x6c]
test al, 1
je 0x4060de
mov ecx, eax
shr ecx, 3
test cl, 1
jne 0x4060de
shr eax, 6
test al, 1
je 0x4060e4
mov byte [ebp - 1], 1
jmp 0x4060e8
mov byte [ebp - 1], 0
mov eax, dword [0x455ee0]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
push 0x13
lea esi, [ebx + 0x18]
mov dword [ebp - 0xc], eax
call fcn.0041302e
xor esi, esi
cmp eax, esi
je 0x406118
add eax, 4
lea edi, [ebp - 0xc]
call fcn.0040872e
mov edi, 0x455ee0
mov eax, dword [0x455ee0]
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 0x4061e0
mov eax, dword [ebx + 0x6c]
shr eax, 0xc
test al, 1
je 0x4061b0
mov eax, dword [ebp - 0xc]
cmp dword [eax - 0xc], esi
jne 0x4061b0
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], 0x44f608
call fcn.00402119
mov ecx, edi
lea esi, [ebp - 0x38]
call fcn.00402119
push 0
lea eax, [ebx + 0x160]
mov byte [ebp - 0x34], 0
call fcn.00412bfc
mov edi, esi
call fcn.0040872e
lea ebx, [ebp - 0x5c]
call fcn.0041d41a
cmp byte [ebp - 0x34], 0
jne 0x4061a5
lea eax, [ebp - 0x3c]
lea edi, [ebp - 0xc]
call fcn.0040872e
lea eax, [ebp - 0x5c]
call fcn.0041d2d8
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebx + 0x160]
call fcn.00412d51
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.004043e5
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x18]
lea eax, [ebx + 0x160]
call fcn.00412cca
lea edi, [ebx + 0x118]
lea eax, [ebp - 0xc]
call fcn.0040872e
mov eax, dword [0x455ee0]
mov ecx, 0x455ee0
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.0040b429
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0xfc]
cmp dword [eax - 0xc], edi
jne 0x406250
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push 0x4063cf
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea esi, [ebx + 0x1b8]
mov edi, eax
call fcn.00408c8e
xor edi, edi
lea esi, [ebx + 0x160]
call fcn.00412db7
cmp dword [ebp + 8], edi
je 0x4062c2
push 0x456c40
call fcn.00414d9e
lea esi, [ebp + 0x10]
lea eax, [ebx + 0x28]
call fcn.0040b38e
push dword [ebp + 8]
mov esi, ebx
call fcn.00407f9d
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.004046a2
cmp byte [ebx + 0x1ad], 0
jne 0x406299
mov dword [ebx + 0xac], edi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004046a2
mov ebx, dword [ebp + 8]
jmp 0x406096
lea eax, [ebp - 0x18]
push eax
push 4
pop esi
mov ecx, esi
xor edx, edx
lea eax, [ebp - 8]
call fcn.00408b38
push 0x447cc0
push eax
call fcn.00408e89
neg eax
sbb al, al
inc al
mov byte [ebp + 0xb], al
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004046a2
cmp byte [ebp + 0xb], 0
je 0x406305
push edi
mov eax, esi
lea ecx, [ebp - 8]
call fcn.0040876f
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push dword [ebp + 0x10]
push eax
lea eax, [ebx + 0x7c]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.00407342
test al, al
jne 0x406341
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
jmp 0x40608e
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, ebx
call fcn.00407e56
test eax, eax
jne 0x40638a
mov eax, dword [ebx + 0x10]
cmp eax, edi
je 0x406367
cmp eax, 0x669
je 0x406367
cmp eax, 0xbc2
jne 0x40638a
mov eax, dword [ebx + 0x1b0]
cmp dword [eax - 0xc], edi
je 0x406399
push eax
call sub.msi.dll_MsiRecordGetStringA
cmp eax, 5
setne al
test al, al
je 0x406399
mov dword [ebx + 0xac], edi
jmp 0x406399
cmp byte [ebx + 0x1ad], 0
jne 0x406399
mov dword [ebx + 0xac], esi
cmp dword [ebx + 0x10], 0x642
jne 0x4063a6
or dword [ebx + 0x10], 0xffffffff
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004046a2
mov ebx, dword [ebx + 0x10]
jmp 0x406096