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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c565
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 0x40eabf
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 0x40e073
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 0x40e0ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x238]
test edi, edi
je 0x40e0ef
cmp dword [0x438ab4], 0xffffffff
jne 0x40e0ef
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 0x40e0ef
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 0x40e15c
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40e15c
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 0x40e15c
cmp byte [0x438ab9], 0
je 0x40e15c
mov ecx, 0x438ab0
call fcn.004043a0
call fcn.00401920
mov ecx, eax
test ecx, ecx
je 0x40eac9
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 0x40ead3
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.00410ed2
mov edx, eax
add esp, 8
test edx, edx
je 0x40e248
mov ecx, dword [ebp - 0x224]
sub edx, ecx
sar edx, 1
test edx, edx
jle 0x40e248
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 0x40e242
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 0x40e278
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 0x40e299
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 0x40e30a
test esi, esi
je 0x40e30a
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40e30a
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e2d0
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 0x40e30a
cmp byte [0x438ab9], 0
je 0x40e30a
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 0x40e35d
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40e35d
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push str.__
push 8
mov eax, dword [eax + 0x3c]
call eax
test al, al
je 0x40e35d
cmp byte [0x438ab9], 0
je 0x40e35d
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 0x40e3d7
cmp dword [esi + 0xc], 0
jl 0x40e3c9
mov eax, dword [ebx]
cmp eax, dword [esi]
jne 0x40e3c9
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 0x40e3bf
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 0x40e3d7
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 0x40e43d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x40e53a
push 0x2710
push dword [0x438aa8]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x40e53a
inc esi
cmp esi, 5
jl 0x40e3e0
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 0x40e465
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 0x40e4ee
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40e4ee
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e4a0
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 0x40e4ee
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push 0x433f28
push 4
call dword [eax + 0x3c]
cmp byte [0x438ab9], 0
je 0x40e4ee
mov ecx, 0x438ab0
call fcn.004043a0
cmp byte [ebp - 0x219], 0
je 0x40ea48
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 0x40e560
mov ecx, 0xc
jmp 0x40e574
mov byte [ebp - 4], 2
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x40e553
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
xor cl, cl
mov byte [ebp - 0x219], cl
jmp 0x40e465
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x40e56f
cmp eax, 9
jbe 0x40e57f
mov ecx, 0xd
call fcn.00408c20
mov eax, dword [ebp - 0x228]
mov ecx, dword [0x439810]
test ecx, ecx
je 0x40e59d
push ecx
push eax
push 0x915
push dword [0x43982c]
call ebx
jmp 0x40ea62
cmp eax, 2
je 0x40e69b
push 0x141c
push 0x439840
call fcn.004057e0
test al, al
jne 0x40e5d3
push 0xc
push dword [ebp - 0x228]
push 0x915
push dword [0x43982c]
call ebx
jmp 0x40ea62
mov ecx, dword [0x43ac58]
test ecx, ecx
je 0x40e69b
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 0x40e614
imul eax, ecx, 0x28e
add eax, dword [0x43ac68]
mov dword [0x43ac6c], eax
jmp 0x40e668
jbe 0x40e668
mov eax, dword [0x43ac70]
sub eax, dword [0x43ac68]
sar eax, 1
imul eax, eax, 0xf3795877
cmp ecx, eax
jbe 0x40e63c
push ecx
push ecx
call fcn.0040f220
mov ecx, dword [0x43ac58]
jmp 0x40e668
mov eax, ecx
sub eax, esi
je 0x40e662
imul esi, eax, 0x28e
push esi
push 0
push edx
call fcn.00411750
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 0x40e69b
xor ebx, ebx
mov eax, dword [0x43ac68]
add eax, ebx
push 0x28e
push eax
call fcn.004057e0
test al, al
je 0x40e702
inc esi
add ebx, 0x28e
cmp esi, dword [0x43ac58]
jl 0x40e670
mov ebx, dword [sym.imp.USER32.dll_SendNotifyMessageW]
lea eax, [ebp - 0x240]
push eax
push 0
push 0
push 0x40df20
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 0x40e6d0
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.0x40e6fb.6
jmp dword [eax*4 + 0x40eae0]
push 0xc
push dword [ebp - 0x228]
push 0x915
push dword [0x43982c]
jmp 0x40ea5c
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 0x40e776
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 0x40e78f
test edx, edx
jne 0x40e7a5
push 5
push 6
push 0x915
push dword [0x43982c]
mov dword [0x439830], eax
call ebx
or ecx, 0xffffffff
call fcn.0040b2c0
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.0x40e6fb.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.0040be60
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 0x40e954
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x439830]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x37
ja 0x40e856
test edx, edx
jne 0x40e86c
push 0x32
push 6
push 0x915
push dword [0x43982c]
mov dword [0x439830], eax
call ebx
call fcn.0040a130
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x64
push 6
push 0x915
push dword [0x43982c]
mov dword [0x439830], eax
call ebx
jmp 0x40e94d
push 0x43a84a
lea ecx, [ebp - 0x220]
call fcn.004031f0
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00408ad0
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 0x40e8db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0x219]
test al, al
jne 0x40e94d
mov ecx, 0xe
call fcn.00408c20
jmp 0x40e94d
call fcn.0040c520
jmp 0x40e94d
call fcn.0040a7b0
jmp 0x40e94d
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.00409ef0
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 0x40e9a7
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 0x40ea0e
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x40ea0e
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 0x40ea0e
mov eax, dword [vtable.CLogImplW.0]
mov ecx, 0x438aac
push 0x433f28
push 4
call dword [eax + 0x3c]
cmp byte [0x438ab9], 0
je 0x40ea0e
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 0x40ea44
mov eax, dword [0x438ab4]
cmp eax, 0xffffffff
je 0x40ea44
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 0x40ea64
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 0x40ea85
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 0x40eaa1
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.0040f784
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004016f0
push 0x80004005
call fcn.004016f0
push 0x80004005
call fcn.004016f0
nop dword [eax]
sbb ah, bh
inc eax
add cl, dh
out 0x40, eax
add dl, dh
call 0xe939eb2e
inc eax
add byte [0x610040e8], bh
jmp 0xe8d2eb3a