Function at 0x509ef0
Capabilities:
Check if file exists
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58e62b
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x5cca0c]
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 + 0x10]
sub eax, 0
mov esi, ecx
je 0x50a21f
sub eax, 1
je 0x509f8c
sub eax, 1
jne 0x50a29b
call fcn.00416b40
add eax, 4
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x509f70
call fcn.00416b40
mov ecx, eax
call fcn.00402be0
test al, al
je 0x509f70
call fcn.00416b40
mov ecx, dword [eax + 4]
add eax, 4
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call fcn.00416b40
mov ecx, eax
call fcn.00402bf0
push 1
mov ecx, esi
call fcn.00508160
jmp 0x50a29b
call fcn.00416b40
mov edx, dword [eax + 4]
add eax, 4
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x509fb3
push eax
mov eax, dword [esi + 4]
push eax
call fcn.00416b40
mov ecx, eax
call fcn.004fad80
mov ecx, dword [esi + 0x44]
push ecx
lea edx, [ebp - 0x48]
push edx
mov ecx, 0x5ce6d8
call fcn.0046c7a0
xor edi, edi
cmp dword [ebp - 0x34], edi
mov dword [ebp - 4], edi
jne 0x509fea
cmp dword [ebp - 0x30], 0x10
jb 0x50a29b
mov eax, dword [ebp - 0x44]
push eax
call fcn.0055215c
add esp, 4
jmp 0x50a29b
push 0xffffffffffffffff
lea eax, [esi + 0x20c]
push edi
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x28], 0
call fcn.0040a080
cmp dword [ebp - 0x14], 0x10
mov byte [ebp - 4], 1
jb 0x50a01f
mov ebx, dword [ebp - 0x28]
cmp ebx, edi
jne 0x50a022
xor eax, eax
jmp 0x50a051
lea ebx, [ebp - 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 1
cmp edi, 0x3fffffff
jle 0x50a03a
xor eax, eax
jmp 0x50a051
lea eax, [edi + edi]
call fcn.00553150
mov eax, esp
push 0x3a8
push edi
push ebx
push eax
call fcn.00401140
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x50a093
mov ecx, dword [esi + 0x44]
push ecx
lea edx, [ebp - 0x84]
push edx
call fcn.00402460
mov ecx, eax
call fcn.0043c3b0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040a080
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.004074a0
mov ebx, dword [esi + 4]
lea edi, [esi + 4]
call fcn.004a1350
test eax, eax
je 0x50a0be
push str.uiview_get_window_rect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x50a0be
push 0x7d2
push ebx
lea ecx, [ebp - 0x68]
push ecx
call eax
lea edx, [ebp - 0x68]
push edx
mov ecx, edi
call fcn.00449aa0
mov ecx, dword [ebp - 0x28]
mov eax, 0x10
cmp dword [ebp - 0x14], eax
jae 0x50a0d9
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x44]
jae 0x50a0e4
lea eax, [ebp - 0x44]
cmp dword [esi + 0x1f8], 0
setne dl
push edx
mov edx, dword [esi + 0x1fc]
push edx
mov edx, dword [esi + 0x1f4]
push edx
mov edx, dword [esi + 0x1f0]
push edx
mov edx, dword [esi + 0x204]
push edx
mov edx, dword [esi + 0x200]
push edx
push ecx
push eax
lea eax, [esi + 0x158]
push eax
mov eax, dword [esi + 0x154]
lea ecx, [esi + 0xd4]
push ecx
mov ecx, dword [esi + 0xcc]
lea edx, [esi + 0x4c]
push edx
mov edx, dword [esi + 0x44]
push eax
push ecx
push edx
call fcn.00416b40
mov ecx, eax
call fcn.0041a4d0
push 1
call fcn.00416b40
mov ecx, eax
call fcn.00402bf0
mov eax, dword [edi]
push 1
push 1
push 0xfba
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 6
push 0
mov ecx, 1
mov ebx, ecx
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov edx, 0xc8
mov ebx, edx
mov dword [eax + 4], ebx
mov esi, 0x2bb
mov ebx, esi
mov dword [eax + 8], ebx
mov ebx, 0x129
mov dword [eax + 0xc], ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, 0xd3
mov dword [eax + 8], esi
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], esi
mov dword [eax + 0xc], ecx
call fcn.00416b40
mov ecx, dword [eax + 4]
push ecx
call fcn.004f0c70
add esp, 0x2c
call fcn.00416b40
mov edx, dword [eax + 4]
add eax, 4
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi]
push eax
push 1
call fcn.00416b40
mov ecx, eax
call fcn.00402870
mov esi, 0x10
cmp dword [ebp - 0x14], esi
jb 0x50a1f9
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0055215c
add esp, 4
xor eax, eax
cmp dword [ebp - 0x30], esi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
jb 0x50a29b
mov edx, dword [ebp - 0x44]
push edx
call fcn.0055215c
add esp, 4
jmp 0x50a29b
mov ebx, 0xc8
push 0
mov edi, 1
mov dword [ebp - 0x50], 0x2bb
mov dword [ebp - 0x4c], ebx
call fcn.00416b40
mov ecx, eax
call fcn.00402bf0
push 6
push 0
sub esp, 0x10
mov eax, esp
mov ecx, edi
mov dword [eax], ecx
mov ecx, ebx
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x50]
mov dword [eax + 8], ecx
mov edx, ebx
mov dword [eax + 0xc], edx
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov ecx, 0x2bb
mov dword [eax + 8], ecx
mov ecx, 0x129
mov dword [eax + 0xc], ecx
call fcn.00416b40
mov eax, dword [eax + 4]
push eax
call fcn.004f0c70
mov ecx, dword [esi + 4]
add esp, 0x2c
push edi
push 0
push 0xfba
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
lea esp, [ebp - 0x94]
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.00552d63
mov esp, ebp
pop ebp
ret 0x10