Function at 0x409ba0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c186
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x453144]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], 0
push ecx
mov ebx, esp
mov ecx, dword [esi - 0x10]
mov dword [ebp - 0x4c], ebx
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x409c05
cmp ecx, dword [esi - 0x10]
jne 0x409c05
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x409c32
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x40a06c
mov eax, dword [esi - 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
inc eax
lea edx, [eax + eax]
push edx
push esi
call fcn.00401580
add esp, 8
lea eax, [edi + 0x10]
lea ecx, [ebp - 0x18]
mov dword [ebx], eax
call fcn.0040bc10
add esp, 4
mov byte [ebp - 4], 1
push dword [ebp - 0x18]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
je 0x40a009
call fcn.00417780
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x409e06
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
push 0x51
push str.d:jenkins.jenkinsworkspaceweiduangamewdgameboxwdgameboxuninst_srcutils.cc
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.00407580
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
push 3
push 0x44d57c
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
call fcn.00407580
mov byte [ebp - 4], 3
call fcn.00417780
mov edi, eax
lea ecx, [ebp - 0xe4]
push 0x6a
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00404d90
mov esi, eax
mov edx, str.RemoveDesktopIcon__Remove:
mov byte [ebp - 4], 4
mov ecx, esi
call fcn.00404c20
test ebx, ebx
mov ecx, str._null_
cmovne ecx, ebx
push ecx
push esi
call fcn.00407bf0
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe4], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xe8], eax
lea ecx, [ebp - 0xe0]
call fcn.00406b50
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe4], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xe8], eax
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - 0x94], vtable.std::ios_base.0
call fcn.00411d35
mov byte [ebp - 4], 2
add esp, 4
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x409db6
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409dac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a071
push edx
push ecx
call fcn.004155ab
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp edx, 0x10
jb 0x409e00
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409df6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a076
push edx
push ecx
call fcn.004155ab
add esp, 8
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x409e3f
push esi
call ebx
test eax, eax
je 0x409e3f
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x409e34
push esi
call edi
test eax, eax
jne 0x409e3f
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp - 0x18]
call ebx
test eax, eax
je 0x40a009
call fcn.00417780
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x40a005
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
push 0x51
push str.d:jenkins.jenkinsworkspaceweiduangamewdgameboxwdgameboxuninst_srcutils.cc
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.00407580
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x30]
push 3
push 0x44d57c
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
call fcn.00407580
mov byte [ebp - 4], 7
call fcn.00417780
mov edi, eax
lea ecx, [ebp - 0xe4]
push 0x6e
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00404d90
mov esi, eax
mov edx, str.RemoveDesktopIcon__failed_delete_:
mov byte [ebp - 4], 8
mov ecx, esi
call fcn.00404c20
test ebx, ebx
mov eax, str._null_
cmovne eax, ebx
push eax
push esi
call fcn.00407bf0
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe4], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xe8], eax
lea ecx, [ebp - 0xe0]
call fcn.00406b50
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe4], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xe8], eax
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 9
push eax
mov dword [ebp - 0x94], vtable.std::ios_base.0
call fcn.00411d35
mov byte [ebp - 4], 6
add esp, 4
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x409fa9
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409f9f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a07b
push edx
push ecx
call fcn.004155ab
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp edx, 0x10
jb 0x409ff3
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409fe9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a080
push edx
push ecx
call fcn.004155ab
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
xor edi, edi
jmp 0x40a00e
mov edi, 1
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a02f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x40a04e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00415060
mov esp, ebp
pop ebp
ret
call fcn.00403150
call fcn.0041e989
call fcn.0041e989
call fcn.0041e989
call fcn.0041e989
int3