Function at 0x10051fa0
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1008578e
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x100a5c90]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x100a5c90]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0xc]
push str.Drop
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 1
lea ecx, [esp + 0x2c]
mov edx, 0xf
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov eax, dword [edi]
push ecx
xor ebx, ebx
mov word [esp + 0x30], dx
mov edx, dword [eax + 0x14]
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], 0xffffffff
call edx
cmp eax, ebx
jne 0x100521a8
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x30]
push edx
push edi
call eax
mov ecx, dword [esp + 0x44]
push ebx
push ebx
push 0xffffffffffffffff
push ecx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [esp + 0x28], eax
cmp eax, ebx
jbe 0x100521a8
mov eax, dword [esp + 0x44]
push 0x104
lea edx, [esp + 0x50]
push edx
push ebx
push eax
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
sub esp, 0x1c
mov esi, esp
xor ecx, ecx
lea eax, [esp + 0x68]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [esp + 0x38], esp
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100520a4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x6c]
call fcn.10003a30
call fcn.10052210
test eax, eax
jne 0x1005217e
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10052171
shr eax, 4
not eax
and eax, 1
je 0x10052171
mov eax, dword [0x100aa1c0]
test eax, eax
jne 0x10052130
push 0x1e8
call fcn.10067232
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x268], 0
test eax, eax
je 0x1005211e
mov ecx, eax
call fcn.10011d60
jmp 0x10052120
xor eax, eax
mov dword [esp + 0x268], 0xffffffff
mov dword [0x100aa1c0], eax
lea ecx, [eax + 0x194]
mov eax, dword [ecx + 0x10]
push 0x10093310
mov edi, 3
call fcn.10004240
test eax, eax
je 0x1005219c
call fcn.10001170
lea ecx, [eax + 0x194]
mov eax, dword [ecx + 0x10]
push 0x10093318
mov edi, 2
call fcn.10004240
test eax, eax
je 0x1005219c
mov edi, dword [esp + 0x18]
inc ebx
cmp ebx, dword [esp + 0x28]
jb 0x1005206b
jmp 0x100521a8
push 0x10
push 0x100925ac
push 0x10097ab8
push 0
mov dword [esp + 0x24], 1
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x100521a8
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x24]
mov dword [eax + 0x20], 0
mov eax, dword [eax + 0x18]
test eax, eax
je 0x100521e5
cmp dword [esp + 0x14], 0
mov ecx, dword [eax]
je 0x100521cb
mov edx, dword [ecx + 0x14]
push eax
call edx
jmp 0x100521e7
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push edx
push edi
push eax
mov eax, dword [ecx + 0x18]
call eax
jmp 0x100521e7
xor eax, eax
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 0x18