Function at 0x402bdc
Capabilities:
Check os version
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x6bc
push esi
push edi
push 0x40138c
xor edi, edi
push 0x40137c
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x60], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x402c1b
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
xor eax, eax
cmp dword [ebp + 0x60], edi
mov dword [ebp - 0x38], 0x94
sete al
mov esi, eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402e77
cmp dword [ebp - 0x28], 2
jne 0x402c56
cmp dword [ebp - 0x34], 6
jne 0x402c56
cmp dword [ebp - 0x30], 1
je 0x402c58
cmp dword [ebp - 0x30], 2
je 0x402c58
xor esi, esi
cmp esi, edi
je 0x402e7d
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x240]
push eax
mov esi, 0x104
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x240]
push 0x401370
push eax
call fcn.00403620
pop ecx
lea eax, [ebp + eax - 0x240]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [ebp + 0x78]
lea eax, [ebp - 0x240]
push dword [ebp + 0x74]
push eax
call fcn.004024aa
test eax, eax
je 0x402e7d
push ebx
push esi
lea eax, [ebp - 0x54c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, 0x401360
lea eax, [ebp - 0x54c]
push ebx
push eax
call fcn.00403a60
pop ecx
pop ecx
lea eax, [ebp - 0x344]
push eax
push esi
call edi
lea eax, [ebp - 0x344]
push ebx
push eax
call fcn.00403a60
and dword [ebp + 0x68], 0
and dword [ebp + 0x64], 0
pop ecx
pop ecx
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x54c]
push eax
call fcn.0040250c
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x402e5f
push dword [ebp + 0x7c]
lea eax, [ebp - 0x240]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x68]
call fcn.00402f02
test eax, eax
je 0x402e56
push dword [ebp + 0x64]
lea eax, [ebp - 0x344]
push dword [ebp + 0x68]
push eax
call fcn.004024aa
test eax, eax
je 0x402e56
lea eax, [ebp - 0x13c]
push eax
push esi
call edi
lea eax, [ebp - 0x13c]
push 0x401350
push eax
call fcn.00403a60
pop ecx
pop ecx
lea eax, [ebp - 0x13c]
push eax
call ebx
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x344]
push eax
push 0x401338
push 0
call fcn.00402af9
add esp, 0x10
lea eax, [ebp - 0x13c]
push eax
call fcn.0040259b
test eax, eax
je 0x402e56
lea edi, [esi - 1]
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
lea eax, [ebp - 0x650]
push eax
call esi
lea eax, [ebp - 0x650]
push 0x401318
push eax
call fcn.00403a60
pop ecx
pop ecx
push edi
lea eax, [ebp - 0x448]
push eax
call esi
lea eax, [ebp - 0x448]
push 0x4012f8
push eax
call fcn.00403a60
lea eax, [ebp - 0x13c]
push eax
push 0x4012bc
push 0
call fcn.00402af9
add esp, 0x14
lea eax, [ebp - 0x448]
push eax
call fcn.0040259b
test eax, eax
je 0x402e4d
and dword [ebp + 0x78], 0
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp + 0x78]
push 0x4012ac
push eax
call fcn.00402af9
add esp, 0xc
test eax, eax
je 0x402e44
cmp dword [ebp + 0x78], 0x50574e44
jne 0x402e44
mov dword [ebp + 0x5c], 1
lea eax, [ebp - 0x448]
push eax
call ebx
lea eax, [ebp - 0x13c]
push eax
call ebx
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x344]
push eax
call ebx
lea eax, [ebp - 0x240]
push eax
call ebx
mov eax, dword [ebp + 0x5c]
pop ebx
jmp 0x402e7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop esi
add ebp, 0x6c
leave
ret 0xc