Function at 0x406450
Capabilities:
Delete file

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x5c]
push edi
mov ebx, 1
xor ebp, ebp
call fcn.004039b0
add esp, 4
test eax, eax
jne 0x406479
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov esi, dword [edi]
push str._signature_
push edi
call fcn.00405a00
push str._attributes_
push edi
call fcn.00405a00
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4064ce
push 1
xor eax, eax
mov ecx, 0x12
lea edi, [esp + 0x14]
push 0x48
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push 0
push str._signature_
push esi
call fcn.00404bc0
mov edi, dword [esp + 0x74]
add esp, 0x18
test eax, eax
jne 0x4064ce
mov ebp, 0x8520006d
xor ebx, ebx
push esi
push edi
call fcn.00406ba0
mov eax, dword [esi + 0x118]
add esp, 8
cmp eax, 0x20
jne 0x406554
mov ecx, dword [esi + 0x114]
mov edx, dword [esi + 8]
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x114]
test eax, eax
jne 0x406520
lea edx, [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0xffffffffffffffff
push str.delete
push edi
call sub.Storm.dll_Ordinal_403
mov ecx, esi
call fcn.004028b0
push 0
push 0xffffffffffffffff
push str.delete
push esi
call sub.Storm.dll_Ordinal_403
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret 0xc
mov edi, dword [esp + 0x60]
push edi
push esi
call fcn.00406870
add esp, 8
test edi, edi
je 0x40658c
mov eax, dword [esi + 0x11c]
mov ecx, dword [esi + 0x128]
mov edx, dword [esp + 0x5c]
push eax
push ecx
push edx
call fcn.004066e0
add esp, 0xc
test eax, eax
jne 0x40658c
mov ebp, 0x85200068
xor ebx, ebx
mov eax, dword [esi + 0x118]
mov ecx, dword [esi + 0x114]
mov edx, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
add eax, ecx
push 0
push eax
push edx
mov dword [esi + 0x134], eax
call edi
cmp eax, 0xffffffff
jne 0x4065bd
mov ebp, 0x85200068
xor ebx, ebx
mov ecx, dword [esi + 0x134]
mov eax, dword [esi + 0x114]
sub ecx, eax
push esi
mov dword [esi + 0x134], ecx
call fcn.00406ac0
add esp, 4
test eax, eax
jne 0x4065e5
mov ebp, 0x85200068
xor ebx, ebx
mov ecx, dword [esi + 8]
push 1
push 0
push 0
push ecx
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x124], eax
jne 0x406603
mov ebp, 0x85200068
xor ebx, ebx
sub eax, dword [esi + 0x114]
push esi
mov dword [esi + 0x124], eax
call fcn.004069d0
add esp, 4
test eax, eax
jne 0x406623
mov ebp, 0x85200068
xor ebx, ebx
mov edx, dword [esi + 8]
push 1
push 0
push 0
push edx
call edi
sub eax, dword [esi + 0x114]
mov dword [esi + 0x14c], eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x406650
mov ebp, 0x85200068
xor ebx, ebx
mov ecx, dword [esi + 0x114]
push ecx
push esi
call fcn.00406b10
add esp, 8
test eax, eax
jne 0x40666b
mov ebp, 0x85200068
xor ebx, ebx
mov eax, dword [esp + 0x64]
test eax, eax
je 0x406693
push eax
push esi
call fcn.00406cd0
add esp, 8
test eax, eax
jne 0x406688
mov ebp, 0x8520006d
xor ebx, ebx
push str._signature_
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x5c]
push 0
push 0xffffffffffffffff
push str.delete
push eax
call sub.Storm.dll_Ordinal_403
mov ecx, esi
call fcn.004028b0
push 0
push 0xffffffffffffffff
push str.delete
push esi
call sub.Storm.dll_Ordinal_403
test ebx, ebx
jne 0x4066d1
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x48
ret 0xc