Function at 0x401250
Capabilities:
Delete file
Get common file path
Terminate process

Disassembly:
sub esp, 0x7b0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x104
push 0x408cc4
push ebp
mov dword [0x408ecc], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40129a
mov dword [0x409024], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 0x407670
push eax
call fcn.004023b1
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
push 0x408ed0
call ebx
test eax, eax
jne 0x4012d3
mov dword [0x409024], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
push 0x407670
push ecx
mov dword [esp + 0x18], eax
call fcn.004023b1
mov edi, 0x40825c
or ecx, 0xffffffff
xor eax, eax
push 0x104
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x408bc0
mov esi, edi
mov edx, ecx
mov edi, 0x408ed0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.xl_x263dec.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x408ed0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
test eax, eax
jne 0x40135e
mov dword [0x409024], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 0x407670
push eax
call fcn.004023b1
mov edi, 0x40825c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x408bc0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.msg711.acm
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x408bc0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x2b8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4013f0
mov dword [0x409024], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
push 0x407670
push ecx
mov dword [esp + 0x18], eax
call fcn.004023b1
lea edx, [esp + 0x3bc]
lea eax, [esp + 0x5bc]
push edx
lea ecx, [esp + 0x4c0]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push 0x408cc4
call fcn.0040226a
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x14
lea edi, [esp + 0x5bc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
je 0x401495
lea ecx, [ebp - 1]
lea edx, [esp + 0x14]
push ecx
push str.__.2d
push edx
call fcn.00402218
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xb4]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str..avi
xor eax, eax
lea edx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x408dc8
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x2bc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x408dc8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40825c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x408dc8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x408dc8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 1
push 0
push 1
push 0
push 0x408dc8
call ebx
cmp eax, 0xffffffff
jne 0x40157a
inc ebp
cmp ebp, 0x64
jg 0x401637
jmp 0x401420
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x10000000
push 3
push 0
push 1
push 0x80000000
push 0x408cc4
call ebx
cmp eax, 0xffffffff
mov dword [0x408ecc], eax
jne 0x4015c7
mov dword [0x409024], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 0x407670
push eax
call fcn.004023b1
push 0x408fd8
push eax
call fcn.00401a80
add esp, 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40160f
mov dword [0x409024], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
push 0x407670
push edx
mov dword [esp + 0x18], eax
call fcn.004023b1
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [0x408fd4], eax
mov dword [0x409028], 0
mov dword [0x40902c], 0
pop ebx
add esp, 0x7b0
ret
push 0
push str.Error
push str.Out_of_tmp_file_space__please_clean_tmp_file
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.00402143
nop
nop
nop
nop
nop
nop
nop
nop
nop