Function at 0x40b5d0
Capabilities:
Create pipe
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42930e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x480
mov eax, dword [0x434014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x3b8]
mov dword [ebp - 0x3bc], eax
mov edi, 0x430f00
mov eax, 0x400000
mov byte [ebp - 0x3e9], 0
mov dword [ebp - 0x3f4], 0x3e8
mov dword [ebp - 0x404], 0x7d0
mov dword [ebp - 0x45c], 0x1f4
mov dword [ebp - 0x414], 0x2710
mov dword [ebp - 0x3e4], 0x430f00
mov dword [ebp - 0x430], 0xffffffff
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x40c], 8
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x3c8], edi
call fcn.004013f0
mov esi, 1
mov dword [ebp - 4], 0
cmp dword [ebx + 8], esi
jle 0x40c8f5
mov eax, dword [ebp - 0x3bc]
nop dword [eax]
mov eax, dword [eax + esi*4]
xor dl, dl
mov byte [ebp - 0x3bd], dl
mov cl, byte [eax]
cmp cl, 0x2d
jne 0x40b6fa
mov al, byte [eax + 1]
test al, al
je 0x40b6fa
mov dword [ebp - 0x3e0], eax
mov eax, dword [ebp - 0x3bc]
mov edi, dword [eax + esi*4]
mov eax, dword [ebp - 0x3e0]
cmp byte [edi + 2], dl
mov edi, dword [ebp - 0x3c8]
jne 0x40b6fa
mov dl, al
mov byte [ebp - 0x3bd], dl
cmp dl, 0x68
je 0x40ba27
mov eax, dword [ebx + 8]
dec eax
cmp esi, eax
jge 0x40b941
cmp dl, 0x34
jne 0x40b717
mov byte [ebp - 0x3e9], 1
jmp 0x40b9bc
cmp dl, 0x69
je 0x40b8c4
cmp dl, 0x74
je 0x40b8c4
cmp dl, 0x70
je 0x40b8c4
cmp dl, 0x61
jne 0x40b788
mov eax, dword [ebp - 0x3bc]
inc esi
push 0
push dword [eax + esi*4]
call fcn.0041938a
fstp qword [ebp - 0x400]
movsd xmm0, qword [ebp - 0x400]
xorps xmm1, xmm1
add esp, 8
comisd xmm0, xmm1
jb 0x40b7e1
movsd xmm1, qword [0x431528]
comisd xmm1, xmm0
jb 0x40b7e1
mulsd xmm0, qword [0x431530]
call fcn.00428ea0
mov dword [ebp - 0x414], eax
jmp 0x40b9bc
cmp dl, 0x63
jne 0x40b7a2
mov eax, dword [ebp - 0x3bc]
inc esi
mov ecx, dword [eax + esi*4]
mov dword [ebp - 0x3e4], ecx
jmp 0x40b9c2
cmp dl, 0x72
je 0x40b849
cmp dl, 0x66
je 0x40b849
mov eax, dword [ebp - 0x3bc]
cmp dl, 0x73
jne 0x40b809
inc esi
push 0xa
push 0
push dword [eax + esi*4]
call fcn.00419e89
add esp, 0xc
mov dword [ebp - 0x40c], eax
lea ecx, [eax - 2]
cmp ecx, 0x61
jbe 0x40b9bc
push esi
push str.Error:_argument__d_is_invalid._n
push 2
call fcn.004131bb
add esp, 4
push eax
call fcn.00401060
add esp, 0xc
mov dword [ebp - 0x3bc], 1
jmp 0x40c917
cmp dl, 0x6d
jne 0x40b83a
inc esi
push 0xa
push 0
push dword [eax + esi*4]
call fcn.00419e89
shl eax, 0xa
add esp, 0xc
mov dword [ebp - 0x460], eax
lea ecx, [eax - 0x8000]
cmp ecx, 0x1ff8000
ja 0x40b7e1
jmp 0x40b9bc
cmp dl, 0x67
jne 0x40b9c2
inc esi
jmp 0x40b9c2
mov eax, dword [ebp - 0x3bc]
inc esi
push 0
push dword [eax + esi*4]
call fcn.0041938a
fstp qword [ebp - 0x400]
movsd xmm0, qword [ebp - 0x400]
xorps xmm1, xmm1
add esp, 8
comisd xmm0, xmm1
jb 0x40b7e1
movsd xmm1, qword [0x431530]
comisd xmm1, xmm0
jb 0x40b7e1
mulsd xmm0, qword [0x431518]
lea eax, [ebp - 0x430]
cmp byte [ebp - 0x3bd], 0x66
lea edx, [ebp - 0x408]
cmovne eax, edx
cvttsd2si ecx, xmm0
mov dword [eax], ecx
test ecx, ecx
je 0x40b9bc
cmp ecx, 0x64
jl 0x40b7e1
jmp 0x40b9bc
mov eax, dword [ebp - 0x3bc]
inc esi
push 0
push dword [eax + esi*4]
call fcn.0041938a
fstp qword [ebp - 0x400]
movsd xmm0, qword [ebp - 0x400]
xorps xmm1, xmm1
add esp, 8
comisd xmm0, xmm1
jb 0x40b7e1
movsd xmm1, qword [0x431520]
comisd xmm1, xmm0
jb 0x40b7e1
mov cl, byte [ebp - 0x3bd]
cmp cl, 0x69
jne 0x40b918
lea edi, [ebp - 0x3f4]
jmp 0x40b92a
cmp cl, 0x74
lea edi, [ebp - 0x404]
lea eax, [ebp - 0x45c]
cmovne edi, eax
mulsd xmm0, qword [0x431530]
call fcn.00428ea0
mov dword [edi], eax
mov edi, dword [ebp - 0x3c8]
jmp 0x40b9bc
mov eax, dword [ebp - 0x3bc]
mov edx, dword [eax + esi*4]
mov edi, edx
xor eax, eax
mov dword [ebp - 0x3c8], edi
test cl, cl
je 0x40b7e1
nop dword [eax]
cmp eax, 0x41
jae 0x40b9a3
test eax, eax
jne 0x40b973
cmp cl, 0x2d
jne 0x40b973
cmp byte [edi + 1], al
jmp 0x40b994
cmp cl, 0x30
jl 0x40b97d
cmp cl, 0x39
jle 0x40b996
cmp cl, 0x41
jl 0x40b987
cmp cl, 0x5a
jle 0x40b996
cmp cl, 0x61
jl 0x40b991
cmp cl, 0x7a
jle 0x40b996
cmp cl, 0x5f
jne 0x40b9a3
mov cl, byte [eax + edi + 1]
inc eax
test cl, cl
jne 0x40b960
mov cl, byte [edx]
jmp 0x40b9b4
mov cl, byte [0x430f00]
mov edi, 0x430f00
mov dword [ebp - 0x3c8], edi
test cl, cl
je 0x40b7e1
mov eax, dword [ebp - 0x3bc]
inc esi
cmp esi, dword [ebx + 8]
jl 0x40b6b0
cmp byte [edi], 0
je 0x40c8f5
cmp dword [ebp - 0x430], 0
jge 0x40b9f2
mov eax, dword [ebp - 0x408]
lea eax, [eax + eax*2]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x430], eax
push 0
call fcn.004131bb
add esp, 4
mov dword [ebp - 0x3e0], eax
push 0x8000
push eax
call fcn.0041991c
add esp, 4
push eax
call fcn.004196f1
add esp, 8
test eax, eax
jns 0x40ba4b
push str.Error:__setmode._n
jmp 0x40c8fa
push str.Usage:_tsmemseg___4___i_inittime___t_time___p_ptime___a_acc_timeout___c_cmd___r_readrate___f_fill_readrate___s_seg_num___m_max_kbytes___g_dir__seg_name_n
push 2
call fcn.004131bb
add esp, 4
push eax
call fcn.00401060
mov dword [ebp - 0x3bc], 2
jmp 0x40c914
cmp byte [edi], 0x2d
jne 0x40bba7
push 1
call fcn.004131bb
add esp, 4
mov esi, eax
push 0x8000
push esi
call fcn.0041991c
add esp, 4
push eax
call fcn.004196f1
add esp, 8
test eax, eax
js 0x40ba1d
mov cl, byte [ebp - 0x3e9]
lea eax, [ebp - 0x3dc]
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x3b8]
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x3bd]
mov dword [ebp - 0x458], esi
mov byte [ebp - 0x454], cl
movups xmm0, xmmword [ebp - 0x458]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x3dc], 0
mov byte [ebp - 0x3bd], 0
mov dword [ebp - 0x70], vtable.std::_Func_impl_no_alloc_class__lambda_8fe66cb6c7ca5479a9c83082fdcf242d___bool__bool__bool__long_long___int64___struct_PMT_const___class_std::vector_unsigned_char__class_std::allocator_unsigned_char____.0
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x408]
mov dl, cl
mov ecx, dword [ebp - 0x3e0]
push eax
mov eax, dword [ebp - 0x460]
push eax
push 0
push dword [ebp - 0x45c]
push dword [ebp - 0x404]
push dword [ebp - 0x3f4]
call fcn.0040a3d0
mov ecx, dword [ebp - 0x1c]
add esp, 0x20
test ecx, ecx
je 0x40bb42
mov edx, dword [ecx]
lea eax, [ebp - 0x40]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x40bb5a
mov edx, dword [ecx]
lea eax, [ebp - 0x70]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x40bb7d
push eax
push str.Warning:__u_sync_error_happened._n
push 2
call fcn.004131bb
add esp, 4
push eax
call fcn.00401060
add esp, 0xc
mov eax, dword [ebp - 0x3dc]
test eax, eax
je 0x40bba0
push eax
push str.Warning:__u_forced_segmentation_happened._n
push 2
call fcn.004131bb
add esp, 4
push eax
call fcn.00401060
add esp, 0xc
xor esi, esi
jmp 0x40c91d
mov dword [ebp - 0x3d8], 0
mov dword [ebp - 0x3d4], 0
mov dword [ebp - 0x3d0], 0
push 0
push 0
push 1
push 0
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x43c], eax
test eax, eax
je 0x40c948
xor eax, eax
xor edi, edi
mov dword [ebp - 0x3f0], eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], edi
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x448], eax
mov byte [ebp - 4], 5
mov eax, 0xb21642c9
mov esi, dword [ebp - 0x3d4]
mov ecx, esi
sub ecx, dword [ebp - 0x3d8]
imul ecx
mov dword [ebp - 0x410], edi
add edx, ecx
mov ecx, dword [ebp - 0x40c]
sar edx, 8
inc ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x3dc], eax
cmp eax, ecx
jae 0x40bf15
nop word [eax + eax]
push 0x138
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.00411a50
xorps xmm0, xmm0
mov dword [ebp - 0xf0], 0
add esp, 0xc
mov dword [ebp - 0xdc], 0
movups xmmword [ebp - 0x100], xmm0
mov dword [ebp - 0xd8], 0
movups xmmword [ebp - 0xec], xmm0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x238]
push dword [ebp - 0x3dc]
push dword [ebp - 0x3c8]
push str..pipe_tsmemseg__s_02d
push eax
call fcn.00409880
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x3cc], eax
lea eax, [ebp - 0x138]
mov dword [ebp - 0x3dc], eax
push 4
call fcn.0041015d
mov esi, eax
add esp, 4
mov dword [ebp - 0x440], esi
push 0
push 1
push 1
push 0
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
test eax, eax
je 0x40c969
mov byte [ebp - 4], 6
mov dword [ebp - 0x3c4], esi
cmp edi, dword [ebp - 0x438]
je 0x40bd2e
mov dword [edi], esi
add edi, 4
mov dword [ebp - 0x44c], edi
jmp 0x40bd53
lea eax, [ebp - 0x3c4]
push eax
push edi
lea ecx, [ebp - 0x450]
call fcn.0040db10
mov eax, dword [ebp - 0x448]
mov edi, dword [ebp - 0x44c]
mov dword [ebp - 0x438], eax
push 0
push 0
push 0
push 0xbc00
push 2
push 0
push 0x40000002
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov ecx, dword [ebp - 0x3dc]
cmp eax, 0xffffffff
mov dword [ecx], eax
mov eax, dword [ebp - 0x3cc]
je 0x40bda2
inc eax
add ecx, 0x1c
mov dword [ebp - 0x3cc], eax
mov dword [ebp - 0x3dc], ecx
cmp eax, 2
jb 0x40bce1
jmp 0x40bdab
cmp eax, 2
jb 0x40bfc7
mov eax, dword [ebp - 0x3d4]
mov dword [ebp - 0xe8], 0x1000000
cmp dword [ebp - 0x3d8], eax
je 0x40be93
cmp dword [ebp - 0x410], 0
mov ecx, 0xbc
mov esi, dword [ebp - 0xfc]
mov eax, 0x178
mov edx, dword [ebp - 0x100]
cmovne ecx, eax
sub esi, edx
mov dword [ebp - 0x3cc], ecx
cmp ecx, esi
jbe 0x40be4d
mov eax, dword [ebp - 0xf8]
sub eax, edx
cmp ecx, eax
jbe 0x40be0f
push ecx
lea ecx, [ebp - 0x100]
call fcn.00409740
xor ecx, ecx
jmp 0x40be1d
push esi
push 0
push edx
call fcn.00411a50
add esp, 0xc
mov ecx, esi
mov eax, dword [ebp - 0x3cc]
mov esi, dword [ebp - 0xfc]
sub eax, ecx
push eax
push 0
push esi
mov dword [ebp - 0x3cc], eax
call fcn.00411a50
mov eax, dword [ebp - 0x3cc]
add esp, 0xc
add eax, esi
mov dword [ebp - 0xfc], eax
jmp 0x40be66
lea esi, [ecx + edx]
mov eax, esi
sub eax, edx
push eax
push 0
push edx
call fcn.00411a50
add esp, 0xc
mov dword [ebp - 0xfc], esi
mov edx, dword [ebp - 0x410]
lea eax, [ebp - 0x3a4]
push eax
push dword [ebp - 0x3e9]
lea ecx, [ebp - 0x100]
push dword [ebp - 0xe8]
call fcn.0040a200
mov eax, dword [ebp - 0x3d4]
add esp, 0xc
lea ecx, [ebp - 0x238]
push ecx
cmp eax, dword [ebp - 0x3d0]
je 0x40beb8
mov edx, eax
call fcn.0040e2a0
add esp, 4
add dword [ebp - 0x3d4], 0x170
jmp 0x40bec4
push eax
lea ecx, [ebp - 0x3d8]
call fcn.0040e3f0
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 5
call fcn.0040d2d0
mov esi, dword [ebp - 0x3d4]
mov eax, 0xb21642c9
mov ecx, esi
sub ecx, dword [ebp - 0x3d8]
imul ecx
add edx, ecx
mov ecx, dword [ebp - 0x40c]
sar edx, 8
inc ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x3dc], eax
cmp eax, ecx
jb 0x40bc50
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x3f0], eax
mov ecx, esi
mov eax, 0xb21642c9
sub ecx, dword [ebp - 0x3d8]
imul ecx
add edx, ecx
mov ecx, dword [ebp - 0x40c]
sar edx, 8
inc ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
jae 0x40bff2
cmp esi, dword [ebp - 0x3d8]
je 0x40bfa0
nop word [eax + eax]
lea eax, [esi - 0x70]
mov edx, 2
mov dword [ebp - 0x3f4], eax
mov dword [ebp - 0x404], edx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40bf7e
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x3f4]
mov edx, dword [ebp - 0x404]
add eax, 0x1c
sub edx, 1
mov dword [ebp - 0x3f4], eax
mov dword [ebp - 0x404], edx
jne 0x40bf64
sub esi, 0x170
cmp esi, dword [ebp - 0x3d8]
jne 0x40bf50
push str.Error:_pipe_fifo_creation_failed._n
push 2
call fcn.004131bb
add esp, 4
push eax
call fcn.00401060
add esp, 8
mov dword [ebp - 0x3bc], 1
jmp 0x40c7e0
cmp eax, 1
jne 0x40bfd8
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 5
call fcn.0040d2d0
mov esi, dword [ebp - 0x3d4]
jmp 0x40bf09
mov ecx, dword [ebp - 0x3d8]
lea eax, [ebp - 0x2f0]
mov edx, dword [ebp - 0x410]
push eax
push dword [ebp - 0x3e9]
lea eax, [ebp - 0x3d8]
push 0
push 0
push 1
push eax
lea ecx, [ecx + 0x138]
call fcn.00409e40
call fcn.00409960
mov dword [ebp - 0x478], eax
lea eax, [ebp - 0xa0]
push 0x102
push eax
mov dword [ebp - 0x474], edx
call fcn.0040fc2d
add esp, 0x20
xorps xmm0, xmm0
movq qword [ebp - 0x400], xmm0
xor eax, eax
xor esi, esi
mov dword [ebp - 0x3c8], esi
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x3cc], eax
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x478]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x3e4]
cmp byte [eax], 0
je 0x40c10e
push 0x14
call fcn.0041015d
mov ecx, dword [ebp - 0x414]
add esp, 4
mov dword [ebp - 0x3c4], eax
mov dword [eax], ecx
lea ecx, [ebp - 0x434]
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x43c]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x3e4]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0x409a10
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 0xb
push ecx
push esi
push eax
push 0x40ec30
push esi
push esi
call fcn.004194fd
add esp, 0x18
mov dword [ebp - 0x444], eax
test eax, eax
je 0x40c98a
mov ecx, dword [ebp - 0x440]
mov dword [ebp - 0x3e4], ecx
mov dword [ebp - 0x400], eax
mov dword [ebp - 0x3fc], ecx
jmp 0x40c11a
mov eax, dword [ebp - 0x3fc]
mov dword [ebp - 0x3e4], eax
xor ecx, ecx
mov eax, 0xb21642c9
mov dword [ebp - 0x3dc], ecx
mov ecx, dword [ebp - 0x3d4]
sub ecx, dword [ebp - 0x3d8]
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40c362
lea eax, [ebp - 0x434]
mov dword [ebp - 0x3bc], 0
mov dword [ebp - 0x468], eax
xor esi, esi
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x3c8], esi
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x420]
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x3c4], eax
lea eax, [ebp - 0x3c4]
push eax
push 0
call fcn.00408770
mov ecx, dword [ebp - 0x3c8]
lea eax, [ecx + 0x28]
cmp ecx, eax
jae 0x40c237
mov eax, dword [ebp - 0x3f0]
mov ecx, dword [ebp - 0x41c]
mov edx, dword [ebp - 0x3c8]
mov dword [ebp - 0x3c4], edi
sub edi, eax
sar edi, 2
nop dword [eax]
cmp esi, edi
jae 0x40c231
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
mov dword [ebp - 0x3c4], eax
cmp ecx, dword [ebp - 0x418]
je 0x40c204
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x41c], ecx
jmp 0x40c223
lea eax, [ebp - 0x3c4]
push eax
push ecx
lea ecx, [ebp - 0x420]
call fcn.00408770
mov ecx, dword [ebp - 0x41c]
mov edx, dword [ebp - 0x3c8]
lea eax, [edx + 0x28]
inc esi
cmp esi, eax
mov eax, dword [ebp - 0x3f0]
jb 0x40c1e0
mov edi, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x3d8]
add eax, dword [ebp - 0x3bc]
mov esi, dword [ebp - 0x428]
mov dword [ebp - 0x3c4], eax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x3c4]
push eax
push 0x409a60
cmp esi, dword [ebp - 0x3cc]
je 0x40c28d
mov edx, esi
call fcn.0040dcc0
add esp, 0x14
add esi, 8
mov dword [ebp - 0x428], esi
jmp 0x40c2a5
push esi
lea ecx, [ebp - 0x42c]
call fcn.0040ddb0
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x3cc], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x420]
test ecx, ecx
je 0x40c30b
mov eax, dword [ebp - 0x418]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c2e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c9bb
push edx
push ecx
call fcn.0041018d
add esp, 8
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
mov ecx, dword [ebp - 0x3d4]
mov eax, 0xb21642c9
sub ecx, dword [ebp - 0x3d8]
mov esi, dword [ebp - 0x3c8]
add dword [ebp - 0x3dc], 0x14
add esi, 0x28
add dword [ebp - 0x3bc], 0x1cc0
imul ecx
mov dword [ebp - 0x3c8], esi
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x3dc], eax
jb 0x40c171
mov esi, dword [ebp - 0x42c]
mov dword [ebp - 0x3c8], esi
mov al, byte [ebp - 0x3e9]
xorps xmm0, xmm0
mov byte [ebp - 0x48], al
mov eax, dword [ebp - 0x40c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x3b8]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3d8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3e5]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x470]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x488]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x490]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x480]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 0x46c], 1
mov dword [ebp - 0x470], 0
mov byte [ebp - 0x3e5], 0
mov dword [ebp - 0x464], 0
movlpd qword [ebp - 0x490], xmm0
movlpd qword [ebp - 0x480], xmm0
movlpd qword [ebp - 0x488], xmm0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xa4], 0
push 0x34
mov byte [ebp - 4], 0xd
call fcn.0041015d
movups xmm0, xmmword [ebp - 0x48]
add esp, 4
movups xmmword [eax + 4], xmm0
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_b6a4e7cf8b45ff7b297dd40ae9ff3b66___bool__bool__bool__long_long___int64___struct_PMT_const___class_std::vector_unsigned_char__class_std::allocator_unsigned_char____.0
movups xmm0, xmmword [ebp - 0x38]
movups xmmword [eax + 0x14], xmm0
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [eax + 0x24], xmm0
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x408]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x434]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x430]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3d8]
movups xmm0, xmmword [ebp - 0x34]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x478]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x480]
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x70]
movq xmm0, qword [ebp - 0x24]
mov dword [ebp - 0x70], vtable.std::_Func_impl_no_alloc_class__lambda_77810aa6bc514536f7c665cbee540011___bool__long_long___int64__.0
movq qword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x464]
push eax
mov eax, dword [ebp - 0x460]
push eax
push eax
push dword [ebp - 0x45c]
push dword [ebp - 0x404]
push dword [ebp - 0x3f4]
mov dl, byte [ebp - 0x3e9]
mov ecx, dword [ebp - 0x3e0]
call fcn.0040a3d0
mov ecx, dword [ebp - 0x4c]
add esp, 0x20
test ecx, ecx
je 0x40c50b
mov edx, dword [ecx]
lea eax, [ebp - 0x70]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0xa4]
test ecx, ecx
je 0x40c52d
mov edx, dword [ecx]
lea eax, [ebp - 0xc8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0x3c4], eax
call fcn.0040fc4e
add esp, 4
test eax, eax
jne 0x40c99b
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x3d8]
mov eax, dword [ecx + 0x144]
lea edx, [ecx + 0x144]
cmp eax, dword [edx + 4]
jne 0x40c57f
cmp byte [ecx + 0x119], 0
jne 0x40c57f
cmp byte [ecx + 0x135], 0
jne 0x40c57f
add ecx, 0x138
jmp 0x40c581
mov ecx, edx
mov edx, dword [ebp - 0x410]
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp - 0x3e9]
lea eax, [ebp - 0x3d8]
push 0
push 1
push dword [ebp - 0x46c]
push eax
call fcn.00409e40
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xa
push eax
call fcn.0040fc5f
mov eax, dword [ebp - 0x464]
add esp, 0x1c
test eax, eax
je 0x40c5e0
push eax
push str.Warning:__u_sync_error_happened._n
push 2
call fcn.004131bb
add esp, 4
push eax
call fcn.00401060
add esp, 0xc
cmp dword [ebp - 0x414], 0
je 0x40c64d
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
mov esi, dword [ebp - 0x434]
call fcn.00409960
sub eax, esi
cmp eax, dword [ebp - 0x414]
jae 0x40c60b
push 0x64
call edi
jmp 0x40c5f0
mov eax, dword [ebp - 0x448]
mov esi, dword [ebp - 0x42c]
mov edi, dword [ebp - 0x44c]
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x3f0], eax
mov eax, dword [ebp - 0x3fc]
mov dword [ebp - 0x3e4], eax
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x3cc], eax
mov dword [ebp - 0x3c8], esi
push dword [ebp - 0x43c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x428]
cmp esi, eax
je 0x40c6ba
lea esi, [eax - 4]
cmp dword [esi], 0
je 0x40c9a8
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esi], eax
je 0x40c9a1
push 0
push dword [esi]
push dword [esi - 4]
call fcn.0040fd19
add esp, 0xc
test eax, eax
jne 0x40c9af
mov dword [esi - 4], eax
mov dword [esi], eax
test eax, eax
jne 0x40c9b6
mov eax, dword [ebp - 0x428]
sub esi, 8
sub eax, 8
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x3c8], eax
jne 0x40c666
mov esi, dword [ebp - 0x3e4]
test esi, esi
je 0x40c701
call sub.KERNEL32.dll_GetCurrentThreadId
cmp esi, eax
je 0x40c9a1
push 0
push esi
push dword [ebp - 0x400]
call fcn.0040fd19
add esp, 0xc
test eax, eax
jne 0x40c9af
xorps xmm0, xmm0
movlpd qword [ebp - 0x400], xmm0
mov eax, dword [ebp - 0x3fc]
mov dword [ebp - 0x3e4], eax
mov esi, dword [ebp - 0x3d4]
cmp esi, dword [ebp - 0x3d8]
je 0x40c760
nop
lea eax, [esi - 0x70]
mov edx, 2
mov dword [ebp - 0x3e0], eax
mov dword [ebp - 0x3c4], edx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40c73e
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x3e0]
mov edx, dword [ebp - 0x3c4]
add eax, 0x1c
sub edx, 1
mov dword [ebp - 0x3e0], eax
mov dword [ebp - 0x3c4], edx
jne 0x40c724
sub esi, 0x170
cmp esi, dword [ebp - 0x3d8]
jne 0x40c710
mov edx, dword [ebp - 0x3c8]
mov dword [ebp - 0x3bc], 0
test edx, edx
je 0x40c7c4
mov eax, dword [ebp - 0x428]
mov ecx, edx
cmp ecx, eax
je 0x40c791
cmp dword [ecx + 4], 0
jne 0x40c9b6
add ecx, 8
cmp ecx, eax
jne 0x40c780
mov ecx, dword [ebp - 0x3cc]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x40c7ba
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c9bb
push ecx
push edx
call fcn.0041018d
add esp, 8
cmp dword [ebp - 0x3e4], 0
jne 0x40c9b6
lea eax, [ebp - 0xa0]
push eax
call fcn.0040fc0e
add esp, 4
mov edx, dword [ebp - 0x3f0]
test edx, edx
je 0x40c854
mov esi, edx
cmp esi, edi
je 0x40c821
mov eax, dword [esi]
mov dword [ebp - 0x3e0], eax
test eax, eax
je 0x40c814
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 4
push dword [ebp - 0x3e0]
call fcn.0041018d
add esp, 8
add esi, 4
cmp esi, edi
jne 0x40c7f0
mov edx, dword [ebp - 0x3f0]
mov ecx, dword [ebp - 0x438]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x40c84a
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c9bb
push ecx
push edx
call fcn.0041018d
add esp, 8
push dword [ebp - 0x43c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x3d8]
test esi, esi
je 0x40c917
mov edi, dword [ebp - 0x3d4]
cmp esi, edi
je 0x40c88f
mov ecx, esi
call fcn.0040d2d0
add esi, 0x170
cmp esi, edi
jne 0x40c878
mov esi, dword [ebp - 0x3d8]
mov ecx, dword [ebp - 0x3d0]
mov eax, 0xb21642c9
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x170
mov eax, esi
cmp ecx, 0x1000
jb 0x40c8ce
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c9bb
push ecx
push esi
call fcn.0041018d
mov dword [ebp - 0x3d8], 0
mov dword [ebp - 0x3d4], 0
mov dword [ebp - 0x3d0], 0
jmp 0x40c914
push str.Error:_not_enough_arguments._n
push 2
call fcn.004131bb
add esp, 4
push eax
call fcn.00401060
mov dword [ebp - 0x3bc], 1
add esp, 8
mov esi, dword [ebp - 0x3bc]
lea ecx, [ebp - 0x3b8]
call fcn.0040cdb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041014f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x430f00
lea ecx, [ebp - 0x450]
call fcn.004098c0
push 0x432ef8
lea eax, [ebp - 0x450]
push eax
call fcn.00411458
push 0x430f00
lea ecx, [ebp - 0x42c]
call fcn.004098c0
push 0x432ef8
lea eax, [ebp - 0x42c]
push eax
call fcn.00411458
push 6
mov dword [ebp - 0x440], 0
call fcn.0040f7a6
push eax
call fcn.0040f779
push 5
call fcn.0040f7a6
push 1
call fcn.0040f7a6
push 2
call fcn.0040f7a6
call fcn.004198e0
call fcn.00415c30
int3