Function at 0x4277f0
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46034c
push eax
mov dword fs:[0], esp
sub esp, 0x36c
xor eax, eax
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 8
lea edi, [esp + 0x50]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov edi, dword [0x476adc]
cmp edi, ebx
jne 0x427830
mov edi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x50]
mov eax, ecx
mov esi, edi
mov edi, edx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x4717f4
and ecx, 3
push 0x46f510
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x5c]
push ecx
call fcn.00406530
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x185]
mov byte [esp + 0x184], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x81]
mov byte [esp + 0x80], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x289]
mov byte [esp + 0x288], bl
rep stosd dword es:[edi], eax
add esp, 0x10
lea edx, [esp + 0x174]
stosw word es:[edi], ax
push edx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x70]
push eax
push ebx
push 0x4717f8
push 0x476804
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea edx, [esp + 0x30]
lea eax, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x30], ebx
call fcn.0040bc60
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea edx, [esp + 0x40]
push 0x46f500
push edx
call esi
mov eax, dword [esp + 0x3a4]
add esp, 0x18
cmp eax, ebx
mov eax, dword [0x476a5c]
je 0x42795d
cmp eax, ebx
jne 0x42794b
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x50]
push ecx
push edx
push eax
push 0x4722b0
jmp 0x427976
cmp eax, ebx
jne 0x427966
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x50]
push ecx
push edx
push eax
push 0x4722f0
lea eax, [esp + 0x288]
push eax
call esi
add esp, 0x14
lea ecx, [esp + 0x24]
lea edx, [esp + 0x70]
lea eax, [esp + 0x174]
push 1
push ebx
push 0x4722a4
push 1
push ebx
push ebx
push 1
push ecx
push edx
lea ecx, [esp + 0x29c]
push eax
push ecx
call fcn.004031b0
add esp, 0x2c
cmp eax, 1
jne 0x427b0f
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x427b0f
push ebx
push 0xfde9
push eax
call fcn.004062d0
add esp, 0xc
mov ecx, ebp
mov dword [esp + 0x2c], eax
push eax
call fcn.00427b30
lea edi, [esp + 0x174]
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x23]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
mov byte [esp + 0x18], dl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x427a41
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0x174]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x384], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x18]
sub edx, ecx
cmp edx, esi
ja 0x427a70
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
cmp esi, ebx
jbe 0x427ab5
mov eax, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x14]
lea ebp, [eax + esi]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x427ab5
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
lea esi, [esp + 0x70]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [eax + ebp], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x427ac2
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x427ada
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x427afe
mov al, byte [ecx - 1]
cmp al, bl
je 0x427af4
cmp al, 0xff
je 0x427af4
dec al
mov byte [ecx - 1], al
jmp 0x427afe
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x427b0f
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x37c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x378
ret 4