Function at 0x5040c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599015
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 0x5bb3b8
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 0x504152
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x50415c
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.00507060
add esp, 0x28
test al, al
jne 0x5041d5
cmp dword [edi + 0x14], 8
jb 0x504187
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.00500de0
add esp, 0x18
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
cmp dword [ebp - 0x18], 0
jne 0x50429f
push 0
push 0x5bb3b8
push eax
call fcn.0042f960
add esp, 0xc
test eax, eax
je 0x5042b1
jmp 0x50429f
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.0055ee76
add esp, 0xc
test eax, eax
je 0x504211
push 4
push str..cab
push esi
call fcn.0055ee76
add esp, 0xc
test eax, eax
jne 0x50423e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00519020
add esp, 4
test al, al
jne 0x50423e
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 0x50428b
push 0x5bb3b8
push ebx
call fcn.00504050
add esp, 8
test al, al
je 0x5042b5
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 0x504266
mov ebx, dword [ebx]
push ecx
push eax
push ebx
call fcn.0055ee76
add esp, 0xc
test eax, eax
je 0x5042b5
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.00500de0
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 0x5042b7
mov bl, 1
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x5042ed
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5042e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x504357
push edx
push ecx
call fcn.00554162
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 0x504337
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x50432d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x504357
push edx
push ecx
call fcn.00554162
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.00553cca
mov esp, ebp
pop ebp
ret 0x18
call fcn.0055eb27
int3