Function at 0x40c780
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x4b2602
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x4e70ac]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, dword [edi + 0x224]
mov dword [ebp - 0x30], edi
test esi, esi
je 0x40cc08
xor eax, eax
push 0x206
push eax
lea ecx, [ebp + 2]
push ecx
mov word [ebp], ax
call fcn.00436ad0
add esp, 0xc
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x104
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
push eax
lea ecx, [ebp]
push ecx
mov ecx, esi
call edx
lea eax, [ebp]
lea edx, [eax + 2]
jmp 0x40c810
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c810
sub eax, edx
sar eax, 1
je 0x40cc08
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cc08
push 0x7c
mov byte [ebp - 0x18], 1
call fcn.00418b17
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40c85c
mov ecx, eax
call fcn.00451620
jmp 0x40c85e
xor eax, eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.00409ed0
lea ecx, [ebp - 0x18]
test al, al
jne 0x40c88c
mov dword [ebp - 4], 0xffffffff
call fcn.004077a0
jmp 0x40cc08
push 0
push str.Items
call fcn.0040beb0
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x40c8b3
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004077a0
jmp 0x40cc08
mov ecx, edi
call fcn.0040c6b0
xor esi, esi
lea esp, [esp]
mov edx, dword [ebp - 0x48]
push esi
push edx
push str.Item
lea ecx, [ebp - 0x18]
call fcn.00409fc0
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x40cbec
push esi
push 0x4bbaf0
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040b930
mov edi, 8
mov byte [ebp - 4], 2
cmp dword [eax + 0x18], edi
jb 0x40c907
mov eax, dword [eax + 4]
jmp 0x40c90a
add eax, 4
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405c30
mov byte [ebp - 4], 4
cmp dword [ebp - 0x9c], edi
jb 0x40c92e
mov ecx, dword [ebp - 0xb0]
push ecx
call fcn.00418b46
add esp, 4
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x9c], 7
mov dword [ebp - 0xa0], 0
mov word [ebp - 0xb0], dx
cmp dword [eax - 0xc], edx
jne 0x40c97c
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c8c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40c8c0
push esi
push str.state
lea ecx, [ebp - 0x18]
call fcn.004077d0
test eax, eax
je 0x40c99f
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0040e250
jmp 0x40c8c0
push esi
push str.backup_datetime
lea ecx, [ebp - 0x18]
call fcn.004077d0
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x34], eax
cdq
push 0
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
call fcn.00407260
push eax
lea ecx, [ebp - 0x28]
call fcn.00407230
push eax
lea ecx, [ebp - 0x28]
call fcn.00407200
push eax
lea ecx, [ebp - 0x60]
call fcn.004070b0
mov ecx, dword [ebp - 0x60]
push 0
push 0
mov dword [ebp - 0x38], ecx
push 0
lea ecx, [ebp - 0x28]
call fcn.00407260
push eax
lea ecx, [ebp - 0x28]
call fcn.00407230
push eax
lea ecx, [ebp - 0x28]
call fcn.00407200
push eax
lea ecx, [ebp - 0xc0]
call fcn.004079a0
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0xc0]
push edx
add ecx, 0xa0
call fcn.00413e20
push esi
push 0x4bbab8
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 4
call fcn.004077d0
push esi
push str.mask
lea ecx, [ebp - 0x18]
mov edi, eax
call fcn.004077d0
push esi
mov ebx, eax
push 0x4bbaa0
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040b930
cmp dword [eax + 0x18], 8
mov byte [ebp - 4], 7
jb 0x40ca78
mov eax, dword [eax + 4]
jmp 0x40ca7b
add eax, 4
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405c30
lea ecx, [ebp - 0x98]
call fcn.00409050
lea ecx, [ebp - 0x7c]
call fcn.00408b80
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x7c], ecx
push edx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], ebx
call fcn.004093c0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
call fcn.004093c0
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0xc8]
add edi, 0x234
push edx
mov ecx, edi
call fcn.00409080
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x40], ecx
mov ecx, dword [edi]
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0x50]
mov dword [ebp - 0x50], ecx
push edx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x4c], eax
call fcn.00401440
test al, al
je 0x40cb38
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x98]
call fcn.00408fc0
push eax
lea ecx, [ebp - 0xe0]
push ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xb
call fcn.00471be0
mov ecx, dword [eax + 4]
call fcn.0040a940
lea ecx, [ebp - 0x98]
call fcn.00408bc0
jmp 0x40cbaa
push 0x20
call fcn.00418b17
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0xc
test eax, eax
je 0x40cb58
mov ecx, eax
call fcn.0040c690
mov ebx, eax
jmp 0x40cb5a
xor ebx, ebx
lea edx, [ebp - 0x7c]
push edx
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0xa
call fcn.00408fc0
push eax
lea eax, [ebp - 0xd4]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xd
call fcn.0040a940
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0xa
call fcn.00408bc0
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0xec]
mov dword [ebp - 0x58], ecx
push eax
mov ecx, edi
mov dword [ebp - 0x54], ebx
call fcn.0040a850
lea ecx, [ebp - 0x7c]
call fcn.00408bc0
lea ecx, [ebp - 0x2c]
call fcn.0040e250
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0040e250
jmp 0x40c8c0
cmp byte [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
je 0x40cc08
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40cc08
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0043640c
add ebp, 0x20c
mov esp, ebp
pop ebp
ret