Function at 0x450e90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f98b2
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x67f4f4]
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 dword [ebp - 0x834], ecx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x450ed2
xor eax, eax
jmp 0x4510ff
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x450ecb
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450ee2
sub ecx, edx
sar ecx, 1
cmp ecx, 0x200
jae 0x450ecb
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0053dd00
push 0x400
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.005626b7
add esp, 0x18
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.version1.0_encodingutf_16
lea ecx, [ebp - 0x818]
call fcn.0044dc70
push esi
lea ecx, [ebp - 0x830]
mov dword [ebp - 4], 0
call fcn.0044dc70
mov dword [ebp - method.CXMLArchive.virtual_0], vtable.CXMLArchive.0
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
mov esi, dword [ebp - 0x818]
mov dword [ebp - 0x820], esi
test esi, esi
je 0x450f83
lock inc dword [esi + 8]
push 0
lea eax, [ebp - 0x830]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x82c]
call fcn.004507d0
mov edi, dword [ebp - 0x830]
or ebx, 0xffffffff
mov ecx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
je 0x450fef
mov eax, ebx
lock xadd dword [edi + 8], eax
dec eax
jne 0x450fef
mov eax, dword [edi]
test eax, eax
je 0x450fc7
push eax
call ecx
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x450fde
push eax
call fcn.0047911a
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.00478a99
mov ecx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 8
mov byte [ebp - 4], 7
test esi, esi
je 0x451030
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x451030
mov eax, dword [esi]
test eax, eax
je 0x45100e
push eax
call ecx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x451025
push eax
call fcn.0047911a
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00478a99
add esp, 8
cmp dword [ebp - 0x828], 0
jne 0x451040
xor esi, esi
jmp 0x4510c6
mov ebx, dword [ebp - 0x834]
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x82c]
mov ecx, ebx
push eax
call fcn.004517b0
lea eax, [ebp - 0x82c]
mov ecx, ebx
push eax
call fcn.00451ec0
lea eax, [ebp - 0x82c]
mov ecx, ebx
push eax
call fcn.00450a10
lea eax, [ebp - 0x82c]
mov ecx, ebx
push eax
call fcn.00451120
lea eax, [ebp - 0x82c]
mov ecx, ebx
push eax
call fcn.004521b0
lea eax, [ebp - 0x82c]
mov ecx, ebx
push eax
call fcn.00450c00
mov eax, dword [ebx + 0x1c]
lea ecx, [ebp - 0x811]
mov dword [ebx + 0x20], eax
call fcn.0044e280
push eax
lea eax, [ebp - 0x82c]
mov ecx, ebx
push eax
call fcn.0044ea20
mov esi, 1
lea ecx, [ebp - 0x820]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.CXMLArchive.virtual_0], vtable.CXMLArchive.0
call fcn.00452ad0
lea ecx, [ebp - 0x824]
call fcn.00452ad0
mov edx, dword [ebp - 0x828]
test edx, edx
je 0x4510fd
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov eax, esi
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.00478a88
mov esp, ebp
pop ebp
ret 4