Function at 0x4aff30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645f55
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6d3438]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x1c]
push 0x68d90c
mov dword [ebp - 0x48], eax
call fcn.0042a5a0
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [esi + 4]
mov byte [ebp - 4], 1
lea edx, [eax + 0x14]
lea esi, [eax + 0x24]
mov eax, dword [ebp - 0x44]
cmp dword [eax + 0x14], 8
jb 0x4affc2
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x4affcc
mov ecx, dword [edi]
push edx
push dword [ebp - 0x48]
lea edx, [ebp - 0x40]
push dword [ebp - 0x4c]
push esi
push edx
push 1
lea edx, [ebp - 0x28]
push edx
push dword [ebp - 0x50]
push eax
push ecx
call fcn.004b4220
add esp, 0x28
test al, al
jne 0x4b0045
cmp dword [edi + 0x14], 8
jb 0x4afff7
mov edi, dword [edi]
push edi
push str.Unable_to_download__s
push 0x6f
push str.XMLUpdater::v2::CDownloadCommand::DownloadCommand
push str.E:BT3f715c85_ff0b_44ed_ac13_dd63d3f5c42aWebAdvisor_XmlUpdater_srcXmlUpdaterDownloadCommand.cpp
push 1
call fcn.004acee0
add esp, 0x18
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
cmp dword [ebp - 0x18], 0
jne 0x4b010f
push 0
push 0x68d90c
push eax
call fcn.0042b370
add esp, 0xc
test eax, eax
je 0x4b0121
jmp 0x4b010f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push 4
mov esi, eax
push 0x65e284
push esi
call fcn.0061f9fc
add esp, 0xc
test eax, eax
je 0x4b0081
push 4
push str..cab
push esi
call fcn.0061f9fc
add esp, 0xc
test eax, eax
jne 0x4b00ae
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004d4600
add esp, 4
test al, al
jne 0x4b00ae
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.Unable_to_verify_signature__deleting_file:__s
push 0x7c
jmp 0x4b00fb
push 0x68d90c
push ebx
call fcn.0045a3f0
add esp, 8
test al, al
je 0x4b0125
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov ecx, dword [ebx + 0x10]
cmovae eax, dword [ebp - 0x40]
cmp dword [ebx + 0x14], 8
jb 0x4b00d6
mov ebx, dword [ebx]
push ecx
push eax
push ebx
call fcn.0061f9fc
add esp, 0xc
test eax, eax
je 0x4b0125
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.Unable_to_verify_MD5__deleting_file:__s
push 0x86
push str.XMLUpdater::v2::CDownloadCommand::DownloadCommand
push str.E:BT3f715c85_ff0b_44ed_ac13_dd63d3f5c42aWebAdvisor_XmlUpdater_srcXmlUpdaterDownloadCommand.cpp
push 1
call fcn.004acee0
add esp, 0x18
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor bl, bl
jmp 0x4b0127
mov bl, 1
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4b015d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b0153
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b01c7
push edx
push ecx
call fcn.00608415
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x4b01a7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b019d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b01c7
push edx
push ecx
call fcn.00608415
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00608185
mov esp, ebp
pop ebp
ret 0x18
call fcn.0060e0d0
int3