Function at 0x4570b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddb01
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x5246f0]
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 eax, dword [ebp + 8]
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x124], 0
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], esi
je 0x457130
call fcn.00404d10
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push eax
call ebx
test eax, eax
setne al
test al, al
je 0x457130
mov ecx, edi
call fcn.00404d10
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x457142
mov ebx, esi
mov esi, dword [ebp - 0x110]
call fcn.004574c0
jmp 0x457473
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x138], esp
push str.BYAppIdentifier.dat
call fcn.004053b0
lea ecx, [ebp - 0x2c]
mov esi, edi
call fcn.004581a0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
je 0x457195
lea ecx, [ebp - 0x2c]
call fcn.00404d10
push eax
call ebx
test eax, eax
setne al
test al, al
je 0x457195
lea ecx, [ebp - 0x2c]
call fcn.00404d10
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x4571ab
mov ebx, dword [ebp - 0x114]
mov esi, dword [ebp - 0x110]
call fcn.004574c0
jmp 0x45746b
lea edi, [ebp - 0x134]
lea ecx, [ebp - 0x2c]
call fcn.00458220
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x134]
cmp ecx, dword [ebp - 0x130]
jne 0x4571e7
mov ebx, dword [ebp - 0x114]
mov edi, dword [ebp - 0x118]
mov esi, dword [ebp - 0x110]
call fcn.004574c0
jmp 0x457460
lea ecx, [ebp - 0x134]
lea esi, [ebp - 0x48]
call fcn.0045a330
mov byte [ebp - 4], 3
cmp dword [ebp - 0x38], 0
jne 0x45721b
mov ebx, dword [ebp - 0x114]
mov edi, dword [ebp - 0x118]
mov esi, dword [ebp - 0x110]
call fcn.004574c0
jmp 0x457458
lea ebx, [ebp - 0x48]
lea edi, [ebp - 0x120]
call fcn.0045c8b0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x457242
mov al, byte [eax + 8]
test al, al
je 0x457242
cmp al, 7
je 0x45726f
mov ebx, dword [ebp - 0x114]
mov edi, dword [ebp - 0x118]
mov esi, dword [ebp - 0x110]
call fcn.004574c0
lea edx, [ebp - 0x120]
mov dword [ebp - 0x124], 1
push edx
jmp 0x45744f
push 0x5126a3
lea ecx, [ebp - 0x64]
call fcn.004053b0
push 0x515914
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.004053b0
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0xb8]
push ecx
lea ebx, [ebp - 0x64]
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 6
call fcn.0045ca50
lea ecx, [ebp - 0x80]
call fcn.00405520
mov ecx, ebx
mov byte [ebp - 4], 9
call fcn.00405520
push 0x5126a3
lea ecx, [ebp - 0xf0]
call fcn.004053b0
push str.appid
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0xa
call fcn.004053b0
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x9c]
push eax
lea ebx, [ebp - 0xf0]
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0xb
call fcn.0045ca50
lea ecx, [ebp - 0x10c]
call fcn.00405520
mov ecx, ebx
mov byte [ebp - 4], 0xe
call fcn.00405520
push 0x5126a3
lea ecx, [ebp - 0x80]
call fcn.004053b0
push str.aaid
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xf
call fcn.004053b0
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0xd4]
push edx
lea ebx, [ebp - 0x80]
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0x10
call fcn.0045ca50
lea ecx, [ebp - 0x64]
call fcn.00405520
mov ecx, ebx
mov byte [ebp - 4], 0x13
call fcn.00405520
cmp dword [ebp - 0xa8], 0
je 0x457406
cmp dword [ebp - 0x8c], 0
je 0x457406
cmp dword [ebp - 0xc4], 0
je 0x457406
mov esi, dword [ebp - 0x110]
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0xb8]
push edx
push esi
call fcn.00456d10
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x124], 1
call fcn.00405520
lea ecx, [ebp - 0x9c]
call fcn.00405520
lea ecx, [ebp - 0xb8]
call fcn.00405520
lea eax, [ebp - 0x120]
push eax
mov byte [ebp - 4], 3
call fcn.0045c840
lea ecx, [ebp - 0x48]
call fcn.00405520
lea ecx, [ebp - 0x134]
call fcn.00402d40
lea ecx, [ebp - 0x2c]
call fcn.00401780
mov eax, esi
jmp 0x457479
mov ebx, dword [ebp - 0x114]
mov edi, dword [ebp - 0x118]
mov esi, dword [ebp - 0x110]
call fcn.004574c0
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x124], 1
call fcn.00405520
lea ecx, [ebp - 0x9c]
call fcn.00405520
lea ecx, [ebp - 0xb8]
call fcn.00405520
lea ecx, [ebp - 0x120]
push ecx
mov byte [ebp - 4], 3
call fcn.0045c840
lea ecx, [ebp - 0x48]
call fcn.00405520
lea ecx, [ebp - 0x134]
call fcn.00402d40
lea ecx, [ebp - 0x2c]
call fcn.00401780
mov eax, dword [ebp - 0x110]
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.0045f522
mov esp, ebp
pop ebp
ret