Function at 0x40dfe0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c5a5
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x230], 0
mov eax, dword [0x43982c]
mov dword [ebp - 0x234], eax
call fcn.00401920
mov ecx, eax
test ecx, ecx
je 0x40eadf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x238], eax
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push eax
push 0
call esi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.004031f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x224]
cmp dword [eax - 4], 1
jle 0x40e093
push dword [eax - 0xc]
lea ecx, [ebp - 0x224]
call fcn.00401540
mov eax, dword [ebp - 0x224]
push eax
lea eax, [ebp - 0x238]
push str._s.log
push eax
call fcn.00407c20
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x224]
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e0cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x238]
test edi, edi
je 0x40e10f
cmp dword [0x438ab4], 0xffffffff
jne 0x40e10f
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x438ab4], eax
cmp eax, 0xffffffff
je 0x40e10f
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
call dword [eax + 0x10]
push 1
push str.launcherAssistant_started
mov ecx, 0x438aac
mov word [0x438ab9], 0x100
call fcn.004045e0
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x40e17c
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40e17c
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push str.OpenPipe_
push 0x14
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40e17c
cmp byte [0x438ab9], 0
je 0x40e17c
mov ecx, 0x438ab0
call fcn.004043a0
call fcn.00401920
mov ecx, eax
test ecx, ecx
je 0x40eae9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x23c], eax
push 0x104
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
push 0
call esi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.004031f0
mov dword [ebp - 0x230], 3
mov byte [ebp - 4], 4
call fcn.00401920
mov ecx, eax
test ecx, ecx
je 0x40eaf3
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0x5c
push dword [ebp - 0x224]
mov dword [ebp - 0x230], 7
lea esi, [eax + 0x10]
mov dword [ebp - 0x22c], esi
call fcn.00410f12
mov edx, eax
add esp, 8
test edx, edx
je 0x40e268
mov ecx, dword [ebp - 0x224]
sub edx, ecx
sar edx, 1
test edx, edx
jle 0x40e268
mov eax, dword [ecx - 0xc]
lea ecx, [ebp - 0x224]
sub eax, edx
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004076e0
push eax
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 5
call fcn.00403180
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e262
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x22c]
push esi
lea eax, [ebp - 0x23c]
push str..pipelauncher__s
push eax
call fcn.00407c20
add esp, 0xc
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e298
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e2b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0xc]
call eax
mov esi, dword [ebp - 0x23c]
test al, al
je 0x40e32a
test esi, esi
je 0x40e32a
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40e32a
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e2f0
sub ecx, edx
sar ecx, 1
push esi
lea eax, [ecx + ecx]
mov ecx, 0x438aac
push eax
mov eax, dword [vtable.CLogImplW.0]
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40e32a
cmp byte [0x438ab9], 0
je 0x40e32a
mov ecx, 0x438ab0
call fcn.004043a0
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x40e37d
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40e37d
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push str.__
push 8
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40e37d
cmp byte [0x438ab9], 0
je 0x40e37d
mov ecx, 0x438ab0
call fcn.004043a0
lea eax, [esi - 0x10]
mov ecx, eax
mov dword [ebp - 0x22c], eax
call fcn.00401350
mov ebx, eax
lea ecx, [ebx + 0x10]
mov dword [ebp - 0x220], ecx
mov byte [ebp - 4], 6
mov esi, dword [0x438aa8]
add esi, 0xfffffff0
cmp ebx, esi
je 0x40e3f7
cmp dword [esi + 0xc], 0
jl 0x40e3e9
mov eax, dword [ebx]
cmp eax, dword [esi]
jne 0x40e3e9
mov ecx, ebx
call fcn.00401350
mov dword [ebp - 0x230], eax
lea edx, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e3df
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x230]
add eax, 0x10
mov dword [0x438aa8], eax
jmp 0x40e3f7
push dword [ecx - 0xc]
push ecx
mov ecx, 0x438aa8
call fcn.00403530
xor esi, esi
nop dword [eax]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push dword [0x438aa8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x438aa4], eax
cmp eax, 0xffffffff
jne 0x40e45d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x40e55a
push 0x2710
push dword [0x438aa8]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x40e55a
inc esi
cmp esi, 5
jl 0x40e400
mov eax, dword [0x438aa4]
cmp eax, 0xffffffff
setne cl
mov byte [ebp - 4], 2
mov byte [ebp - 0x219], cl
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x40e485
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov cl, byte [ebp - 0x219]
test cl, cl
mov eax, str.fail
mov esi, 0x434770
mov ecx, 0x438aac
cmove esi, eax
mov eax, dword [vtable.CLogImplW.0]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x40e50e
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40e50e
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e4c0
sub ecx, edx
sar ecx, 1
push esi
lea eax, [ecx + ecx]
mov ecx, 0x438aac
push eax
mov eax, dword [vtable.CLogImplW.0]
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40e50e
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push 0x433f28
push 4
call dword [eax + 0x3c]
cmp byte [0x438ab9], 0
je 0x40e50e
mov ecx, 0x438ab0
call fcn.004043a0
cmp byte [ebp - 0x219], 0
je 0x40ea68
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [sym.imp.USER32.dll_SendNotifyMessageW]
push eax
push 0x914
push dword [ebp - 0x234]
call ebx
push 4
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0
push eax
call fcn.004057e0
test al, al
jne 0x40e580
mov ecx, 0xc
jmp 0x40e594
mov byte [ebp - 4], 2
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x40e573
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
xor cl, cl
mov byte [ebp - 0x219], cl
jmp 0x40e485
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x40e58f
cmp eax, 9
jbe 0x40e59f
mov ecx, 0xd
call fcn.00408c40
mov eax, dword [ebp - 0x228]
mov ecx, dword [0x439810]
test ecx, ecx
je 0x40e5bd
push ecx
push eax
push 0x915
push dword [0x43982c]
call ebx
jmp 0x40ea82
cmp eax, 2
je 0x40e6bb
push 0x141c
push 0x439840
call fcn.004057e0
test al, al
jne 0x40e5f3
push 0xc
push dword [ebp - 0x228]
push 0x915
push dword [0x43982c]
call ebx
jmp 0x40ea82
mov ecx, dword [0x43ac58]
test ecx, ecx
je 0x40e6bb
mov edx, dword [0x43ac6c]
mov eax, edx
sub eax, dword [0x43ac68]
sar eax, 1
imul esi, eax, 0xf3795877
mov dword [ebp - 0x220], edx
cmp ecx, esi
jae 0x40e634
imul eax, ecx, 0x28e
add eax, dword [0x43ac68]
mov dword [0x43ac6c], eax
jmp 0x40e688
jbe 0x40e688
mov eax, dword [0x43ac70]
sub eax, dword [0x43ac68]
sar eax, 1
imul eax, eax, 0xf3795877
cmp ecx, eax
jbe 0x40e65c
push ecx
push ecx
call fcn.0040f260
mov ecx, dword [0x43ac58]
jmp 0x40e688
mov eax, ecx
sub eax, esi
je 0x40e682
imul esi, eax, 0x28e
push esi
push 0
push edx
call fcn.00411790
mov edx, dword [ebp - 0x220]
add esp, 0xc
mov ecx, dword [0x43ac58]
add edx, esi
mov dword [0x43ac6c], edx
xor esi, esi
test ecx, ecx
jle 0x40e6bb
xor ebx, ebx
mov eax, dword [0x43ac68]
add eax, ebx
push 0x28e
push eax
call fcn.004057e0
test al, al
je 0x40e722
inc esi
add ebx, 0x28e
cmp esi, dword [0x43ac58]
jl 0x40e690
mov ebx, dword [sym.imp.USER32.dll_SendNotifyMessageW]
lea eax, [ebp - 0x240]
push eax
push 0
push 0
push 0x40df40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [ebp - 0x228]
mov ecx, 0x43a7c8
mov dword [ebp - 0x220], esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e6f0
sub ecx, edx
sar ecx, 1
push ecx
push 0x43a7c8
mov ecx, 0x43ac64
call fcn.00403530
lea eax, [esi - 1]
cmp eax, 7
ja case.0x40e71b.6
jmp dword [eax*4 + 0x40eb00]
push 0xc
push dword [ebp - 0x228]
push 0x915
push dword [0x43982c]
jmp 0x40ea7c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 6
push 0x915
push dword [0x43982c]
mov dword [0x439830], eax
call ebx
lea ecx, [ebp - 0x25c]
call fcn.00401d80
push 0x80000002
push ecx
mov ecx, esp
mov byte [ebp - 4], 7
push 0x439d96
call fcn.004031f0
lea ecx, [ebp - 0x25c]
call fcn.00401f70
cmp byte [ebp - 0x248], 0
je 0x40e796
lea ecx, [ebp - 0x25c]
call fcn.004029f0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x439830]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x37
ja 0x40e7af
test edx, edx
jne 0x40e7c5
push 5
push 6
push 0x915
push dword [0x43982c]
mov dword [0x439830], eax
call ebx
or ecx, 0xffffffff
call fcn.0040b2e0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x64
push 6
push 0x915
push dword [0x43982c]
mov dword [0x439830], eax
call ebx
push dword [0x439810]
push esi
push 0x915
push dword [0x43982c]
call ebx
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 2
call fcn.00401eb0
jmp case.0x40e71b.6
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push 0
push 6
push 0x915
push dword [0x43982c]
mov dword [0x439830], eax
call ebx
call fcn.0040be80
call esi
push 0x64
push 6
push 0x915
push dword [0x43982c]
mov dword [0x439830], eax
call ebx
push dword [0x439810]
push dword [ebp - 0x220]
jmp 0x40e974
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x439830]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x37
ja 0x40e876
test edx, edx
jne 0x40e88c
push 0x32
push 6
push 0x915
push dword [0x43982c]
mov dword [0x439830], eax
call ebx
call fcn.0040a150
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x64
push 6
push 0x915
push dword [0x43982c]
mov dword [0x439830], eax
call ebx
jmp 0x40e96d
push 0x43a84a
lea ecx, [ebp - 0x220]
call fcn.004031f0
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00408af0
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov edx, dword [ebp - 0x220]
mov byte [ebp - 0x219], al
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40e8fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0x219]
test al, al
jne 0x40e96d
mov ecx, 0xe
call fcn.00408c40
jmp 0x40e96d
call fcn.0040c540
jmp 0x40e96d
call fcn.0040a7d0
jmp 0x40e96d
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
push 0x439d96
mov byte [ebp - 0x219], 0
call fcn.004031f0
push ecx
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x234], esp
push 0x439844
call fcn.004031f0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xa
push 0x439a4e
call fcn.004031f0
mov cl, byte [ebp - 0x219]
mov byte [ebp - 4], 2
call fcn.00409f10
add esp, 0xc
push dword [0x439810]
push esi
push 0x915
push dword [0x43982c]
call ebx
push 0
push 0x433f20
mov ecx, 0x438aa8
call fcn.00403530
mov eax, dword [0x438aa4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x40e9c7
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [0x438aa4]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [0x438aa4]
call esi
mov dword [0x438aa4], 0xffffffff
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x40ea2e
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40ea2e
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push str.Pipe_closed
push 0x16
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40ea2e
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push 0x433f28
push 4
call dword [eax + 0x3c]
cmp byte [0x438ab9], 0
je 0x40ea2e
mov ecx, 0x438ab0
call fcn.004043a0
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x40ea64
mov eax, dword [0x438ab4]
cmp eax, 0xffffffff
je 0x40ea64
push eax
call esi
mov ecx, dword [0x438ab4]
test eax, eax
mov eax, 0xffffffff
cmovg ecx, eax
mov dword [0x438ab4], ecx
mov bl, 1
jmp 0x40ea84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xb
push eax
push 0x914
push dword [ebp - 0x234]
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
xor bl, bl
or esi, 0xffffffff
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x22c]
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40eaa5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x40eac1
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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 - 0x10]
xor ecx, ebp
call fcn.0040f7c4
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004016f0
push 0x80004005
call fcn.004016f0
push 0x80004005
call fcn.004016f0
nop dword [eax]
cmp ah, bh
inc eax
add byte [ecx], dl
call 0xe952eb4a
inc eax
add byte [ecx], bl
jmp 0xe89deb52