Function at 0x4afd10
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x84
mov eax, dword [0x541f38]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov ebx, ecx
push 0x527f5c
lea ecx, [esp + 0x10]
call fcn.0043a930
lea eax, [esp + 0xc]
push eax
call fcn.004846d0
mov ecx, eax
call fcn.004825e0
push 0x527f5c
lea ecx, [esp + 0x14]
call fcn.0043a930
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x1e]
movzx eax, word [esp + 0x1c]
movzx ecx, word [esp + 0x1a]
push edx
movzx edx, word [esp + 0x1a]
push eax
movzx eax, word [esp + 0x1c]
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push str._04d__02d__02d___02d:_02d
push ecx
call fcn.0043a600
mov edx, dword [esp + 0x28]
add esp, 0x1c
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4afe03
mov esi, dword [esp + 0x10]
push ecx
lea eax, [esi - 0x10]
mov edi, esp
push eax
call fcn.00439080
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x9c]
add eax, 0xfffffff0
mov edi, esp
push eax
call fcn.00439080
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov edi, esp
push eax
call fcn.00439080
add eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [edi], eax
call fcn.004afa10
jmp 0x4b001a
xor ecx, ecx
mov eax, 7
mov word [esp + 0x28], cx
xor edx, edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], edi
mov word [esp + 0x44], dx
call fcn.004a3300
push edi
lea ecx, [esp + 0x28]
call fcn.004aa3f0
push str.__xml_version_1.0__encoding_UTF_8___
lea ecx, [esp + 0x28]
call fcn.004aa3f0
push edi
push edi
push str.PostFileVersion
lea ecx, [esp + 0x30]
call fcn.004a9740
lea ecx, [esp + 0x24]
call fcn.004a3260
push edi
push edi
push str.FileItem
lea ecx, [esp + 0x30]
call fcn.004a9740
mov eax, dword [esp + 0x94]
mov ebx, 1
cmp dword [eax - 4], ebx
jle 0x4afe98
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x98]
call fcn.00439760
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x60]
push edi
push eax
push 0x520f6c
push ecx
lea ecx, [esp + 0x34]
call fcn.004a70c0
mov eax, dword [esp + 0x94]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004d86b3
add esp, 8
cmp eax, edi
jl 0x4b0093
mov ecx, dword [esp + 0x94]
cmp eax, dword [ecx - 8]
jg 0x4b0093
mov esi, dword [esp + 0x10]
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x94]
xor edx, edx
mov word [ecx + eax*2], dx
cmp dword [esi - 4], ebx
jle 0x4aff03
mov edx, dword [esi - 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.00439760
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x60]
push edi
push esi
push str.PostTime
push eax
lea ecx, [esp + 0x34]
call fcn.004a70c0
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004d86b3
add esp, 8
cmp eax, edi
jl 0x4b0093
cmp eax, dword [esi - 8]
jg 0x4b0093
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
push edi
cmp dword [esp + 0x9c], edi
je 0x4aff73
mov edx, dword [esp + 0x64]
push str.open
push str.BackUp
push edx
lea ecx, [esp + 0x34]
call fcn.004a70c0
mov eax, dword [esp + 0x60]
push edi
push str.open
push str.OpenState
push eax
jmp 0x4aff82
mov ecx, dword [esp + 0x64]
push str.close
push str.BackUp
push ecx
lea ecx, [esp + 0x34]
call fcn.004a70c0
cmp dword [esp + 0x9c], edi
je 0x4affad
mov edx, dword [esp + 0x60]
push edi
push str.open
push str.OpenState
push edx
lea ecx, [esp + 0x34]
call fcn.004a70c0
lea ecx, [esp + 0x24]
call fcn.004a32a0
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 4], ebx
jle 0x4affd0
mov eax, dword [ecx - 0xc]
push eax
lea ecx, [esp + 0x10]
call fcn.00439760
mov ecx, dword [esp + 0xc]
push ecx
mov eax, esp
mov dword [eax], ecx
lea ecx, [esp + 0x28]
call fcn.004ad670
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004d86b3
add esp, 8
cmp eax, edi
jl 0x4b0093
mov ecx, dword [esp + 0xc]
cmp eax, dword [ecx - 8]
jg 0x4b0093
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0xc]
xor ecx, ecx
mov word [edx + eax*2], cx
lea ecx, [esp + 0x24]
call fcn.004a8080
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b0036
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b0056
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x94]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b0079
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d7eb0
add esp, 0x84
ret 0xc
push 0x80070057
call fcn.00438530
int3