Function at 0x42ee00
Capabilities:
Check os version
Delete file
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x47cd80
push 0x41e4a0
mov eax, dword fs:[0]
push eax
add esp, 0xfffffa2c
mov eax, dword [0x481288]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x5d8], ecx
mov byte [ebp - 0x435], 0
mov byte [ebp - 0x449], 0
mov byte [ebp - 0x451], 0
mov byte [ebp - 0x452], 0
mov dword [ebp - 0x440], 0xffffffff
mov dword [ebp - 0x43c], 0
mov word [ebp - 0x228], 0
push 0x206
push 0
lea eax, [ebp - 0x226]
push eax
call fcn.00415680
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, 0xc
mov esi, str.Tencentoccupy_test.tmp
lea edi, [ebp - 0x494]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x104
lea ecx, [ebp - 0x228]
push ecx
push 0x46debc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x42eec9
jmp 0x42efcb
push 0x19
lea edx, [ebp - 0x494]
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.00419164
add esp, 0xc
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0xffffffff
jne 0x42ef25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._r_nCreate_Temp_File_fail:_x_r_n
call fcn.00430110
add esp, 8
jmp 0x42efcb
mov byte [ebp - 0x451], 1
mov edx, dword [str.abcdefg]
mov dword [ebp - 0x4a8], edx
mov eax, dword [0x46df0c]
mov dword [ebp - 0x4a4], eax
mov ecx, dword [0x46df10]
mov dword [ebp - 0x4a0], ecx
mov edx, dword [0x46df14]
mov dword [ebp - 0x49c], edx
mov dword [ebp - 0x498], 0
push 0
lea eax, [ebp - 0x498]
push eax
push 0x10
lea ecx, [ebp - 0x4a8]
push ecx
mov edx, dword [ebp - 0x440]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x498], 0
jne 0x42ef8f
jmp 0x42efcb
push 0
mov eax, dword [ebp - 0x498]
push eax
push 0
push 2
push 0
mov ecx, dword [ebp - 0x440]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x42efbc
jmp 0x42efcb
mov byte [ebp - 0x452], 1
xor edx, edx
jne 0x42eea9
movzx eax, byte [ebp - 0x452]
test eax, eax
jne 0x42efe6
movzx ecx, byte [ebp - 0x451]
test ecx, ecx
jne 0x42efe6
jmp 0x42f124
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x5d8]
call fcn.0042eb40
mov dword [ebp - 0x458], eax
cmp dword [ebp - 0x458], 0
jne 0x42f009
jmp 0x42f124
mov eax, dword [ebp - 0x458]
mov ecx, dword [eax]
mov dword [ebp - 0x460], ecx
mov byte [ebp - 0x45a], 0
mov byte [ebp - 0x459], 0
mov edx, dword [ebp - 0x460]
sub edx, 1
mov dword [ebp - 0x4ac], edx
jmp 0x42f045
mov eax, dword [ebp - 0x4ac]
sub eax, 1
mov dword [ebp - 0x4ac], eax
cmp dword [ebp - 0x4ac], 0
jle 0x42f124
mov ecx, dword [ebp - 0x4ac]
shl ecx, 4
mov edx, dword [ebp - 0x458]
lea eax, [edx + ecx + 4]
mov dword [ebp - 0x4b0], eax
movzx ecx, byte [ebp - 0x451]
test ecx, ecx
je 0x42f0b3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [ebp - 0x4b0]
cmp dword [edx], eax
jne 0x42f0b3
mov eax, dword [ebp - 0x4b0]
movzx ecx, word [eax + 6]
movzx edx, word [ebp - 0x440]
cmp ecx, edx
jne 0x42f0b3
mov eax, dword [ebp - 0x4b0]
mov cl, byte [eax + 4]
mov byte [ebp - 0x435], cl
mov byte [ebp - 0x45a], 1
jmp 0x42f0f9
movzx edx, byte [ebp - 0x452]
test edx, edx
je 0x42f0f9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x4b0]
cmp dword [ecx], eax
jne 0x42f0f9
mov edx, dword [ebp - 0x4b0]
movzx eax, word [edx + 6]
movzx ecx, word [ebp - 0x43c]
cmp eax, ecx
jne 0x42f0f9
mov edx, dword [ebp - 0x4b0]
mov al, byte [edx + 4]
mov byte [ebp - 0x449], al
mov byte [ebp - 0x459], 1
movzx ecx, byte [ebp - 0x452]
movzx edx, byte [ebp - 0x459]
xor ecx, edx
jne 0x42f11f
movzx eax, byte [ebp - 0x451]
movzx ecx, byte [ebp - 0x45a]
xor eax, ecx
jne 0x42f11f
jmp 0x42f124
jmp 0x42f036
mov dword [ebp - 4], 0xfffffffe
jmp 0x42f13d
cmp dword [ebp - 0x43c], 0
je 0x42f153
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x440], 0xffffffff
je 0x42f169
mov eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x228]
push ecx
call fcn.00414d31
add esp, 4
test eax, eax
je 0x42f189
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
movzx eax, byte [ebp - 0x435]
test eax, eax
je 0x42f1a3
movzx ecx, byte [ebp - 0x449]
test ecx, ecx
jne 0x42f25a
push 0x114
push 0
lea edx, [ebp - 0x5c8]
push edx
call fcn.00415680
add esp, 0xc
mov dword [ebp - 0x5c8], 0x114
lea eax, [ebp - 0x5c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x5c4], 5
jne 0x42f216
cmp dword [ebp - 0x5c0], 1
jne 0x42f216
movzx ecx, byte [ebp - 0x435]
test ecx, ecx
jne 0x42f1fb
mov byte [ebp - 0x435], 0x1c
mov byte [ebp - 0x451], 1
movzx edx, byte [ebp - 0x449]
test edx, edx
jne 0x42f214
mov byte [ebp - 0x449], 0x13
mov byte [ebp - 0x452], 1
jmp 0x42f25a
cmp dword [ebp - 0x5c4], 6
jne 0x42f25a
cmp dword [ebp - 0x5c0], 1
jne 0x42f25a
movzx eax, byte [ebp - 0x435]
test eax, eax
jne 0x42f241
mov byte [ebp - 0x435], 0x1c
mov byte [ebp - 0x451], 1
movzx ecx, byte [ebp - 0x449]
test ecx, ecx
jne 0x42f25a
mov byte [ebp - 0x449], 0x21
mov byte [ebp - 0x452], 1
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x5d8]
call fcn.0042eb40
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x42f280
xor eax, eax
jmp 0x42f533
mov dword [ebp - 0x448], 1
mov dword [ebp - 0x450], 1
mov word [ebp - 0x430], 0
push 0x206
push 0
lea eax, [ebp - 0x42e]
push eax
call fcn.00415680
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov dword [ebp - 0x444], edx
mov dword [ebp - 0x5cc], 0
jmp 0x42f2d9
mov eax, dword [ebp - 0x5cc]
add eax, 1
mov dword [ebp - 0x5cc], eax
mov ecx, dword [ebp - 0x5cc]
cmp ecx, dword [ebp - 0x444]
jae 0x42f52d
mov edx, dword [ebp - 0x5d8]
cmp dword [edx + 0xc], 0
je 0x42f30a
mov eax, dword [ebp - 0x5d8]
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x42f30a
jmp 0x42f52d
mov edx, dword [ebp - 0x5cc]
shl edx, 4
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + edx + 4]
mov dword [ebp - 0x5d0], ecx
movzx edx, byte [ebp - 0x451]
test edx, edx
je 0x42f417
mov eax, dword [ebp - 0x5d0]
movzx ecx, byte [eax + 4]
movzx edx, byte [ebp - 0x435]
cmp ecx, edx
jne 0x42f417
mov dword [ebp - 0x5d4], 0
mov dword [ebp - 0x434], 0x104
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x430]
push ecx
mov edx, dword [ebp - 0x5d0]
movzx eax, word [edx + 6]
push eax
mov ecx, dword [ebp - 0x5d0]
mov edx, dword [ecx]
push edx
call fcn.0042e680
add esp, 0x10
mov dword [ebp - 0x450], eax
cmp dword [ebp + 8], 0
jne 0x42f39b
cmp dword [ebp - 0x450], 0
je 0x42f412
push 1
mov eax, dword [ebp - 0x450]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x434]
push eax
mov ecx, dword [ebp - 0x450]
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0x430]
and ecx, edx
push ecx
mov eax, dword [ebp - 0x5d0]
movzx ecx, word [eax + 6]
push ecx
mov edx, dword [ebp - 0x5d0]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x5d8]
mov ecx, dword [ecx + 0x10]
call fcn.00464750
test eax, eax
je 0x42f3fc
cmp dword [ebp - 0x448], 0
je 0x42f3fc
mov dword [ebp - 0x5dc], 1
jmp 0x42f406
mov dword [ebp - 0x5dc], 0
mov edx, dword [ebp - 0x5dc]
mov dword [ebp - 0x448], edx
jmp 0x42f528
movzx eax, byte [ebp - 0x452]
test eax, eax
je 0x42f528
mov ecx, dword [ebp - 0x5d0]
movzx edx, byte [ecx + 4]
movzx eax, byte [ebp - 0x449]
cmp edx, eax
jne 0x42f528
mov dword [ebp - 0x434], 0x104
push 0x104
lea ecx, [ebp - 0x430]
push ecx
mov edx, dword [ebp - 0x5d0]
movzx eax, word [edx + 6]
push eax
mov ecx, dword [ebp - 0x5d0]
mov edx, dword [ecx]
push edx
call fcn.0042e880
add esp, 0x10
test eax, eax
je 0x42f48c
movzx eax, word [ebp - 0x430]
test eax, eax
je 0x42f48c
mov dword [ebp - 0x5e0], 1
jmp 0x42f496
mov dword [ebp - 0x5e0], 0
mov ecx, dword [ebp - 0x5e0]
mov dword [ebp - 0x450], ecx
cmp dword [ebp + 8], 0
jne 0x42f4b1
cmp dword [ebp - 0x450], 0
je 0x42f528
push 3
mov edx, dword [ebp - 0x450]
neg edx
sbb edx, edx
and edx, dword [ebp - 0x434]
push edx
mov eax, dword [ebp - 0x450]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x430]
and eax, ecx
push eax
mov edx, dword [ebp - 0x5d0]
movzx eax, word [edx + 6]
push eax
mov ecx, dword [ebp - 0x5d0]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x5d8]
mov ecx, dword [eax + 0x10]
call fcn.00464750
test eax, eax
je 0x42f512
cmp dword [ebp - 0x448], 0
je 0x42f512
mov dword [ebp - 0x5e4], 1
jmp 0x42f51c
mov dword [ebp - 0x5e4], 0
mov ecx, dword [ebp - 0x5e4]
mov dword [ebp - 0x448], ecx
jmp 0x42f2ca
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004151d0
mov esp, ebp
pop ebp
ret 8