Function at 0x418367
Capabilities:
Delete file
Move file

Disassembly:
push 0x70
mov eax, 0x42f96d
call fcn.00428eb0
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x1c]
cmp eax, 0xc8
jne 0x41855b
mov eax, dword [esi + 0x5b8]
or eax, dword [esi + 0x5bc]
jne 0x4183ef
push dword [0x4452e8]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [edi + 0x3c]
call fcn.0041bf7f
cmp dword [eax + 0x18], 0x10
jb 0x4183c2
mov eax, dword [eax + 4]
jmp 0x4183c5
add eax, 4
push eax
call dword [sym.imp.MSVCR90.dll__atoi64]
pop ecx
lea ecx, [ebp - 0x60]
mov dword [esi + 0x5b8], eax
mov dword [esi + 0x5bc], edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esi + 0x5b0]
or eax, dword [esi + 0x5b4]
jne 0x418495
lea ebx, [esi + 0x570]
cmp dword [ebx + 0x18], 8
jb 0x418412
mov ecx, dword [ebx + 4]
jmp 0x418415
lea ecx, [ebx + 4]
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x445300]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x60]
add edi, 0x3c
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.0041bf7f
push ebx
push eax
mov ecx, esi
call fcn.00417c4e
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push edi
lea ecx, [esi + 0x5c0]
call fcn.00418084
push 0
mov ecx, esi
call fcn.00417893
jmp 0x418553
lea edi, [esi + 0x5a8]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x4184ac
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi], 0xffffffff
lea edi, [esi + 0x570]
cmp dword [edi + 0x18], 8
jb 0x4184bd
mov eax, dword [edi + 4]
jmp 0x4184c0
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x18], 8
jb 0x4184d2
mov ecx, dword [edi + 4]
jmp 0x4184d5
lea ecx, [edi + 4]
lea eax, [esi + 0x58c]
cmp dword [eax + 0x18], 8
jb 0x4184e6
mov eax, dword [eax + 4]
jmp 0x4184e9
add eax, 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x418545
push dword [0x445300]
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x7c]
add ebx, 0x3c
push eax
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.0041bf7f
push edi
push eax
mov ecx, esi
call fcn.00417c4e
lea ecx, [ebp - 0x7c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push ebx
jmp 0x41847c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
push eax
call fcn.0041783b
call fcn.00428f88
ret 8
cmp eax, 0x130
jne 0x41854d
add edi, 0x3c
push edi
lea ecx, [esi + 0x5c0]
call fcn.00418084
push 1
jmp 0x418489