Function at 0x45e9e0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x1c8
mov eax, dword [0x541f38]
xor eax, esp
mov dword [esp + 0x1c4], eax
mov eax, dword [esp + 0x1cc]
add eax, 0xfffffff0
push esi
push eax
call fcn.00439080
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1d8]
add eax, 0xfffffff0
push eax
call fcn.00439080
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1e0]
add eax, 0xfffffff0
push eax
call fcn.00439080
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1e8]
add eax, 0xfffffff0
push eax
call fcn.00439080
add esp, 0x10
add eax, 0x10
push str.SafeNewCenter
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
call fcn.00458f60
mov eax, dword [0x54ffc8]
mov edx, dword [eax + 0xc]
mov ecx, 0x54ffc8
call edx
lea esi, [eax + 0x10]
push 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], esi
call fcn.0048a610
lea ecx, [esp + 8]
call fcn.00458620
mov ecx, eax
call fcn.00457990
lea ecx, [esp + 4]
call fcn.00458620
mov ecx, eax
call fcn.00457990
lea ecx, [esp + 0x10]
call fcn.00458620
mov ecx, eax
call fcn.00457990
lea ecx, [esp + 0x18]
call fcn.00458620
mov ecx, eax
call fcn.00457990
mov eax, dword [esp + 4]
push str.safe
push eax
call fcn.004d7575
add esp, 8
test eax, eax
jne 0x45eae0
push str.SafeNewCenter
jmp 0x45eaff
mov ecx, dword [esp + 4]
push 0x51707c
push ecx
call fcn.004d7575
add esp, 8
test eax, eax
jne 0x45f226
push str.SDNewCenter
lea ecx, [esp + 0x10]
call fcn.0044d670
mov edx, dword [esp + 8]
cmp dword [edx - 0xc], 0
jle 0x45f226
mov eax, dword [esp + 0x1d8]
cmp dword [eax - 0xc], 0
jle 0x45f226
mov ecx, dword [esp + 0x1dc]
cmp dword [ecx - 0xc], 0
jle 0x45f226
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.004577c0
add esp, 0xc
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004577c0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x50]
push 3
mov dword [esp + 0x50], ecx
push eax
lea ecx, [esp + 0x54]
call fcn.00453930
mov edx, dword [esp + 0x4c]
push edx
lea ecx, [esp + 0x154]
call fcn.00424ba0
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x50]
cmp eax, ecx
je 0x45eb9e
push eax
call fcn.004d733e
add esp, 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45ebbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ebde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
cmp dword [esp + 0x168], 0x10
mov dword [esp + 0x1ad], eax
mov dword [esp + 0x1b1], eax
mov dword [esp + 0x1b5], eax
mov word [esp + 0x1b9], ax
mov byte [esp + 0x1bb], al
mov eax, dword [esp + 0x154]
mov byte [esp + 0x1ac], 0
jae 0x45ec24
lea eax, [esp + 0x154]
mov edx, dword [esp + 0x164]
lea ecx, [esp + 0x1ac]
push ecx
push edx
push eax
call fcn.0044f0d0
mov eax, dword [0x54ffc8]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x54ffc8
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
xor esi, esi
jmp 0x45ec60
movzx eax, byte [esp + esi + 0x1ac]
push eax
lea ecx, [esp + 0x18]
push str._02x
push ecx
call fcn.0045bf30
inc esi
add esp, 0xc
cmp esi, 0x10
jb 0x45ec60
lea ecx, [esp + 0x14]
call fcn.00458620
mov ecx, eax
call fcn.00457990
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.004577c0
add esp, 0xc
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004577c0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x50]
push 3
mov dword [esp + 0x50], ecx
push eax
lea ecx, [esp + 0x54]
call fcn.00453930
mov edx, dword [esp + 0x4c]
push edx
lea ecx, [esp + 0x170]
call fcn.00424ba0
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x50]
cmp eax, ecx
je 0x45ecf7
push eax
call fcn.004d733e
add esp, 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45ed17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ed37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
cmp dword [esp + 0x184], 0x10
mov dword [esp + 0x1ad], eax
mov dword [esp + 0x1b1], eax
mov dword [esp + 0x1b5], eax
mov word [esp + 0x1b9], ax
mov byte [esp + 0x1bb], al
mov eax, dword [esp + 0x170]
mov byte [esp + 0x1ac], 0
jae 0x45ed7d
lea eax, [esp + 0x170]
mov edx, dword [esp + 0x180]
lea ecx, [esp + 0x1ac]
push ecx
push edx
push eax
call fcn.0044f0d0
mov eax, dword [0x54ffc8]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x54ffc8
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
xor esi, esi
mov edi, edi
movzx eax, byte [esp + esi + 0x1ac]
push eax
lea ecx, [esp + 0x20]
push str._02x
push ecx
call fcn.0045bf30
inc esi
add esp, 0xc
cmp esi, 0x10
jb 0x45edb0
lea ecx, [esp + 0x1c]
call fcn.00458620
mov ecx, eax
call fcn.00457990
push ecx
mov ecx, esp
push str..dat
call fcn.0043a930
mov eax, dword [esp + 0x1e4]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00439080
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x1e0]
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00439080
lea edx, [esp + 0x30]
add esp, 4
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.0045bab0
mov esi, dword [esp + 0x30]
add esp, 0x10
test eax, eax
je 0x45f1ce
cmp dword [esi - 0xc], 0
jle 0x45f1ce
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45ee64
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x45ee64
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea ecx, [esp + 0x40]
call fcn.0042bb10
lea ecx, [esp + 0x188]
call fcn.00422680
mov eax, dword [esp + 0x14]
push 0xfde9
push eax
lea ecx, [esp + 0x54]
call fcn.00456290
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x1b0]
call fcn.0042bc20
lea edx, [esp + 0x1ac]
push edx
push str.url_check
lea ecx, [esp + 0x44]
call fcn.0042cf60
mov ecx, eax
call fcn.0042bfb0
lea ecx, [esp + 0x1ac]
call fcn.0042bec0
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x50]
cmp eax, ecx
je 0x45eedb
push eax
call fcn.004d733e
add esp, 4
mov edx, dword [esp + 0x1c]
push 0xfde9
push edx
lea ecx, [esp + 0x54]
call fcn.00456290
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x1b0]
call fcn.0042bc20
lea ecx, [esp + 0x1ac]
push ecx
push str.content_check
lea ecx, [esp + 0x44]
call fcn.0042cf60
mov ecx, eax
call fcn.0042bfb0
lea ecx, [esp + 0x1ac]
call fcn.0042bec0
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x50]
cmp eax, edx
je 0x45ef3b
push eax
call fcn.004d733e
add esp, 4
mov eax, dword [esp + 8]
push 0xfde9
push eax
lea ecx, [esp + 0x54]
call fcn.00456290
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x1b0]
call fcn.0042bc20
lea edx, [esp + 0x1ac]
push edx
push 0x516dac
lea ecx, [esp + 0x44]
call fcn.0042cf60
mov ecx, eax
call fcn.0042bfb0
lea ecx, [esp + 0x1ac]
call fcn.0042bec0
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x50]
cmp eax, ecx
je 0x45ef9b
push eax
call fcn.004d733e
add esp, 4
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x1b0]
push eax
lea ecx, [esp + 0x190]
call fcn.004226c0
cmp dword [eax + 0x18], 0x10
jb 0x45efbf
mov eax, dword [eax + 4]
jmp 0x45efc2
add eax, 4
push 0xfde9
push eax
lea ecx, [esp + 0x54]
call fcn.00453850
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x28]
call fcn.0043a930
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x50]
cmp eax, edx
je 0x45eff2
push eax
call fcn.004d733e
add esp, 4
lea ecx, [esp + 0x1ac]
call fcn.00424c40
push esi
lea ecx, [esp + 0x34]
call fcn.0048a6d0
test eax, eax
je 0x45f106
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
call fcn.0048a790
test eax, eax
je 0x45f106
lea ecx, [esp + 0x24]
call fcn.00439d40
lea ecx, [esp + 0x188]
call fcn.00421ca0
lea ecx, [esp + 0x3c]
call fcn.0042bec0
lea ecx, [esp + 0x1c]
call fcn.00439d40
lea ecx, [esp + 0x16c]
call fcn.00424c40
lea ecx, [esp + 0x14]
call fcn.00439d40
lea ecx, [esp + 0x150]
call fcn.00424c40
lea ecx, [esp + 0x30]
call fcn.0048a650
lea ecx, [esp + 0x20]
call fcn.00439d40
lea ecx, [esp + 0xc]
call fcn.00439d40
lea ecx, [esp + 0x18]
call fcn.00439d40
lea ecx, [esp + 0x10]
call fcn.00439d40
lea ecx, [esp + 4]
call fcn.00439d40
lea ecx, [esp + 8]
call fcn.00439d40
lea ecx, [esp + 0x1d0]
call fcn.00439d40
lea ecx, [esp + 0x1d4]
call fcn.00439d40
lea ecx, [esp + 0x1d8]
call fcn.00439d40
lea ecx, [esp + 0x1dc]
call fcn.00439d40
lea ecx, [esp + 0x1e0]
call fcn.00439d40
mov eax, 1
pop esi
mov ecx, dword [esp + 0x1c4]
xor ecx, esp
call fcn.004d7eb0
add esp, 0x1c8
ret 0x14
lea ecx, [esp + 0x24]
call fcn.00439d40
lea ecx, [esp + 0x188]
call fcn.00421ca0
lea ecx, [esp + 0x3c]
call fcn.0042bec0
lea ecx, [esp + 0x1c]
call fcn.00439d40
lea ecx, [esp + 0x16c]
call fcn.00424c40
lea ecx, [esp + 0x14]
call fcn.00439d40
lea ecx, [esp + 0x150]
call fcn.00424c40
lea ecx, [esp + 0x30]
call fcn.0048a650
lea ecx, [esp + 0x20]
call fcn.00439d40
lea ecx, [esp + 0xc]
call fcn.00439d40
lea ecx, [esp + 0x18]
call fcn.00439d40
lea ecx, [esp + 0x10]
call fcn.00439d40
lea ecx, [esp + 4]
call fcn.00439d40
lea ecx, [esp + 8]
call fcn.00439d40
lea ecx, [esp + 0x1d0]
call fcn.00439d40
lea ecx, [esp + 0x1d4]
call fcn.00439d40
lea ecx, [esp + 0x1d8]
call fcn.00439d40
lea ecx, [esp + 0x1dc]
call fcn.00439d40
lea ecx, [esp + 0x1e0]
call fcn.00439d40
jmp 0x45f39a
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f1ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x16c]
call fcn.00424c40
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f21a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x150]
call fcn.00424c40
lea ecx, [esp + 0x30]
call fcn.0048a650
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f24b
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 0x45f26b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f28b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f2ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f2cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f2eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1d0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f30e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1d4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f331
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1d8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f354
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1dc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f377
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1e0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f39a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c8]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004d7eb0
add esp, 0x1c8
ret 0x14