Function at 0x472720
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fa703
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
push ebx
push esi
push edi
mov eax, dword [0x6b7e40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 1
mov dword [ebp - 4], 0
mov ecx, dword [edi + 8]
push 0xffff23
call fcn.00422d10
mov bh, byte [ebp + 0xc]
test bh, bh
jne 0x472779
mov eax, dword [edi + 8]
add eax, 4
push eax
lea ecx, [ebp + 8]
call fcn.00404570
mov eax, dword [ebp + 8]
or esi, 0xffffffff
cmp dword [eax - 0xc], 0
je 0x4728ea
mov eax, dword [edi + 8]
mov ecx, dword [eax + 4]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4727a4
push 0x80004005
call fcn.00402040
push ecx
push dword [ebp + 8]
call fcn.005be8d5
add esp, 8
test eax, eax
je 0x4728ea
call fcn.004a4516
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4727d4
push 0x80004005
call fcn.00402040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
movzx eax, bh
push eax
mov byte [ebp - 4], 1
mov eax, dword [edi + 8]
push dword [eax + 4]
lea eax, [ebp + 0xc]
push dword [ebp + 8]
push str.ERROR:_ValidateExistingRequest_found_request_file_did_not_match_registry___s____s__bits_d
push eax
call fcn.00404520
add esp, 0x10
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
push 0
lea eax, [ebp + 0xc]
push eax
push 0x1a6d
push str.C:_amintegration_tools_setupishield_sldim_sldbgdwldBgDwldManager.cpp
push 1
push 1
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
call fcn.004022e0
test bh, bh
je 0x4728ca
mov ecx, dword [edi + 8]
lea eax, [ebp + 8]
add ecx, 4
push eax
call fcn.00404570
mov ecx, dword [edi + 8]
push 2
call fcn.004246a0
mov eax, dword [edi + 8]
cmp dword [eax], 0
jne 0x4728ca
mov dword [eax], 4
mov ecx, dword [edi + 8]
push 1
call fcn.004246a0
push str.Repairing_status__tentatively_to_running__after_found_BITS_job
lea ecx, [ebp - 0x18]
call fcn.004021e0
push ecx
mov ecx, esp
push 0x63bfdc
mov byte [ebp - 4], 2
call fcn.004021e0
push 0
lea eax, [ebp - 0x18]
push eax
push 0x1a7a
push str.C:_amintegration_tools_setupishield_sldim_sldbgdwldBgDwldManager.cpp
push 1
push 1
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
call fcn.004022e0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4728ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4728ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
test eax, eax
je 0x472f4e
cmp eax, 1
je 0x472f4e
cmp eax, 8
je 0x472f4e
mov eax, dword [ecx + 4]
cmp dword [eax - 0xc], 0
jne 0x472988
lea ecx, [ebp + 0xc]
call fcn.00404540
movzx eax, bh
push eax
lea eax, [ebp + 0xc]
push str.ERROR:_ValidateExistingRequest_found_request_file_was_empty__bits_d_
push eax
mov byte [ebp - 4], 3
call fcn.00404520
add esp, 8
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
lea eax, [ebp + 0xc]
push 0
push eax
push 0x1a8c
push str.C:_amintegration_tools_setupishield_sldim_sldbgdwldBgDwldManager.cpp
push 1
push 1
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
call fcn.004022e0
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x472981
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
jmp 0x472f50
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x472ef3
test al, 0x10
jne 0x472ef3
push ecx
mov ecx, esp
push 0x63bfdc
mov bl, 1
call fcn.004021e0
lea ecx, [ebp - 0x108]
call fcn.0043c830
mov dword [ebp - 0x24], vtable.CDownloadXML.0
mov word [ebp - 0x20], 0
lea ecx, [ebp - 0x18]
call fcn.00404540
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 8
mov eax, dword [edi + 8]
add eax, 4
push eax
lea ecx, [ebp - 0x24]
call fcn.0044a0f0
test al, al
jne 0x472a67
lea ecx, [ebp + 0xc]
call fcn.00404540
mov byte [ebp - 4], 9
push dword [ebp + 0xc]
mov eax, dword [edi + 8]
push dword [eax + 4]
lea eax, [ebp + 0xc]
push str.ERROR_in_ValidateExistingRequest:_Unable_to_read_Download_Requests_file__s:__s
push eax
call fcn.00404520
add esp, 0xc
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
push 0
lea eax, [ebp + 0xc]
push eax
push 0x1aa4
push str.C:_amintegration_tools_setupishield_sldim_sldbgdwldBgDwldManager.cpp
push 1
push 1
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
call fcn.004022e0
lea ecx, [ebp + 0xc]
call fcn.00401020
lea ecx, [ebp - 0x18]
call fcn.00401020
lea ecx, [ebp - 0x108]
call fcn.00443380
xor bl, bl
jmp 0x472f50
mov ecx, dword [edi + 8]
push dword [ebp - 0x84]
add ecx, 0xc
call fcn.0040f140
test eax, eax
je 0x472af7
lea ecx, [ebp + 0xc]
call fcn.00404540
movzx eax, bh
push eax
mov byte [ebp - 4], 0xa
mov eax, dword [edi + 8]
push dword [eax + 0xc]
lea eax, [ebp + 0xc]
push dword [ebp - 0x84]
push str.ERROR:_ValidateExistingRequest_found_that_app_does_not_match_registry___s____s__bits_d
push eax
call fcn.00404520
add esp, 0x10
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
push 0
lea eax, [ebp + 0xc]
push eax
push 0x1aad
push str.C:_amintegration_tools_setupishield_sldim_sldbgdwldBgDwldManager.cpp
push 1
push 1
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
call fcn.004022e0
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x84]
add ecx, 0xc
push eax
xor bl, bl
call fcn.00404570
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 8
call fcn.00401020
mov ecx, dword [edi + 8]
push dword [ebp - 0x80]
add ecx, 0x10
call fcn.0040f140
test eax, eax
je 0x472b7e
lea ecx, [ebp + 0xc]
call fcn.00404540
movzx eax, bh
push eax
mov byte [ebp - 4], 0xb
mov eax, dword [edi + 8]
push dword [eax + 0x10]
lea eax, [ebp + 0xc]
push dword [ebp - 0x80]
push str.ERROR:_ValidateExistingRequest_found_that_user_does_not_match_registry___s____s__bits_d
push eax
call fcn.00404520
add esp, 0x10
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
push 0
lea eax, [ebp + 0xc]
push eax
push 0x1ab8
push str.C:_amintegration_tools_setupishield_sldim_sldbgdwldBgDwldManager.cpp
push 1
push 1
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
call fcn.004022e0
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x80]
add ecx, 0x10
push eax
xor bl, bl
call fcn.00404570
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 8
call fcn.00401020
mov ecx, dword [edi + 8]
push dword [ebp - 0x7c]
add ecx, 8
call fcn.0040f140
test eax, eax
je 0x472d19
lea ecx, [ebp - 0x14]
call fcn.00404540
movzx eax, bh
push eax
mov byte [ebp - 4], 0xc
mov eax, dword [edi + 8]
push dword [eax + 8]
lea eax, [ebp - 0x14]
push dword [ebp - 0x7c]
push str.ERROR:_ValidateExistingRequest_found_that_download_folder_does_not_match_registry___s____s__bits_d
push eax
call fcn.00404520
add esp, 0x10
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
push 0
lea eax, [ebp - 0x14]
push eax
push 0x1ac3
push str.C:_amintegration_tools_setupishield_sldim_sldbgdwldBgDwldManager.cpp
push 1
push 1
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
call fcn.004022e0
mov ecx, dword [edi + 8]
xor bl, bl
mov eax, dword [ecx + 8]
cmp dword [eax - 0xc], 0
je 0x472c7e
push 0
push 0
push 1
push ecx
sub eax, 0x10
mov esi, esp
push eax
call fcn.004046f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00425f20
test al, al
jne 0x472c7e
lea ecx, [ebp + 0xc]
call fcn.00404540
mov byte [ebp - 4], 0xd
mov eax, dword [edi + 8]
push dword [eax + 8]
lea eax, [ebp + 0xc]
push str.ERROR:_Unable_to_delete_lock_file_for_old_download_folder:__s
push eax
call fcn.00404520
add esp, 8
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
push 0
lea eax, [ebp + 0xc]
push eax
push 0x1acd
push str.C:_amintegration_tools_setupishield_sldim_sldbgdwldBgDwldManager.cpp
push 1
push 1
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
call fcn.004022e0
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0xc
call fcn.00401020
mov eax, dword [ebp - 0x7c]
push 0
push 0
push 0
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004046f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00425f20
test al, al
jne 0x472cfe
lea ecx, [ebp + 0xc]
call fcn.00404540
mov byte [ebp - 4], 0xe
push dword [ebp - 0x7c]
lea eax, [ebp + 0xc]
push str.ERROR:_Unable_to_access_lock_file_for_detected_download_folder:__s
push eax
call fcn.00404520
add esp, 8
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
push 0
lea eax, [ebp + 0xc]
push eax
push 0x1ad5
push str.C:_amintegration_tools_setupishield_sldim_sldbgdwldBgDwldManager.cpp
push 1
push 1
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
call fcn.004022e0
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0xc
call fcn.00401020
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x7c]
add ecx, 8
push eax
call fcn.00404570
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00401020
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x100]
push eax
add ecx, 0x18
call fcn.00446820
test al, al
je 0x472de3
lea ecx, [ebp + 0xc]
call fcn.00404540
mov byte [ebp - 4], 0xf
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x10]
push eax
add ecx, 0x18
call fcn.00446970
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0x10
call fcn.00446970
movzx ecx, bh
push ecx
mov byte [ebp - 4], 0x11
push dword [esi]
push dword [eax]
lea eax, [ebp + 0xc]
push str.ERROR:_ValidateExistingRequest_found_that_FromRelease_does_not_match_registry___s____s__bits_d
push eax
call fcn.00404520
add esp, 0x14
lea ecx, [ebp - 0x14]
call fcn.00401020
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xf
call fcn.00401020
push ecx
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
push 0
lea eax, [ebp + 0xc]
push eax
push 0x1adf
push str.C:_amintegration_tools_setupishield_sldim_sldbgdwldBgDwldManager.cpp
push 1
push 1
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
call fcn.004022e0
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x100]
push eax
add ecx, 0x18
xor bl, bl
call fcn.0042ca90
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 8
call fcn.00401020
mov ecx, dword [edi + 8]
lea eax, [ebp - 0xd8]
push eax
add ecx, 0x40
call fcn.00446820
test al, al
je 0x472ead
lea ecx, [ebp + 0xc]
call fcn.00404540
mov byte [ebp - 4], 0x12
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x14]
push eax
add ecx, 0x40
call fcn.00446970
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x13
call fcn.00446970
movzx ecx, bh
push ecx
mov byte [ebp - 4], 0x14
push dword [esi]
push dword [eax]
lea eax, [ebp + 0xc]
push str.ERROR:_ValidateExistingRequest_found_that_ToRelease_does_not_match_registry___s____s__bits_d
push eax
call fcn.00404520
add esp, 0x14
lea ecx, [ebp - 0x10]
call fcn.00401020
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x12
call fcn.00401020
push ecx
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
push 0
lea eax, [ebp + 0xc]
push eax
push 0x1aea
push str.C:_amintegration_tools_setupishield_sldim_sldbgdwldBgDwldManager.cpp
push 1
push 1
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
call fcn.004022e0
mov ecx, dword [edi + 8]
lea eax, [ebp - 0xd8]
push eax
add ecx, 0x40
xor bl, bl
call fcn.0042ca90
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 8
call fcn.00401020
mov eax, dword [edi + 8]
mov eax, dword [eax + 0xe0]
cmp dword [eax - 0xc], 0
jne 0x472eca
lea eax, [ebp - 0x108]
push eax
mov ecx, edi
call fcn.0046c920
lea ecx, [ebp - 0x18]
call fcn.00401020
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0
call fcn.00443380
mov ecx, dword [edi + 8]
push 0xffffff
call fcn.004246a0
or esi, 0xffffffff
jmp 0x472f50
lea ecx, [ebp + 0xc]
call fcn.00404540
movzx eax, bh
push eax
lea eax, [ebp + 0xc]
push str.ERROR:_ValidateExistingRequest_found_request_file_did_not_exist__bits_d_
push eax
mov byte [ebp - 4], 5
call fcn.00404520
add esp, 8
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
lea eax, [ebp + 0xc]
push 0
push eax
push 0x1a95
push str.C:_amintegration_tools_setupishield_sldim_sldbgdwldBgDwldManager.cpp
push 1
push 1
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
call fcn.004022e0
lea ecx, [ebp + 0xc]
call fcn.00401020
xor bl, bl
jmp 0x472f50
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x472f71
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8