Function at 0x504140
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599465
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.004246c0
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 0x5041d2
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x5041dc
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.005070f0
add esp, 0x28
test al, al
jne 0x504255
cmp dword [edi + 0x14], 8
jb 0x504207
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.00500e60
add esp, 0x18
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
cmp dword [ebp - 0x18], 0
jne 0x50431f
push 0
push 0x5bb418
push eax
call fcn.0042f980
add esp, 0xc
test eax, eax
je 0x504331
jmp 0x50431f
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.0055eee6
add esp, 0xc
test eax, eax
je 0x504291
push 4
push str..cab
push esi
call fcn.0055eee6
add esp, 0xc
test eax, eax
jne 0x5042be
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00519080
add esp, 4
test al, al
jne 0x5042be
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 0x50430b
push 0x5bb418
push ebx
call fcn.005040d0
add esp, 8
test al, al
je 0x504335
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 0x5042e6
mov ebx, dword [ebx]
push ecx
push eax
push ebx
call fcn.0055eee6
add esp, 0xc
test eax, eax
je 0x504335
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.00500e60
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 0x504337
mov bl, 1
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x50436d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x504363
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5043d7
push edx
push ecx
call fcn.005541c2
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 0x5043b7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5043ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5043d7
push edx
push ecx
call fcn.005541c2
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.00553d2a
mov esp, ebp
pop ebp
ret 0x18
call fcn.0055eb97
int3