Function at 0x40c850
Capabilities:
Check for time delay via gettickcount
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45a55e
mov eax, dword fs:[0]
push eax
sub esp, 0xc68
mov eax, dword [0x46e3d0]
xor eax, esp
mov dword [esp + 0xc60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d0]
xor eax, esp
push eax
lea eax, [esp + 0xc7c]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [0x471ee4], ebx
je 0x40c8cb
mov eax, dword [0x471ef0]
mov esi, 8
cmp dword [0x471f04], esi
jae 0x40c8ac
mov eax, 0x471ef0
push eax
push 0x4610dc
push 0x208
lea eax, [esp + 0x668]
push 0x104
push eax
call fcn.0043ef21
jmp 0x40c900
cmp dword [0x472060], 8
mov eax, dword [0x47204c]
jae 0x40c8de
mov eax, 0x47204c
push eax
push 0x4610dc
push 0x208
lea ecx, [esp + 0x668]
push 0x104
push ecx
call fcn.0043ef21
mov esi, 8
mov eax, dword [0x471fc0]
add esp, 0x14
cmp dword [0x471fd4], esi
jae 0x40c915
mov eax, 0x471fc0
push eax
push str._sprogram_filesTencentQTalkMiscTXSSOTXSSO
push 0x208
lea edx, [esp + 0x60]
push 0x104
push edx
call fcn.0043ef21
mov eax, dword [0x471fc0]
add esp, 0x14
cmp dword [0x471fd4], esi
jae 0x40c944
mov eax, 0x471fc0
push eax
push str._sprogram_filesTencentQTalkMiscTXSSOInstTXSSO.exe
push 0x208
lea eax, [esp + 0xa78]
push 0x104
push eax
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0x54]
push ecx
push 0x4611d8
push 0x208
lea edx, [esp + 0x870]
push 0x104
push edx
call fcn.0043ef21
add esp, 0x14
push 5
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x86c]
push ecx
lea edx, [esp + 0xa78]
push edx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebp, ebp
cmp eax, 0x20
lea edi, [ebp + 7]
jg 0x40cb16
lea esp, [esp]
cmp ebp, 2
jae 0x40cb16
push eax
add ebp, 1
push ebp
push 0x4611e8
push 0x400
lea eax, [esp + 0x26c]
push 0x200
push eax
call fcn.0043ef21
add esp, 0x18
lea ecx, [esp + 0x38]
call fcn.0042a750
mov dword [esp + 0xc84], ebx
lea eax, [esp + 0x25c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ca14
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x260]
push ecx
lea esi, [esp + 0x20]
call fcn.00406f20
mov edx, esi
push ebx
push edx
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0xc8c], 1
call fcn.00406d90
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x40ca65
mov eax, dword [esp + 0x1c]
push eax
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x50], esi
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
jae 0x40ca80
lea edx, [esp + 0x3c]
mov edi, dword [0x471b30]
cmp edi, ebx
je 0x40cabb
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ca90
sub eax, esi
sar eax, 1
push edi
lea ecx, [eax + eax]
push ecx
push 1
push edx
call fcn.0043fe21
mov edx, dword [0x471b30]
push edx
call fcn.004402ef
add esp, 0x14
mov dword [esp + 0xc84], 0xffffffff
cmp dword [esp + 0x50], 8
jb 0x40cada
mov eax, dword [esp + 0x3c]
push eax
call fcn.0043ef40
add esp, 4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 5
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x86c]
push edx
lea eax, [esp + 0xa78]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
mov edi, 7
jle 0x40c9c0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0xc8c]
lea ecx, [esp + 0x25c]
push eax
push 0x461234
push 0x400
push 0x200
push ecx
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0x38]
call fcn.0042a750
mov dword [esp + 0xc84], 2
lea eax, [esp + 0x25c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40cb70
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x260]
push edx
lea esi, [esp + 0x20]
call fcn.00406f20
mov eax, esi
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0xc8c], 3
call fcn.00406d90
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x40cbc1
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x50], esi
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
jae 0x40cbdc
lea edx, [esp + 0x3c]
mov edi, dword [0x471b30]
cmp edi, ebx
je 0x40cc1a
mov eax, edx
lea esi, [eax + 2]
jmp 0x40cbf0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40cbf0
sub eax, esi
sar eax, 1
push edi
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
mov dword [esp + 0xc84], 0xffffffff
cmp dword [esp + 0x50], 8
jb 0x40cc39
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043ef40
add esp, 4
cmp dword [0x471fd4], 8
mov eax, dword [0x471fc0]
jae 0x40cc4c
mov eax, 0x471fc0
push eax
push str._sTXSSOTXSSO
push 0x208
lea eax, [esp + 0x60]
push 0x104
push eax
call fcn.0043ef21
mov eax, dword [0x47204c]
mov edi, 8
add esp, 0x14
cmp dword [0x472060], edi
jae 0x40cc80
mov eax, 0x47204c
push eax
push str._sMiscTXSSOTXSSO
push 0x208
lea ecx, [esp + 0x668]
push 0x104
push ecx
call fcn.0043ef21
add esp, 0x14
cmp ebp, 2
jb 0x40ceaa
mov ebp, 7
lea eax, [esp + 0x65c]
mov dword [esp + 0x34], 0x1388
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ccd0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x660]
push edx
lea esi, [esp + 0x40]
call fcn.00406f20
mov dword [esp + 0xc84], 4
lea eax, [esp + 0x54]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40cd10
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x58]
push eax
lea esi, [esp + 0x20]
call fcn.00406f20
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x3c]
push edx
mov eax, esi
push eax
mov byte [esp + 0xc90], 5
call fcn.00423630
add esp, 0xc
test eax, eax
sete byte [esp + 0x17]
cmp dword [esp + 0x30], edi
jb 0x40cd65
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043ef40
add esp, 4
mov dword [esp + 0xc84], 0xffffffff
cmp dword [esp + 0x50], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
jb 0x40cd90
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043ef40
add esp, 4
cmp byte [esp + 0x17], bl
je 0x40ceaa
push 0x4612b8
push 0x400
lea eax, [esp + 0x264]
push 0x200
push eax
call fcn.0043ef21
add esp, 0x10
lea ecx, [esp + 0x38]
call fcn.0042a750
mov dword [esp + 0xc84], 6
lea eax, [esp + 0x25c]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40cde4
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x260]
push ecx
lea esi, [esp + 0x20]
call fcn.00406f20
mov edx, esi
push ebx
push edx
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0xc8c], 7
call fcn.00406d90
cmp dword [esp + 0x30], edi
jb 0x40ce30
mov eax, dword [esp + 0x1c]
push eax
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x50], edi
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
jae 0x40ce4b
lea edx, [esp + 0x3c]
mov edi, dword [0x471b30]
cmp edi, ebx
je 0x40ce8b
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ce60
sub eax, esi
sar eax, 1
push edi
lea ecx, [eax + eax]
push ecx
push 1
push edx
call fcn.0043fe21
mov edx, dword [0x471b30]
push edx
call fcn.004402ef
add esp, 0x14
mov dword [esp + 0xc84], 0xffffffff
cmp dword [esp + 0x50], 8
jb 0x40ceaa
mov eax, dword [esp + 0x3c]
push eax
call fcn.0043ef40
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0xc8c]
lea ecx, [esp + 0x25c]
push eax
push 0x4612ec
push 0x400
push 0x200
push ecx
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0x38]
call fcn.0042a750
mov edi, 8
mov dword [esp + 0xc84], edi
mov ebp, 7
lea eax, [esp + 0x25c]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea edx, [eax + 2]
jmp 0x40cf10
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40cf10
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x260]
push edx
lea esi, [esp + 0x20]
call fcn.00406f20
mov eax, esi
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0xc8c], 9
call fcn.00406d90
cmp dword [esp + 0x30], edi
jb 0x40cf5c
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x50], edi
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
jae 0x40cf77
lea edx, [esp + 0x3c]
mov edi, dword [0x471b30]
cmp edi, ebx
je 0x40cfb0
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40cf86
sub eax, esi
sar eax, 1
push edi
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
mov dword [esp + 0xc84], 0xffffffff
cmp dword [esp + 0x50], 8
jb 0x40cfcf
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043ef40
add esp, 4
cmp dword [0x471ee4], ebx
je 0x40cfeb
push 0x71ac
mov ecx, 1
call fcn.00418f60
add esp, 4
jmp 0x40d006
call fcn.00406bc0
fld dword [0x466430]
mov eax, dword [eax + 0x40]
push eax
push ecx
fstp dword [esp]
call fcn.0040b580
add esp, 8
mov ecx, dword [esp + 0xc7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc60]
xor ecx, esp
call fcn.0043ef12
add esp, 0xc74
ret