Function at 0x406b80
Capabilities:
Create thread
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431b30
mov eax, dword fs:[0]
push eax
sub esp, 0x204
mov eax, dword [0x44606c]
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
call fcn.004021c0
mov ecx, eax
test ecx, ecx
je 0x406fff
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, 0x440dd0
lea ecx, [ebp - 0x134]
add eax, 0x10
shr esi, 0x10
mov dword [ebp - 0x134], eax
test esi, esi
jne 0x406bed
mov eax, 0x440dd0
movzx edi, ax
push edi
call fcn.004098b0
jmp 0x406c01
push 0
push 0x440dd0
call fcn.00409ad0
mov eax, 0x440dd0
movzx edi, ax
call fcn.004021c0
mov ecx, eax
test ecx, ecx
je 0x407009
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x138], eax
test esi, esi
jne 0x406c30
push edi
call fcn.004098b0
jmp 0x406c3c
push 0
push 0x440dd0
call fcn.00409ad0
lea eax, [ebp - 0x130]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x130]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406c57
sub ecx, edx
lea eax, [ebp - 0x130]
push ecx
push eax
lea ecx, [ebp - 0x134]
call fcn.00409ad0
mov esi, dword [ebp - 0x134]
mov ecx, dword [esi - 0x10]
lea eax, [esi - 0x10]
mov dword [ebp - 0x210], eax
test ecx, ecx
je 0x406c94
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x406caa
call fcn.004021c0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x407013
mov eax, dword [ecx]
call dword [eax + 0xc]
push 8
push str.temp.txt
push dword [esi - 0xc]
add eax, 0x10
lea ecx, [ebp - 0x134]
mov edx, esi
mov dword [ebp - 0x134], eax
call fcn.00409310
mov eax, dword [ebp - 0x134]
add esp, 0xc
mov edi, dword [0x44800c]
or ebx, 0xffffffff
add edi, 0xfffffff0
lea esi, [eax - 0x10]
cmp esi, edi
je 0x406d38
cmp dword [edi + 0xc], 0
jl 0x406d2a
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x406d2a
mov ecx, esi
call fcn.004099f0
mov dword [ebp - 0x134], eax
lea edx, [edi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406d20
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x134]
add eax, 0x10
mov dword [0x44800c], eax
jmp 0x406d38
push dword [eax - 0xc]
mov ecx, 0x44800c
push eax
call fcn.00409ad0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x406d4c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
movaps xmm0, xmmword [0x4418b0]
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x6578
lea edx, [ecx + 1]
mov byte [ebp - 0x12], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406d67
sub ecx, edx
lea eax, [ebp - 0x24]
push ecx
push eax
mov ecx, 0x447f7c
call fcn.00409ad0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
nop word [eax + eax]
mov ecx, dword [0x447f7c]
call fcn.004023e0
test eax, eax
je 0x406dc0
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xc8
call edi
inc esi
cmp esi, 6
jl 0x406d90
push 0
push 0
push 0
push 0x405ec0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x3e8
call edi
nop dword [eax]
mov eax, dword [0x44800c]
mov ecx, eax
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406e05
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x150]
call fcn.00409390
push 0xb8
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.004155b0
cmp dword [ebp - 0x13c], 0x10
lea eax, [ebp - 0x150]
lea ecx, [ebp - 0x208]
cmovae eax, dword [ebp - 0x150]
push eax
call fcn.00407ab0
mov eax, dword [ebp - 0x208]
mov eax, dword [eax + 4]
mov esi, dword [ebp + eax - 0x1fc]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x208]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x20c], eax
lea ecx, [ebp - 0x1f8]
call fcn.00408700
mov eax, dword [ebp - 0x208]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x208]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x20c], eax
lea eax, [ebp - 0x198]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041218b
add esp, 4
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x406f23
push 0x1388
call edi
mov edx, dword [ebp - 0x13c]
cmp edx, 0x10
jb 0x406de0
mov ecx, dword [ebp - 0x150]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406f14
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40701d
push edx
push ecx
call fcn.004137b1
add esp, 8
jmp 0x406de0
lea ecx, [ebp - 0x20c]
call fcn.004063e0
mov edx, dword [ebp - 0x20c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406f4b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x3e8
call edi
mov edx, dword [ebp - 0x13c]
cmp edx, 0x10
jb 0x406f8c
mov ecx, dword [ebp - 0x150]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406f82
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40701d
push edx
push ecx
call fcn.004137b1
add esp, 8
mov edx, dword [ebp - 0x138]
mov eax, ebx
mov dword [ebp - 0x140], 0
add edx, 0xfffffff0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406fc4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x210]
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x406fdc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
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.00413261
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00402030
push 0x80004005
call fcn.00402030
push 0x80004005
call fcn.00402030
call fcn.004189c5
int3