Function at 0x409240
Capabilities:
Delete file

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [eax]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x24], 0
lea edx, [esp + 0x3c]
mov eax, ebx
call fcn.00408b50
mov ebp, eax
test eax, eax
je 0x4092a0
mov eax, dword [esp + 0x1c]
add dword [eax], 1
movzx eax, byte [ebp]
cmp al, 0x76
je 0x409420
cmp al, 0x23
jne 0x409426
mov dword [esp], ebp
call sub.libgcrypt_20.dll_gcry_free
jmp 0x409265
mov esi, dword [esp + 0x3c]
test esi, esi
jne 0x409410
mov eax, dword [esp + 0x24]
xor eax, 1
and eax, dword [esp + 0x60]
mov dword [esp + 0x24], eax
je 0x409510
mov dword [esp], str.old_version_of_cache_directory___cleaning_up_n
call sub.libgpg_error_0.dll__gpg_w32_gettext
mov dword [esp], eax
call fcn.0044dbb0
mov dword [esp], ebx
call sub.libgpg_error_0.dll_gpgrt_fclose
mov eax, dword [esp + 0x28]
mov dword [eax], 0
mov eax, dword [0x4913f4]
mov dword [esp + 8], 0
mov dword [esp + 4], str.crls.d
mov dword [esp], eax
call fcn.00446ef0
mov dword [esp], eax
mov dword [esp + 0x18], eax
call fcn.00474f00
mov ebx, eax
test eax, eax
je 0x4094ce
mov dword [esp + 0x20], 0
mov dword [esp], ebx
call fcn.004750b0
test eax, eax
je 0x4093c0
add eax, 8
mov edi, 0x47d9aa
mov ecx, 2
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
seta dl
sbb dl, 0
test dl, dl
je 0x409322
mov edi, 0x47d9ac
mov ecx, 3
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
seta dl
sbb dl, 0
test dl, dl
je 0x409322
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 8], 0
mov dword [esp], eax
call fcn.00446ef0
mov dword [esp], str.removing_cache_file__s_n
mov esi, eax
call sub.libgpg_error_0.dll__gpg_w32_gettext
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0044da60
mov dword [esp], esi
call fcn.00450110
test eax, eax
jne 0x409460
mov dword [esp], esi
call sub.libgcrypt_20.dll_gcry_free
mov dword [esp], ebx
call fcn.004750b0
test eax, eax
jne 0x409332
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_free
mov dword [esp], ebx
call fcn.004751d0
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x409510
mov eax, dword [esp + 0x1c]
mov dword [eax], 0
mov eax, dword [esp + 0x2c]
call fcn.00409090
mov ebx, eax
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
test ebx, ebx
jne 0x409265
mov dword [esp], ebp
mov esi, 0xa000073
call sub.libgcrypt_20.dll_gcry_free
add esp, 0x4c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [ebp + 1], 0x3a
je 0x409491
mov dword [esp], str.first_record_of__s_is_not_the_version_n
mov esi, 0xa000073
call sub.libgpg_error_0.dll__gpg_w32_gettext
mov edi, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.0044dbb0
mov dword [esp], ebp
call sub.libgcrypt_20.dll_gcry_free
add esp, 0x4c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], str.failed_to_remove__s:__s_n
call fcn.0044dbb0
mov dword [esp + 0x20], 0xffffffff
jmp 0x4093a7
mov esi, dword [esp + 0x3c]
test esi, esi
jne 0x409410
lea eax, [ebp + 2]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_strtol
cmp eax, 1
jne 0x4092ac
mov dword [esp], ebp
call sub.libgcrypt_20.dll_gcry_free
jmp 0x409410
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp], str.error_reading_directory__s:__s_n
mov ebx, eax
call sub.libgpg_error_0.dll__gpg_w32_gettext
mov edi, dword [esp + 0x18]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.0044dbb0
mov dword [esp], edi
call sub.libgcrypt_20.dll_gcry_free
lea esi, [esi]
nop
mov dword [esp], str.old_version_of_cache_directory___giving_up_n
mov esi, 0xa000073
call sub.libgpg_error_0.dll__gpg_w32_gettext
mov dword [esp], eax
call fcn.0044dbb0
mov dword [esp], ebp
call sub.libgcrypt_20.dll_gcry_free
jmp 0x409410