Function at 0x417870
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x436b81
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x453358]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453358]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
call fcn.00416630
mov ebp, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x417b0c
mov ecx, dword [ebp + 0x20]
cmp dword [ecx - 8], 0
jne 0x4178d9
mov edx, dword [ebp + 0x5c]
cmp dword [edx - 8], 0
je 0x417b0c
mov ebx, dword [ebp + 0x60]
cmp dword [ebx - 0xc], 0
jl 0x4178f2
lea eax, [ebx - 0xc]
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41790a
mov ecx, dword [0x4444f4]
mov dword [esp + 0x14], ecx
push ebx
lea ecx, [esp + 0x18]
call fcn.00409560
mov ebx, dword [esp + 0x14]
mov eax, ebx
mov dword [esp + 0x25c], 0
call fcn.00416670
test eax, eax
jg 0x41792c
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x417a82
mov esi, dword [0x4444f4]
mov edi, esi
mov dword [esp + 0x18], edi
xor eax, eax
mov byte [esp + 0x24], 0
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov word [esp + 0x35], ax
mov byte [esp + 0x37], al
mov dword [esp + 0x1c], esi
lea edx, [esp + 0x24]
push edx
push ebx
mov byte [esp + 0x264], 2
call fcn.004163e0
add esp, 8
test al, al
je 0x4179b4
xor esi, esi
jmp 0x417980
movzx eax, byte [esp + esi + 0x24]
push eax
lea ecx, [esp + 0x1c]
push str._02X
push ecx
call fcn.00409ff0
mov edi, dword [esp + 0x24]
mov edx, dword [edi - 8]
add esp, 0xc
push edi
push edx
lea ecx, [esp + 0x24]
call fcn.00408620
inc esi
cmp esi, 0x14
jl 0x417980
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x60]
mov ebx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
push eax
push ecx
push ebx
call fcn.004169a0
push 0x208
lea edx, [esp + 0x4c]
push 0
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x40]
push ecx
push ebx
call fcn.00416a60
mov eax, dword [ebp + 0x5c]
mov ebx, dword [sym.imp.MSVCR90.dll__wcsicmp]
push esi
push eax
call ebx
add esp, 8
test eax, eax
je 0x417aa8
mov ebp, dword [ebp + 0xb8]
lea edx, [esp + 0x48]
push edx
push ebp
call ebx
add esp, 8
test eax, eax
je 0x417aa8
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi - 0xc]
cmp ecx, dword [0x4444f0]
je 0x417a5c
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x417a5c
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
lea edx, [edi - 0xc]
cmp edx, dword [0x4444f0]
je 0x417a7e
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x417a7e
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ebx, dword [esp + 0x14]
lea eax, [ebx - 0xc]
cmp eax, dword [0x4444f0]
je 0x417aa4
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x417aa4
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov al, 1
jmp 0x417b0e
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esi - 0xc]
cmp ecx, dword [0x4444f0]
je 0x417acc
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x417acc
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
lea edx, [edi - 0xc]
cmp edx, dword [0x4444f0]
je 0x417aea
lea esi, [edi - 0xc]
push esi
call ebx
test eax, eax
jg 0x417aea
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4444f0]
je 0x417b0c
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x417b0c
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.00434fc4
add esp, 0x24c
ret