Function at 0x40a160
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x64
push 0xffffffffffffffff
push 0x4730ef
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4a6024]
xor eax, ebp
mov dword [ebp + 0x60], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x30], eax
mov edi, dword [ebp + 0x6c]
mov dword [ebp - 0x18], 0
test edi, edi
js 0x40ab63
cmp edi, dword [eax + 8]
jge 0x40ab63
shl edi, 5
or ebx, 0xffffffff
add edi, dword [eax + 4]
cmp byte [0x4a89dc], 0
je 0x40a249
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x40ab9c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x14]
push 0xf
push str.Launching_file:
call fcn.00404870
mov edx, dword [edi]
test edx, edx
je 0x40a21a
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a201
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.00404870
lea eax, [ebp - 0x14]
mov ecx, 0x4a89a4
push eax
call fcn.00427b30
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a249
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 0x14]
mov dword [ebp + 0x4c], 0
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0x50]
push 1
mov dword [ebp - 0x20], eax
call fcn.00450c01
mov dword [ebp + 0x5c], eax
mov dword [ebp - 4], 5
lea eax, [ebp + 0x58]
push eax
call fcn.0040c6b0
mov dword [ebp + 0x50], eax
lea eax, [ebp + 0x58]
push eax
call fcn.00408430
add esp, 0xc
mov dword [ebp + 0x54], eax
mov dword [ebp - 4], 7
push dword [ebp - 0x38]
push ecx
push 0x48f6d2
push ecx
lea ecx, [ebp + 0x4c]
call fcn.0040c4e0
mov dword [ebp - 4], 8
mov ecx, dword [edi + 4]
mov edx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40a2b0
sub edx, esi
lea eax, [ebp + 0x4c]
push ecx
sar edx, 1
push 0x10
push eax
push ecx
lea edx, [ecx + edx*2]
call fcn.0040cb20
add esp, 0x10
mov byte [ebp - 0x20], al
mov dword [ebp - 4], 9
mov ecx, dword [ebp + 0x4c]
test ecx, ecx
je 0x40a30a
mov eax, ebx
lock xadd dword [ecx + 0x20], eax
jne 0x40a30a
mov esi, dword [ebp + 0x4c]
test esi, esi
je 0x40a30a
mov ecx, esi
lea eax, [esi + 0xc]
mov esi, dword [eax]
mov dword [eax], 0
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x40a2f3
mov dword [ebp + 0x4c], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 0x50]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x5c]
test ecx, ecx
je 0x40a33f
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x40a33f
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
xor eax, eax
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 7
mov word [ebp + 0x30], ax
mov dword [ebp - 4], 0xe
mov ecx, edi
mov esi, dword [edi]
call fcn.00423f00
test al, al
je 0x40a37f
add esi, 8
mov ecx, esi
mov dword [ebp + 0x48], 0
xor eax, eax
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 0
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 7
lea edx, [ecx + 2]
mov word [ebp + 0x48], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a3b0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 0x48]
call fcn.004034a0
mov byte [ebp - 4], 0xf
lea eax, [ebp + 0x48]
push 1
sub esp, 0x18
mov dword [ebp - 0x2c], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.00401e00
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 0xf
mov ecx, esi
call fcn.00406400
add esp, 0x18
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 0xf
lea ecx, [ebp + 0x18]
call fcn.00406860
mov byte [ebp - 4], 0x13
lea eax, [ebp + 0x18]
cmp dword [ebp + 0x2c], 8
lea ecx, [ebp + 0x30]
push dword [ebp + 0x28]
cmovae eax, dword [ebp + 0x18]
push eax
call fcn.004034a0
mov byte [ebp - 4], 0xf
lea ecx, [ebp + 0x18]
call fcn.00403cb0
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0x48]
call fcn.00403cb0
push 4
xor eax, eax
mov dword [ebp], 0
mov dword [ebp + 0x10], 0
lea ecx, [ebp]
mov dword [ebp + 0x14], 0
push str.msix
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
mov word [ebp], ax
call fcn.004034a0
mov byte [ebp - 4], 0x16
lea eax, [ebp]
mov ebx, 1
lea ecx, [ebp + 0x30]
push eax
mov dword [ebp - 0x18], ebx
call fcn.00405f20
test al, al
jne 0x40a691
push 0xa
xor eax, eax
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x58], 0
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x5c], 0
push str.msixbundle
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 7
mov word [ebp + 0x48], ax
call fcn.004034a0
mov dword [ebp - 4], 0x17
mov ebx, 3
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 0x58]
test esi, esi
jne 0x40a57d
cmp dword [ebp + 0x44], 8
lea esi, [ebp + 0x30]
mov edx, dword [ebp + 0x40]
cmovae esi, dword [ebp + 0x30]
setae byte [ebp - 0xd]
test edx, edx
je 0x40a525
lea eax, [edx - 1]
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [esi + ecx*2], 0x5c
lea eax, [esi + ecx*2]
je 0x40a51f
cmp eax, esi
je 0x40a525
sub eax, 2
cmp word [eax], 0x5c
jne 0x40a512
sub eax, esi
sar eax, 1
jmp 0x40a528
or eax, 0xffffffff
cmp byte [ebp - 0xd], 0
lea ecx, [ebp + 0x30]
cmovne ecx, dword [ebp + 0x30]
mov dword [ebp - 0x28], ecx
cmp eax, edx
jae 0x40a572
lea ecx, [ecx + eax*2]
mov esi, 0
sub edx, eax
je 0x40a561
cmp word [ecx], 0x2e
je 0x40a55f
nop dword [eax]
cmp edx, 1
je 0x40a561
add ecx, 2
dec edx
cmp word [ecx], 0x2e
jne 0x40a550
mov esi, ecx
test esi, esi
je 0x40a572
sub esi, dword [ebp - 0x28]
sar esi, 1
cmp esi, 0xffffffff
jmp 0x40a62f
or esi, 0xffffffff
cmp esi, 0xffffffff
jmp 0x40a62f
lea eax, [esi + 1]
cmp eax, dword [ebp + 0x40]
ja 0x40a636
cmp dword [ebp + 0x5c], 8
lea ecx, [ebp + 0x48]
cmovae ecx, dword [ebp + 0x48]
setae byte [ebp - 0xd]
mov dword [ebp - 0x28], ecx
movzx eax, word [ecx]
mov edx, eax
cmp eax, 0x2e
jne 0x40a5ab
add ecx, 2
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0x40]
lea ecx, [esi - 1]
cmp edx, 0x2e
lea edx, [ebp + 0x30]
cmovne ecx, esi
cmp dword [ebp + 0x44], 8
cmovae edx, dword [ebp + 0x30]
setae byte [ebp - 0x19]
sub eax, ecx
add eax, eax
mov dword [ebp - 0x2c], eax
cmp word [edx + eax - 2], 0x2e
jne 0x40a636
cmp byte [ebp - 0xd], 0
lea eax, [ebp + 0x48]
cmovne eax, dword [ebp + 0x48]
cmp esi, 1
jbe 0x40a615
lea edx, [esi - 1]
xor esi, esi
lea ecx, [eax + 2]
test edx, edx
je 0x40a608
cmp word [ecx], 0x2e
je 0x40a606
cmp edx, 1
je 0x40a608
add ecx, 2
dec edx
cmp word [ecx], 0x2e
jne 0x40a5f7
mov esi, ecx
test esi, esi
je 0x40a615
sub esi, eax
sar esi, 1
cmp esi, 0xffffffff
jne 0x40a636
cmp byte [ebp - 0x19], 0
lea eax, [ebp + 0x30]
push dword [ebp - 0x28]
cmovne eax, dword [ebp + 0x30]
add eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
sete al
test al, al
jne 0x40a691
push 4
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x28], 0
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x2c], 0
push str.appx
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
call fcn.004034a0
mov dword [ebp - 4], 0x18
lea eax, [ebp + 0x18]
mov ebx, 7
lea ecx, [ebp + 0x30]
push eax
mov dword [ebp - 0x18], ebx
call fcn.00405f20
mov byte [ebp - 0xd], 0
test al, al
je 0x40a695
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0x17
test bl, 4
je 0x40a6af
and ebx, 0xfffffffb
lea ecx, [ebp + 0x18]
mov dword [ebp - 0x18], ebx
call fcn.00403cb0
mov dword [ebp - 4], 0x16
test bl, 2
je 0x40a70f
and ebx, 0xfffffffd
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp + 0x5c]
cmp ecx, 8
jb 0x40a6fb
mov edx, dword [ebp + 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a6f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab6f
push ecx
push edx
call fcn.00452877
add esp, 8
xor eax, eax
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 7
mov word [ebp + 0x48], ax
mov dword [ebp - 4], 0xe
test bl, 1
je 0x40a76f
and ebx, 0xfffffffe
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp + 0x14]
cmp ecx, 8
jb 0x40a75b
mov edx, dword [ebp]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a751
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab6f
push ecx
push edx
call fcn.00452877
add esp, 8
xor eax, eax
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
mov word [ebp], ax
cmp byte [ebp - 0xd], 0
je 0x40a837
lea esi, [ebp + 0x30]
mov byte [ebp - 4], 0x19
push 0xc
call fcn.004528a8
lea ecx, [edi + 0x14]
mov dword [ebp - 0x2c], eax
or ebx, 8
mov dword [ebp - 0x18], ebx
mov dword [eax], ecx
lea ecx, [ebp - 0x20]
push ecx
push 0
push eax
push 0x40f1c0
push 0
mov dword [eax + 4], esi
push 0
mov dword [eax + 8], 0x40c4a0
call fcn.0045d701
add esp, 0x1c
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40ab8e
and ebx, 0xfffffff7
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 0x1b
cmp dword [ebp - 0x20], 0
je 0x40ab74
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
je 0x40ab7b
push 0
push ecx
push dword [ebp - 0x24]
call fcn.004514a5
add esp, 0xc
test eax, eax
jne 0x40ab82
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov byte [ebp - 4], 0x1c
cmp dword [ebp - 0x20], eax
jne 0x40ab89
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x20], eax
jne 0x40ab89
cmp dword [edi + 0x14], 0
lea eax, [edi + 0x14]
sete bl
or esi, 0xffffffff
jmp 0x40a99b
call fcn.004256e0
test al, al
je 0x40a912
mov edx, dword [edi + 4]
xor eax, eax
mov ecx, edx
mov dword [ebp], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
lea esi, [ecx + 2]
mov word [ebp], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a875
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp]
call fcn.004034a0
mov byte [ebp - 4], 0x1d
xor eax, eax
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x28], 0
lea esi, [ecx + 2]
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a8c2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x18]
call fcn.004034a0
mov byte [ebp - 4], 0x1e
lea ecx, [edi + 0x14]
push ecx
lea eax, [ebp]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.0040b160
mov bl, al
mov byte [ebp - 4], 0x1d
lea ecx, [ebp + 0x18]
call fcn.00403cb0
mov byte [ebp - 4], 0xe
lea ecx, [ebp]
call fcn.00403cb0
or esi, 0xffffffff
jmp 0x40a998
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x40ab9c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x1f
mov eax, 0x48f2b0
lea ecx, [ebp - 0x14]
test eax, 0xffff0000
jne 0x40a94a
movzx eax, ax
push eax
call fcn.00404b50
jmp 0x40a956
push 0
push 0x48f2b0
call fcn.00404e30
mov byte [ebp - 4], 0x20
lea ecx, [edi + 0x14]
push ecx
sub esp, 0xc
lea eax, [ebp - 0x14]
lea edx, [edi + 4]
mov ecx, edi
push dword [ebp - 0x20]
push eax
call fcn.00424e10
add esp, 0x18
mov bl, al
mov byte [ebp - 4], 0xe
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a998
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 0x14]
test bl, bl
jne 0x40aa66
mov ebx, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
cmp byte [0x4a89dc], 0
je 0x40aad0
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x40aba6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x14]
push 0x15
push str.Launch_failed._Error:
call fcn.00404870
mov edx, dword [ebx + 0x14]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00426ba0
add esp, 4
mov byte [ebp - 4], 0x25
mov edx, dword [eax]
test edx, edx
je 0x40aa1c
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40aa03
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.00404870
lea eax, [ebp - 0x14]
mov ecx, 0x4a89a4
push eax
call fcn.00427b30
mov byte [ebp - 4], 0x24
mov eax, esi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40aa48
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40aa66
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x4a89dc], 0
je 0x40aad0
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x40abb0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x14]
push 0x1d
push str.Return_code_of_launched_file:
call fcn.00404870
push dword [edi + 0x14]
lea ecx, [ebp - 0x14]
call fcn.00422ce0
push eax
mov ecx, 0x4a89a4
call fcn.00427b30
mov byte [ebp - 4], 0xe
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40aad0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi + 0x18]
lea ecx, [ebp - 0x34]
call fcn.0040bf70
mov byte [ebp - 4], 0x2e
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x38]
mov ecx, dword [eax]
push dword [edi]
push edx
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [edi]
cmp eax, 0xbc2
je 0x40ab06
and eax, 0xc0000000
cmp eax, 0xc0000000
jne 0x40ab11
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi], 0
sete bl
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40ab33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.00403cb0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x60]
xor ecx, ebp
call fcn.00452869
lea esp, [ebp + 0x64]
pop ebp
ret 4
push 1
push 0xc000008c
call fcn.004134e0
call fcn.00457a3f
push 1
call fcn.00451434
push 5
call fcn.00451434
push 2
call fcn.00451434
call fcn.0045d4f1
push 6
mov dword [ebp - 0x20], 0
call fcn.00451434
push 0x80004005
call fcn.00402f30
push 0x80004005
call fcn.00402f30
push 0x80004005
call fcn.00402f30
int3