Function at 0x40ea80
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a405d
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x4d16b0]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d16b0]
xor eax, esp
push eax
lea eax, [esp + 0x2b8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c8]
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x2cc]
push 0x3ed
push ecx
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp + 4]
xor ebx, ebx
cmp eax, ebx
lea esi, [ebp + 0x2c]
je 0x40eb28
push 0xfffffffffffffff0
push eax
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
or eax, 0xb
push eax
push 0xfffffffffffffff0
push edx
call edi
mov eax, dword [esi + 4]
push esi
push 0xffffffffffffffeb
push eax
call edi
mov eax, dword [esi + 4]
push 0x428520
push 0xfffffffffffffffc
push eax
call edi
mov dword [esi + 0x3c], eax
push 0xffffffffffffffff
push 0xc4
push 0xc3
push 0xc5
call fcn.004283c0
mov ecx, dword [ebp + 4]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x54]
push edx
push eax
call esi
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x1c]
push eax
push ecx
call esi
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
sub esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x60]
sub edx, dword [esp + 0x24]
mov eax, dword [esp + 0x5c]
lea esi, [esi + ecx - 0x36]
lea edx, [edx + eax - 0xa]
add ecx, 0xffffffca
push 1
add eax, 0xfffffff6
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
sub ecx, esi
push ecx
sub eax, edx
push eax
mov eax, dword [ebp + 4]
push esi
push edx
push eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], esi
call dword [sym.imp.USER32.dll_MoveWindow]
mov dword [esp + 0x2c0], ebx
mov edx, dword [ebp + 4]
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
lea ecx, [esp + 0x3c]
push ecx
push edx
call esi
test eax, eax
je 0x40ebd2
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x44]
push eax
push ecx
call esi
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push 4
push 4
add eax, 1
push eax
mov eax, dword [esp + 0x48]
add ecx, 0xfffffffe
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
mov ecx, dword [ebp + 4]
push ebx
push eax
push ecx
mov dword [esp + 0x5c], eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov edx, dword [0x4d5c6c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4d5c6c
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov byte [esp + 0x2c0], 1
mov edx, dword [0x4d5c6c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4d5c6c
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x2c0], 2
mov edx, dword [0x4d5c6c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4d5c6c
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
lea esi, [esp + 0x30]
mov byte [esp + 0x2c0], 3
call fcn.0040fda0
mov byte [esp + 0x2c0], 4
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jle 0x40eca5
lea edx, [eax - 1]
cmp edx, ebx
jl 0x40ed6d
cmp edx, eax
jg 0x40ed6d
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x40eca5
push 0x5c
mov edi, esi
call fcn.004053f0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, 0x4ac8a4
call fcn.004030f0
add esp, 8
lea edi, [esp + 0x34]
mov byte [esp + 0x2c0], 5
call fcn.004070e0
mov byte [esp + 0x2c0], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ecf5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x64]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ee7c
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ebx, [esp + 0x98]
call fcn.004030f0
add esp, 8
mov byte [esp + 0x2c0], 6
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x40ed5b
mov ecx, 0x104
lea eax, [esp + 0x2c]
call fcn.00404f40
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
push ebp
call fcn.0040ff40
test ebx, ebx
jne 0x40ed77
xor eax, eax
jmp 0x40ed91
push 0x80070057
call fcn.004054d0
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ed80
sub eax, edx
sar eax, 1
js 0x40ed6d
cmp eax, dword [ebx - 8]
jg 0x40ed6d
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], 0
mov edi, dword [ebx - 0xc]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, edi
or eax, ecx
jge 0x40edc2
mov ecx, edi
lea eax, [esp + 0x2c]
call fcn.00404f40
mov ebx, dword [esp + 0x2c]
lea edx, [edi + 1]
push edx
push ebx
call fcn.0048033a
add esp, 8
test edi, edi
jl 0x40ed6d
cmp edi, dword [ebx - 8]
jg 0x40ed6d
mov dword [ebx - 0xc], edi
mov word [ebx + edi*2], 0
cmp dword [ebx - 0xc], 0
jl 0x40ee02
push str.qqpyclipboard.exe
push ebx
call fcn.00480107
add esp, 8
test eax, eax
je 0x40ee02
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
jne 0x40ee40
mov byte [esp + 0x2c0], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x64]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ed10
jmp 0x40ee75
lea eax, [esp + 0x2c]
lea edi, [esp + 0x38]
call fcn.004070e0
mov byte [esp + 0x2c0], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ee75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x38]
cmp dword [eax - 0xc], 0
jne 0x40eeab
mov ecx, dword [ebp + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3fc
push ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xf1
push eax
call ebx
jmp 0x40ef00
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
push 0x3fc
je 0x40eed9
mov edx, dword [ebp + 4]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0xf1
push eax
call ebx
jmp 0x40eefa
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xf1
push eax
call ebx
call fcn.00427250
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
test byte [0x4d8594], 1
jne 0x40ef39
or dword [0x4d8594], 1
cmp dword [0x4d6b68], 0
jne 0x40ef2c
cmp dword [0x4d6b6c], 0
jne 0x40ef2c
mov dword [0x4d6b68], 0x4d7528
push 0x4a7e20
call fcn.0047ff6f
add esp, 4
mov ecx, dword [ebp + 4]
mov esi, dword [0x4d6b68]
push 0x3fd
push ecx
mov dword [0x4d6b64], 1
call edi
xor edx, edx
cmp dword [esi + 0xc4c], edx
push 0
setne dl
push edx
push 0xf1
push eax
call ebx
mov eax, dword [ebp + 4]
push 0x3fe
push eax
call edi
xor ecx, ecx
cmp dword [esi + 0xc50], ecx
push 0
setne cl
push ecx
push 0xf1
push eax
call ebx
mov edx, dword [ebp + 4]
push 0x3fc
push edx
call edi
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp + 4]
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
lea edx, [esp + 0x1c]
push edx
push eax
call esi
test eax, eax
je 0x40efc2
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x24]
push ecx
push edx
call esi
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
sub esi, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 4]
push 0x3fc
push eax
call edi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push 0
push esi
push ecx
mov ecx, dword [esp + 0x28]
add edx, 0xffffffff
push edx
add ecx, 0xfffffffe
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [ebp + 4]
push 0x3fc
push edx
call edi
mov ecx, dword [ebp + 0x88]
push 1
push ecx
push 0x30
push eax
call ebx
mov edx, dword [ebp + 4]
push 0x3fd
push edx
call edi
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp + 4]
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
lea edx, [esp + 0x1c]
push edx
push eax
call esi
test eax, eax
je 0x40f050
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x24]
push ecx
push edx
call esi
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
sub esi, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 4]
push 0x3fd
push eax
call edi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push 0
push esi
push ecx
mov ecx, dword [esp + 0x28]
add edx, 0xffffffff
push edx
add ecx, 0xfffffffe
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [ebp + 4]
push 0x3fd
push edx
call edi
mov ecx, dword [ebp + 0x88]
push 1
push ecx
push 0x30
push eax
call ebx
mov edx, dword [ebp + 4]
push 0x3fe
push edx
call edi
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp + 4]
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
lea edx, [esp + 0x1c]
push edx
push eax
call esi
test eax, eax
je 0x40f0de
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x24]
push ecx
push edx
call esi
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
sub esi, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 4]
push 0x3fe
push eax
call edi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push 0
push esi
push ecx
mov ecx, dword [esp + 0x28]
add edx, 0xffffffff
push edx
add ecx, 0xfffffffe
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [ebp + 4]
push 0x3fe
push edx
call edi
mov ecx, dword [ebp + 0x88]
push 1
push ecx
push 0x30
push eax
call ebx
mov edx, dword [ebp + 4]
push 0x3fc
push edx
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x4c]
mov dword [eax], 0
mov byte [esp + 0x2c0], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f179
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c0], 2
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f1a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c0], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f1c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c0], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f1f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40f200
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, 1
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.0047f460
add esp, 0x2b0
ret 8