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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f8c09
mov eax, dword fs:[0]
push eax
sub esp, 0x178
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 ebx, ecx
mov dword [ebp - 4], 0
call fcn.004a4516
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x472fe0
push 0x80004005
call fcn.00402040
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push str.ACTIVATING_DOWNLOAD_REQUEST:__s
push eax
call fcn.00404520
add esp, 0xc
lea ecx, [ebp - 0x18]
push 0x63bfdc
call fcn.004021e0
xor ecx, ecx
call fcn.004051a0
mov edi, eax
push ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov esi, esp
push ecx
call fcn.004046f0
add esp, 4
add eax, 0x10
push 0
push 0
mov dword [esi], eax
lea eax, [ebp - 0x14]
push eax
push 0x1b01
push str.C:_amintegration_tools_setupishield_sldim_sldbgdwldBgDwldManager.cpp
push 0
push 1
mov ecx, edi
call fcn.004055a0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x473074
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x473094
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx]
push 0
lea eax, [ebp - 0x184]
push eax
call fcn.00476750
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x184]
cmp eax, 1
je 0x4730bc
cmp eax, 6
jne 0x4732f5
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x4732f5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4732f5
test al, 0x10
jne 0x4732f5
cmp byte [ebp + 0xc], 0
mov byte [ebp - 0x18], 1
je 0x473506
push ecx
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
lea ecx, [ebp - 0x10c]
call fcn.0043c830
mov dword [ebp - 0x2c], vtable.CDownloadXML.0
mov word [ebp - 0x28], 0
mov byte [ebp - 4], 6
call fcn.004a4516
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x473134
push 0x80004005
call fcn.00402040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.0044a0f0
test al, al
jne 0x4731b9
lea ecx, [ebp + 0xc]
call fcn.00404540
mov byte [ebp - 4], 8
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push dword [ebp + 8]
push str.ERROR_in_ActivateDownloadRequest:_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 0x1b1f
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]
jmp 0x4732c5
lea ecx, [ebp - 0x20]
call fcn.00404540
lea ecx, [ebp + 0xc]
call fcn.00404540
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x80]
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
lea ecx, [ebx + 0xb0]
test al, al
jne 0x47326d
lea eax, [ebp + 0xc]
push eax
call fcn.00404570
lea eax, [ebx + 0x38]
push eax
lea ecx, [ebx + 0x88]
call fcn.0042ca90
lea ecx, [ebp + 0x10]
call fcn.00404540
mov byte [ebp - 4], 0xb
push dword [ebp - 0x80]
lea eax, [ebp + 0x10]
push str.ERROR:_Unable_to_access_lock_file_for_download_folder:__s
push eax
call fcn.00404520
add esp, 8
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
push 0
lea eax, [ebp + 0x10]
push eax
push 0x1b2d
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 + 0x10]
call fcn.00401020
jmp 0x4732ba
push 0x63bfdc
call fcn.00402190
push ecx
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
lea ecx, [ebp - 0x134]
call fcn.004466a0
push eax
lea ecx, [ebx + 0x88]
mov byte [ebp - 4], 0xc
call fcn.0042ca90
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0xa
call fcn.00401000
mov ecx, dword [ebx + 8]
call fcn.00422920
test al, al
jne 0x473339
lea ecx, [ebp + 0xc]
call fcn.00401020
lea ecx, [ebp - 0x20]
call fcn.00401020
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4732ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x10c]
call fcn.00443380
xor bl, bl
lea ecx, [ebp - 0x184]
call fcn.004628f0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x473323
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 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 0xc
mov ecx, dword [ebx + 8]
lea eax, [ebp + 8]
add ecx, 4
push eax
call fcn.00404570
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x88]
add ecx, 0xc
push eax
call fcn.00404570
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x84]
add ecx, 0x10
push eax
call fcn.00404570
mov ecx, dword [ebx + 8]
add ecx, 8
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x473414
push dword [ebp - 0x80]
call fcn.0040f140
test eax, eax
je 0x473414
mov eax, dword [ebx + 8]
push 0
mov eax, dword [eax + 8]
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 0x473414
lea ecx, [ebp - 0x14]
call fcn.00404540
mov byte [ebp - 4], 0xd
mov eax, dword [ebx + 8]
push dword [eax + 8]
lea eax, [ebp - 0x14]
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 - 0x14]
push eax
push 0x1b48
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 - 0x14]
mov byte [ebp - 4], 0xa
call fcn.00401020
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x80]
add ecx, 8
push eax
call fcn.00404570
mov ecx, dword [ebx + 8]
push 0x63bfdc
add ecx, 0x14
call fcn.00402190
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x104]
push eax
add ecx, 0x18
call fcn.0042ca90
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0xdc]
push eax
add ecx, 0x40
call fcn.0042ca90
mov eax, dword [ebx + 8]
cmp dword [eax], 2
je 0x4734c4
lea ecx, [ebp - 0x14]
call fcn.00404540
mov byte [ebp - 4], 0xe
mov eax, dword [ebx + 8]
push dword [eax]
lea eax, [ebp - 0x14]
push str.Changing_request_status_from__d_to_Pending_to_activate_download_request
push eax
call fcn.00404520
add esp, 8
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
push 0
lea eax, [ebp - 0x14]
push eax
push 0x1b55
push str.C:_amintegration_tools_setupishield_sldim_sldbgdwldBgDwldManager.cpp
push 0
push 1
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
call fcn.004022e0
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x14]
mov dword [eax], 2
mov byte [ebp - 4], 0xa
call fcn.00401020
lea eax, [ebp - 0x10c]
push eax
mov ecx, ebx
call fcn.0046c920
mov ecx, dword [ebx + 8]
push 0xffffff
call fcn.004246a0
lea ecx, [ebp + 0xc]
call fcn.00401020
lea ecx, [ebp - 0x20]
call fcn.00401020
lea ecx, [ebp - 0x1c]
call fcn.00401020
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 3
call fcn.00443380
cmp byte [ebp + 0x10], 0
je 0x4735a0
mov ecx, ebx
call fcn.0046cc60
test al, al
je 0x4732f5
mov eax, dword [0x6c1f08]
cmp eax, 1
jl 0x47352e
cmp eax, 3
jl 0x473524
cmp eax, 0xffffffff
jle 0x4732f5
mov ecx, dword [ebx]
mov eax, dword [0x6c1e94]
mov dword [ecx], eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebx + 8]
push ecx
mov eax, dword [eax + 4]
sub eax, 0x10
mov esi, esp
push eax
mov dword [ebp + 0xc], 0xffffffff
call fcn.004046f0
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [ebx]
add esp, 4
call fcn.004785f0
mov dword [ebp - 0x18], eax
test al, al
jne 0x473585
cmp dword [ebp + 0xc], 0
movzx eax, al
mov ecx, 1
cmove eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [0x6c1f08]
xor ecx, ecx
cmp eax, 3
cmove eax, ecx
push 1
mov ecx, ebx
mov dword [0x6c1f08], eax
call fcn.0046f1b0
mov ebx, dword [ebp - 0x18]
jmp 0x4732f7