Function at 0x454ad4
Capabilities:
Check if file exists

Disassembly:
push 0x4f8
mov eax, 0x4b8acd
call fcn.004991ba
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x498], ebx
mov dword [ebp - 0x494], eax
cmp dword [eax + 0x14], ebx
jne 0x454b02
xor eax, eax
inc eax
call fcn.0049923d
ret
push 0x4ca7c8
lea eax, [ebp - 0x43c]
push ebx
push eax
call fcn.00444e0c
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x424], 8
mov eax, dword [ebp - 0x438]
jae 0x454b2f
lea eax, [ebp - 0x438]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
push 2
pop edi
test eax, eax
jne 0x454bc4
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.00499dd0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x4ca7c8
xor ecx, ecx
call fcn.0042d976
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x454b9b
push edi
pop edi
push ebx
push 1
lea esi, [ebp - 0x43c]
call fcn.00403ead
mov eax, edi
jmp 0x454afc
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
cmp cx, bx
jne 0x454ba4
sub eax, edx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
lea esi, [ebp - 0x43c]
call fcn.004049d3
lea esi, [ebp - 0x4e8]
call fcn.00455710
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x490]
mov dword [ebp - 0x498], edi
call fcn.00403483
mov dword [ebp - 4], 3
push ebx
push 1
mov ecx, esi
call fcn.00403db0
push ebx
push ebx
lea eax, [ebp - 0x4b0]
call fcn.004377e8
push eax
mov byte [ebp - 4], 8
push dword [ebp - 0x494]
call fcn.004545c7
push 0x4c4770
lea esi, [ebp - 0x4cc]
call fcn.004034c9
mov eax, esi
push eax
lea eax, [ebp - 0x504]
push eax
mov byte [ebp - 4], 9
call fcn.00401298
sub esp, 0x10
mov byte [ebp - 4], 0xa
mov edx, eax
mov esi, esp
mov dword [ebp - 0x494], esp
call fcn.00436959
lea eax, [ebp - 0x4b0]
push eax
mov edx, str.wndCaption
mov byte [ebp - 4], 0xb
call fcn.00437ade
mov edi, eax
mov byte [ebp - 4], 0xa
call fcn.00436bb1
push ebx
push 1
lea ecx, [ebp - 0x504]
call fcn.00403db0
push ebx
push 1
lea esi, [ebp - 0x4cc]
mov byte [ebp - 4], 8
call fcn.00403ead
sub esp, 0x18
lea edx, [ebp - 0x490]
mov esi, esp
mov dword [ebp - 0x494], esp
call fcn.00436959
lea eax, [ebp - 0x4b0]
push eax
mov edx, str.wndClass
mov byte [ebp - 4], 0xc
call fcn.00437ade
mov edi, eax
mov byte [ebp - 4], 8
call fcn.00436bb1
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0x474]
call fcn.00437f83
mov byte [ebp - 4], 0xd
xor eax, eax
push 0x206
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
call fcn.00499dd0
add esp, 0xc
lea esi, [ebp - 0x420]
call fcn.0042d605
cmp dword [ebp - 0x45c], 0x10
mov eax, dword [ebp - 0x470]
jae 0x454d15
lea eax, [ebp - 0x470]
push dword [ebp - 0x460]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0042da27
lea eax, [ebp - 0x420]
push eax
call fcn.0042d2cc
cmp eax, ebx
jne 0x454d6e
cmp edx, ebx
jne 0x454d6e
push ebx
push 1
lea ecx, [ebp - 0x474]
call fcn.00403db0
lea esi, [ebp - 0x4b0]
mov byte [ebp - 4], 5
call fcn.00436b2e
push ebx
push 1
lea ecx, [ebp - 0x490]
call fcn.00403db0
push 4
jmp 0x454b85
cmp dword [ebp - 0x424], 8
mov eax, dword [ebp - 0x438]
jae 0x454d83
lea eax, [ebp - 0x438]
lea ecx, [ebp - 0x420]
push ecx
push eax
push str.__ls___commonRequest___ls_
lea ecx, [ebp - 0x458]
call fcn.0042f9b3
add esp, 0xc
push ebx
mov byte [ebp - 4], 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x440], 8
mov eax, dword [ebp - 0x454]
jae 0x454dbe
lea eax, [ebp - 0x454]
push eax
call fcn.0042eeb3
cmp eax, ebx
jne 0x454e3d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push 5
pop edi
cmp eax, edi
je 0x454de0
call esi
cmp eax, 0x522
jne 0x454dff
cmp dword [ebp - 0x440], 8
mov eax, dword [ebp - 0x454]
jae 0x454df5
lea eax, [ebp - 0x454]
push eax
call fcn.0042eb53
cmp eax, ebx
jne 0x454e3d
push ebx
push 1
lea esi, [ebp - 0x458]
call fcn.00403ead
push ebx
push 1
lea ecx, [ebp - 0x474]
call fcn.00403db0
lea esi, [ebp - 0x4b0]
mov byte [ebp - 4], 5
call fcn.00436b2e
push ebx
push 1
lea ecx, [ebp - 0x490]
call fcn.00403db0
jmp 0x454b86
xor edi, edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x478], 0x10
mov eax, dword [ebp - 0x48c]
jae 0x454e5c
lea eax, [ebp - 0x48c]
push ebx
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x454e79
inc edi
cmp edi, 0xa
jl 0x454e3f
jmp 0x454e97
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x43
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push 1
lea esi, [ebp - 0x458]
call fcn.00403ead
push ebx
push 1
lea ecx, [ebp - 0x474]
call fcn.00403db0
lea esi, [ebp - 0x4b0]
mov byte [ebp - 4], 5
call fcn.00436b2e
push ebx
push 1
lea ecx, [ebp - 0x490]
call fcn.00403db0
xor edi, edi
jmp 0x454b86