Function at 0x6ae040
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e4486
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x5c
mov eax, dword [0x75aa5c]
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
je 0x6ae08f
mov eax, dword [ebp - 0x60]
cmp dword [eax + 0xc], 2
jl 0x6ae099
mov eax, 0x3e9
jmp 0x6ae3d6
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x64], edx
cmp dword [ebp - 0x64], 0
je 0x6ae0b0
cmp dword [ebp - 0x64], 1
je 0x6ae0b9
jmp 0x6ae10f
mov dword [ebp - 0x1c], 0x71ca40
jmp 0x6ae119
mov eax, dword [ebp + 8]
push eax
call fcn.005a7ce0
add esp, 4
add eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 8]
je 0x6ae0e9
mov edx, dword [ebp - 0x1c]
movsx eax, byte [edx]
cmp eax, 0x5c
je 0x6ae0e9
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
jmp 0x6ae0cb
mov edx, dword [ebp - 0x1c]
movsx eax, byte [edx]
cmp eax, 0x5c
je 0x6ae0fe
mov eax, 0x3e9
jmp 0x6ae3d6
mov ecx, dword [ebp - 0x1c]
mov byte [ecx], 0
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x6ae119
mov eax, 0x3e9
jmp 0x6ae3d6
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0xc]
imul ecx, ecx, 0x18
add ecx, 0x8f78c4
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401ce0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
jne 0x6ae247
mov edx, dword [ebp - 0x60]
cmp dword [edx + 8], 0
jne 0x6ae189
push 0xc
call fcn.005a7c1e
add esp, 4
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x58], 0
je 0x6ae16f
mov ecx, dword [ebp - 0x58]
call fcn.006be240
mov dword [ebp - 0x68], eax
jmp 0x6ae176
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x54]
mov dword [ecx + 8], edx
lea ecx, [ebp - 0x3c]
call fcn.0042b810
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x71ca44
lea edx, [ebp - 0x3c]
push edx
call fcn.004a4380
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.004db640
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.00405370
push eax
lea ecx, [ebp - 0x3c]
call fcn.00405360
push eax
lea ecx, [ebp - 0x40]
call fcn.004db6a0
lea ecx, [ebp - 0x40]
call fcn.004db780
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x6ae228
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3c]
call fcn.00405360
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x60]
mov ecx, dword [ecx + 8]
call fcn.006be2f0
jmp 0x6ae21f
mov dword [ebp - 4], 3
jmp 0x6ae22f
mov dword [ebp - 0x18], 0x3ea
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004db660
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00405300
cmp dword [ebp - 0x18], 0
jne 0x6ae276
push 0x1770
mov edx, dword [ebp - 0x60]
mov ecx, dword [edx + 8]
call fcn.006be770
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 8]
call fcn.006beb30
movzx ecx, al
test ecx, ecx
jne 0x6ae276
mov dword [ebp - 0x18], 0x3e8
cmp dword [ebp - 0x18], 0
jne 0x6ae2c7
mov dword [ebp - 0x48], 0
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0x60]
call fcn.006b6180
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x6ae2c7
cmp dword [ebp - 0x48], 7
jae 0x6ae2a7
mov dword [ebp - 0x18], 0x3e8
jmp 0x6ae2c7
cmp dword [ebp - 0x48], 7
jne 0x6ae2ba
mov ecx, dword [ebp - 0x60]
call fcn.006b6320
mov dword [ebp - 0x18], eax
jmp 0x6ae2c7
cmp dword [ebp - 0x48], 8
jbe 0x6ae2c7
mov dword [ebp - 0x18], 0x3f3
cmp dword [ebp - 0x18], 0
je 0x6ae2e4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x60]
call fcn.006ae460
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x6ae2f5
mov ecx, dword [ebp - 0x60]
call fcn.006ae850
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x6ae312
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x60]
call fcn.006ae460
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x6ae39e
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 6
push str.begin_IMMEDIATE_transaction_
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 8]
call fcn.006be480
mov dword [ebp - 0x4c], 1
push str.commit_transaction_
mov ecx, dword [ebp - 0x60]
mov ecx, dword [ecx + 8]
call fcn.006be480
jmp 0x6ae397
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
jne 0x6ae3be
push 0x1770
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 8]
call fcn.006be770
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 4], 1
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401d00
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.005a6f18
mov esp, ebp
pop ebp
ret 0xc