Function at 0x454290
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581eeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
mov dword [ebp - 0x6c], ecx
push ebx
mov ecx, dword [ebp + 8]
push esi
xor ebx, ebx
push edi
mov eax, dword [ecx + 0xf4]
mov dword [ebp - 0x10], esp
cmp eax, ebx
mov dword [ebp - 4], ebx
jne 0x4542cf
lea eax, [ecx + 0xf8]
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi]
cmp ecx, ebx
jne 0x4542db
lea ecx, [edi + 4]
push eax
push ecx
call fcn.0055054c
add esp, 8
test eax, eax
jne 0x454301
mov eax, 6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
cmp eax, ebx
jne 0x45430a
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x454529
mov ecx, dword [ebp + 8]
mov al, byte [ecx + 0x16e]
test al, al
jne 0x454529
mov eax, dword [0x639ad4]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
push ebx
add ecx, 0x20
push edx
mov byte [ebp - 4], 1
call fcn.005080e0
mov eax, dword [ebp - 0x14]
push ebx
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x34], bx
call fcn.004024c0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x1c], bx
mov eax, dword [edi]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x454373
mov edi, eax
jmp 0x454376
add edi, 4
mov esi, dword [ebp - 0x38]
cmp esi, ebx
jne 0x454380
lea esi, [ebp - 0x34]
mov eax, dword [0x63f24c]
cmp eax, ebx
je 0x454465
test esi, esi
je 0x454465
test edi, edi
je 0x454465
push eax
lea ecx, [ebp - 0x68]
call fcn.00403500
push esi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.004034d0
push edi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.004034d0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.00401070
mov esi, dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
call fcn.00403580
lea ecx, [ebp - 0x50]
mov edi, eax
call fcn.00403580
push edi
mov ebx, eax
call fcn.0054e46e
push ebx
mov edi, eax
call fcn.0054e46e
add esi, edi
add eax, esi
lea ecx, [eax + eax + 2]
push ecx
call fcn.0056649c
add esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
je 0x454441
lea ecx, [ebp - 0x50]
call fcn.00403580
lea ecx, [ebp - 0x5c]
mov edi, eax
call fcn.00403580
lea ecx, [ebp - 0x68]
mov esi, eax
call fcn.00403580
mov edx, dword [ebp - 0x20]
push edi
push esi
push eax
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0x20]
push eax
call fcn.0054e46e
add esp, 0x14
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00401070
mov ecx, dword [0x63ef08]
xor ebx, ebx
push ebx
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x28], bx
call fcn.004024c0
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 7
cmp ecx, ebx
jne 0x45448f
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x454499
lea eax, [ebp - 0x1c]
push 0x10023
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
jne 0x4544e1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0056a100
jmp 0x45490b
cmp eax, 6
jne 0x4545b0
mov edx, dword [ebp + 8]
mov byte [edx + 0x16e], 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00401070
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0056a100
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [edi]
cmp eax, ebx
jne 0x454532
lea eax, [edi + 4]
mov ecx, dword [ebp - 0x6c]
push 0xffffffffffffffff
push eax
call fcn.004541f0
cmp eax, 0xffffffff
jle 0x4542e9
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x16f]
test cl, cl
jne 0x4542e9
mov ecx, dword [0x639ad4]
mov dword [ebp - 0x14], ecx
mov edx, eax
xor esi, esi
lea eax, [ebp - 0x14]
push esi
lea ebx, [edx + 0x20]
push eax
mov ecx, ebx
mov byte [ebp - 4], 9
call fcn.005080e0
mov ecx, dword [ebp - 0x14]
push esi
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov word [ebp - 0x28], si
call fcn.004024c0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov word [ebp - 0x1c], si
mov edi, dword [ebp + 0xc]
mov byte [ebp - 4], 0xb
mov eax, dword [edi]
cmp eax, esi
je 0x45466b
mov edi, eax
jmp 0x45466e
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ebx
mov eax, dword [esi]
mov word [ebp - 0x40], bx
push eax
call fcn.00402b60
mov eax, dword [esi]
mov byte [ebp - 4], 8
cmp eax, ebx
jne 0x4545d5
lea eax, [esi + 4]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x44]
push ecx
push eax
lea ecx, [edi + 0x20]
call fcn.0052e310
cmp eax, 1
jne 0x454625
mov edx, dword [ebp - 0x44]
mov ecx, esi
push edx
mov byte [edi + 0x16e], al
call fcn.00402b60
mov al, byte [ebp + 0x10]
test al, al
je 0x454614
mov eax, dword [ebp - 0x44]
cmp eax, ebx
jne 0x45460c
lea eax, [ebp - 0x40]
push eax
mov ecx, edi
call fcn.005225b0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call fcn.00401070
jmp 0x4544f4
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0056a100
mov edi, dword [ebp + 0xc]
xor ebx, ebx
jmp 0x454301
add edi, 4
mov esi, dword [ebp - 0x2c]
test esi, esi
jne 0x454678
lea esi, [ebp - 0x28]
mov eax, dword [0x63f248]
test eax, eax
je 0x454761
test esi, esi
je 0x454761
test edi, edi
je 0x454761
push eax
lea ecx, [ebp - 0x50]
call fcn.00403500
push esi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xc
call fcn.004034d0
push edi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xd
call fcn.004034d0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xe
call fcn.00401070
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x5c]
call fcn.00403580
lea ecx, [ebp - 0x68]
mov edi, eax
call fcn.00403580
push eax
call fcn.0054e46e
mov edx, eax
push edi
mov dword [ebp - 0x70], edx
call fcn.0054e46e
mov edx, dword [ebp - 0x70]
add esi, edx
add eax, esi
lea eax, [eax + eax + 2]
push eax
call fcn.0056649c
add esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
je 0x45473d
lea ecx, [ebp - 0x68]
call fcn.00403580
lea ecx, [ebp - 0x5c]
mov edi, eax
call fcn.00403580
lea ecx, [ebp - 0x50]
mov esi, eax
call fcn.00403580
mov ecx, dword [ebp - 0x20]
push edi
push esi
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x20]
push edx
call fcn.0054e46e
add esp, 0x14
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xd
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xc
call fcn.00401070
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xb
call fcn.00401070
mov eax, dword [0x63ef08]
xor edi, edi
push edi
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], edi
mov word [ebp - 0x34], di
call fcn.004024c0
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 0xf
cmp ecx, edi
jne 0x45478a
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0x20]
cmp eax, edi
jne 0x454794
lea eax, [ebp - 0x1c]
push 0x10023
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
jne 0x4547dc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xb
call fcn.00401070
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.00401070
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0056a100
jmp 0x45490b
cmp eax, 6
jne 0x454820
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 0xb
mov byte [ecx + 0x16f], 1
lea ecx, [ebp - 0x38]
call fcn.00401070
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.00401070
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0056a100
jmp 0x4542e9
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], edi
mov edx, dword [esi]
mov word [ebp - 0x40], di
push edx
call fcn.00402b60
mov eax, dword [esi]
mov byte [ebp - 4], 0x10
cmp eax, edi
jne 0x454845
lea eax, [esi + 4]
lea ecx, [ebp - 0x44]
push ecx
push eax
mov ecx, ebx
call fcn.0052e310
cmp eax, 1
jne 0x454881
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x44]
push edx
mov ecx, esi
mov byte [edi + 0x16e], al
call fcn.00402b60
mov al, byte [ebp + 0x10]
test al, al
je 0x454881
lea ecx, [ebp - 0x44]
call fcn.00403580
push eax
mov ecx, edi
call fcn.005225b0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xf
call fcn.00401070
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xb
call fcn.00401070
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.00401070
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
jmp 0x45451f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 2
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc