Function at 0x431580
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 1
mov dword [esp + 0x1c], ebp
call fcn.00430b10
mov ebx, eax
xor edi, edi
test ebx, ebx
jle 0x43160c
lea esp, [esp]
push edi
push 1
mov ecx, ebp
call fcn.00431460
lea esi, [eax + 0x64]
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x431607
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x431607
cmp dword [eax - 0xc], 0
lea ecx, [eax - 0xc]
jl 0x4315fb
add eax, 0xfffffff4
cmp eax, dword [0x4444f0]
je 0x431607
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4315f1
mov eax, dword [esi]
sub eax, 0xc
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [0x4444f4]
mov dword [esi], ecx
jmp 0x431607
push 0x43becc
mov ecx, esi
call fcn.00409560
inc edi
cmp edi, ebx
jl 0x4315a0
push 0
mov ecx, ebp
call fcn.00430b10
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
test eax, eax
jle 0x431720
push ebx
push 0
mov ecx, ebp
call fcn.00431460
lea esi, [eax + 0x64]
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x431711
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x431711
cmp dword [eax - 0xc], 0
lea ecx, [eax - 0xc]
jl 0x431690
add eax, 0xfffffff4
cmp eax, dword [0x4444f0]
je 0x431711
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x431684
mov edx, dword [esi]
sub edx, 0xc
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [0x4444f4]
mov dword [esi], eax
jmp 0x431711
push 0x43becc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 1
lea ecx, [eax - 0xc]
jg 0x4316ad
cmp edi, dword [eax - 4]
jle 0x4316e5
add eax, 0xfffffff4
cmp eax, dword [0x4444f0]
je 0x4316d9
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4316d1
mov ecx, dword [esi]
sub ecx, 0xc
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edx, dword [0x4444f4]
mov dword [esi], edx
push edi
mov ecx, esi
call fcn.004084f0
test eax, eax
je 0x431711
lea ebx, [edi + edi]
lea eax, [ebx + 2]
cmp eax, ebx
jb 0x431700
mov ecx, dword [esi]
push ebx
push 0x43becc
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov edx, dword [esi]
mov dword [edx - 8], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [ebx + eax], cx
mov ebx, dword [esp + 0x14]
inc ebx
cmp ebx, dword [esp + 0x10]
mov dword [esp + 0x14], ebx
jl 0x431627
push 2
mov ecx, ebp
call fcn.00430b10
mov ebx, eax
xor ebp, ebp
mov dword [esp + 0x10], ebx
test ebx, ebx
jle 0x431835
lea esp, [esp]
mov ecx, dword [esp + 0x18]
push ebp
push 2
call fcn.00431460
lea esi, [eax + 0x64]
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x43182c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x43182c
cmp dword [eax - 0xc], 0
lea ecx, [eax - 0xc]
jl 0x4317ab
add eax, 0xfffffff4
cmp eax, dword [0x4444f0]
je 0x43182c
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43179f
mov edx, dword [esi]
sub edx, 0xc
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [0x4444f4]
mov dword [esi], eax
jmp 0x43182c
push 0x43becc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 1
lea ecx, [eax - 0xc]
jg 0x4317c8
cmp edi, dword [eax - 4]
jle 0x431800
add eax, 0xfffffff4
cmp eax, dword [0x4444f0]
je 0x4317f4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4317ec
mov ecx, dword [esi]
sub ecx, 0xc
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edx, dword [0x4444f4]
mov dword [esi], edx
push edi
mov ecx, esi
call fcn.004084f0
test eax, eax
je 0x43182c
lea ebx, [edi + edi]
lea eax, [ebx + 2]
cmp eax, ebx
jb 0x43181b
mov ecx, dword [esi]
push ebx
push 0x43becc
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov edx, dword [esi]
mov dword [edx - 8], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [ebx + eax], cx
mov ebx, dword [esp + 0x10]
inc ebp
cmp ebp, ebx
jl 0x431740
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret