Function at 0x40cdd0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
test ebp, ebp
je 0x40cdf5
mov eax, dword [esp + 0x48]
mov ebx, dword [eax]
test ebx, ebx
jne 0x40cf5d
mov dword [esp], edi
call fcn.0040ba30
mov ebx, eax
test eax, eax
je 0x40ce1f
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 4
test eax, eax
je 0x40cfe9
mov dword [esp], ebx
call sub.libgcrypt_20.dll_gcry_free
xor ebx, ebx
test esi, esi
je 0x40cee1
lea esi, [esi]
movzx eax, byte [esi]
test al, al
je 0x40cee1
mov edx, esi
jmp 0x40ce4f
movzx eax, byte [edx + 1]
add edx, 1
test al, al
je 0x40cee1
test al, al
jns 0x40ce40
mov dword [esp], esi
call fcn.0040ba30
mov ebp, eax
test eax, eax
je 0x40cea6
mov dword [esp], edi
call fcn.0040ba30
test eax, eax
je 0x40d003
mov dword [esp + 4], eax
mov dword [esp + 0x1c], eax
mov dword [esp], ebp
call dword [sym.imp.msvcrt.dll__wrename]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp], ecx
call sub.libgcrypt_20.dll_gcry_free
mov dword [esp], ebp
call sub.libgcrypt_20.dll_gcry_free
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40cf2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40cf73
test ebx, ebx
je 0x40cf08
cmp ebx, 0x31f
jg 0x40cf08
add ebx, ebx
mov ebp, ebx
cmp ebx, 0x31f
jg 0x40cf40
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
test esi, esi
jne 0x40ce30
test edi, edi
je 0x40cf18
movzx eax, byte [edi]
test al, al
je 0x40cf18
mov edx, edi
jmp 0x40cefb
movzx eax, byte [edx + 1]
add edx, 1
test al, al
je 0x40cf18
test al, al
jns 0x40cef0
jmp 0x40ce53
mov ebp, 0x32
mov ebx, 0x32
jmp 0x40cecd
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll_rename
test eax, eax
jne 0x40cea6
mov eax, dword [esp + 0x48]
xor ebx, ebx
test eax, eax
je 0x40cf67
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.waiting_for_file__s_to_become_accessible_..._n
call sub.libgpg_error_0.dll__gpg_w32_gettext
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_log_info
jmp 0x40cecd
call fcn.004131d0
jmp 0x40cdf5
add esp, 0x2c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.libgpg_error_0.dll_gpg_err_code_from_syserror
test eax, eax
je 0x40cf67
mov ebx, dword [0x42e1e4]
mov ecx, dword [esp + 0x48]
movzx eax, ax
shl ebx, 0x18
and ebx, 0x7f000000
or ebx, eax
test ecx, ecx
je 0x40cffa
mov eax, dword [esp + 0x48]
mov edx, dword [eax]
test edx, edx
je 0x40cffa
test ebx, ebx
je 0x40cf67
call fcn.004131e0
mov eax, dword [esp + 0x48]
mov dword [eax], 0
mov dword [esp], ebx
call sub.libgpg_error_0.dll_gpg_strerror
mov dword [esp], str.renaming__s_to__s_failed:__s_n
mov ebp, eax
call sub.libgpg_error_0.dll__gpg_w32_gettext
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.libgpg_error_0.dll_gpgrt_log_error
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0xffffffff
call fcn.0040c6a0
jmp 0x40ce17
test ebx, ebx
jne 0x40cfb5
jmp 0x40cf36
mov dword [esp], 0
call sub.libgcrypt_20.dll_gcry_free
jmp 0x40cea6