Function at 0x5423c0
Capabilities:
Delete file

Disassembly:
sub esp, 0x78
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x14], ebp
call fcn.00544010
mov ecx, dword [0x6553b8]
cmp ecx, ebp
mov esi, eax
mov eax, dword [esp + 0x9c]
mov dword [0x6553b4], eax
mov edi, ecx
je 0x5423fa
call fcn.005506c0
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0x5cabd4
lea ecx, [esp + 0x38]
mov dword [0x6553b8], ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
mov ebx, 1
call fcn.00544a40
test al, al
jne 0x54244d
push str.vmodule
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea edx, [esp + 0x18]
push edx
mov ecx, esi
mov ebx, 3
call fcn.00544a40
test al, al
mov byte [esp + 0x13], 0
je 0x542452
mov byte [esp + 0x13], 1
test bl, 2
je 0x542464
lea ecx, [esp + 0x18]
and ebx, 0xfffffffd
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, 1
je 0x542476
lea ecx, [esp + 0x34]
and ebx, 0xfffffffe
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp byte [esp + 0x13], 0
je 0x542537
push 0x14
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x5424ec
push str.vmodule
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x5cabd4
lea ecx, [esp + 0x38]
or ebx, 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x6553bc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x74]
push ecx
mov ecx, esi
or ebx, 0x38
call fcn.00545070
push eax
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x5c]
push eax
mov ecx, esi
call fcn.00545070
push eax
mov ecx, edi
call fcn.00550860
mov dword [0x6553b8], eax
jmp 0x5424f2
mov dword [0x6553b8], ebp
test bl, 0x20
je 0x542504
lea ecx, [esp + 0x50]
and ebx, 0xffffffdf
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, 0x10
je 0x542516
lea ecx, [esp + 0x6c]
and ebx, 0xffffffef
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, 8
je 0x542528
lea ecx, [esp + 0x34]
and ebx, 0xfffffff7
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, 4
je 0x542537
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [esp + 0x8c]
mov ecx, dword [esp + 0x94]
push esi
push ecx
call fcn.00542240
add esp, 8
cmp dword [0x6553e0], ebp
jne 0x542568
mov edx, dword [0x6553e4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x542573
mov ecx, dword [0x6553dc]
call fcn.0054ef70
mov eax, dword [0x6553c4]
cmp eax, ebp
je 0x542589
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x6553c4], ebp
mov eax, dword [esp + 0x90]
cmp eax, ebp
mov dword [0x610218], eax
je 0x542634
cmp eax, 2
je 0x542634
mov eax, dword [0x6553c0]
cmp eax, ebp
jne 0x5425ce
push 0x1c
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebp
je 0x5425c7
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
jmp 0x5425c9
xor eax, eax
mov dword [0x6553c0], eax
push esi
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [esp + 0x98], ebp
jne 0x5425fa
mov eax, dword [0x6553c0]
cmp dword [eax + 0x18], 8
jb 0x5425f0
mov eax, dword [eax + 4]
jmp 0x5425f3
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.005415e0
cmp dword [0x6553e0], ebp
mov bl, al
jne 0x54261f
mov eax, dword [0x6553e4]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x78
ret
mov ecx, dword [0x6553dc]
call fcn.0054ef80
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x78
ret
cmp dword [0x6553e0], ebp
jne 0x542653
mov ecx, dword [0x6553e4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x78
ret
mov ecx, dword [0x6553dc]
call fcn.0054ef80
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x78
ret