Function at 0x5041d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5994e5
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x61094c]
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 0x5bb418
mov dword [ebp - 0x48], eax
call fcn.00424740
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 0x504262
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x50426c
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.00507170
add esp, 0x28
test al, al
jne 0x5042e5
cmp dword [edi + 0x14], 8
jb 0x504297
mov edi, dword [edi]
push edi
push str.Unable_to_download__s
push 0x6f
push str.XMLUpdater::v2::CDownloadCommand::DownloadCommand
push str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterDownloadCommand.cpp
push 1
call fcn.00500ef0
add esp, 0x18
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
cmp dword [ebp - 0x18], 0
jne 0x5043af
push 0
push 0x5bb418
push eax
call fcn.0042f9f0
add esp, 0xc
test eax, eax
je 0x5043c1
jmp 0x5043af
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 str..exe
push esi
call fcn.0055ef66
add esp, 0xc
test eax, eax
je 0x504321
push 4
push str..cab
push esi
call fcn.0055ef66
add esp, 0xc
test eax, eax
jne 0x50434e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00519100
add esp, 4
test al, al
jne 0x50434e
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 0x50439b
push 0x5bb418
push ebx
call fcn.00504160
add esp, 8
test al, al
je 0x5043c5
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 0x504376
mov ebx, dword [ebx]
push ecx
push eax
push ebx
call fcn.0055ef66
add esp, 0xc
test eax, eax
je 0x5043c5
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:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterDownloadCommand.cpp
push 1
call fcn.00500ef0
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 0x5043c7
mov bl, 1
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x5043fd
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5043f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x504467
push edx
push ecx
call fcn.00554242
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 0x504447
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x50443d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x504467
push edx
push ecx
call fcn.00554242
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.00553daa
mov esp, ebp
pop ebp
ret 0x18
call fcn.0055ec17
int3