Function at 0x4154d0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad8f1
mov eax, dword fs:[0]
push eax
sub esp, 0x4e8
mov eax, dword [0x620024]
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 ebx, ecx
mov dword [ebp - 0x41c], ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
cmp eax, 0x100
jne 0x415555
mov eax, dword [edi + 8]
cmp eax, 0xd
je 0x4159ed
cmp eax, 0x1b
je 0x4159ed
cmp eax, 0x20
je 0x4159ed
push edi
call fcn.004405ba
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.00586281
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x233
jne 0x415531
mov eax, dword [edi + 8]
push 0
push 0
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x42c], eax
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [ebp - 0x420], eax
call fcn.00449b3d
mov ecx, eax
test ecx, ecx
je 0x4159f7
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x414], esi
lea eax, [ebx + 0xb0]
mov dword [ebp - 4], 0
test eax, eax
je 0x4155a9
mov eax, dword [eax + 0x20]
mov ecx, dword [edi]
or edi, 0xffffffff
cmp ecx, eax
jne 0x41574e
xor eax, eax
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x420], eax
jbe 0x415742
nop word [eax + eax]
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jne 0x41560e
push 1
push 1
lea eax, [ebp - 0x410]
push eax
push eax
push 2
jmp 0x415722
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415617
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x414]
call fcn.00402d30
mov esi, dword [ebp - 0x414]
push 0x5c
push esi
call fcn.00587ca4
add esp, 8
test eax, eax
jne 0x415653
or eax, 0xffffffff
jmp 0x415657
sub eax, esi
sar eax, 1
lea ecx, [eax + 1]
mov eax, dword [esi - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x414]
call fcn.00416150
mov byte [ebp - 4], 1
lea ebx, [esi - 0x10]
mov eax, dword [ebp - 0x428]
lea edi, [eax - 0x10]
cmp edi, ebx
je 0x4156df
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4156ca
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x4156ca
push edi
call fcn.00405670
add esp, 4
mov dword [ebp - 0x424], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4156bf
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x424]
lea esi, [eax + 0x10]
mov dword [ebp - 0x414], esi
jmp 0x4156df
push dword [eax - 0xc]
lea ecx, [ebp - 0x414]
push eax
call fcn.00402d30
mov esi, dword [ebp - 0x414]
mov byte [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4156f8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [ebp - 0x41c]
cmp eax, 0x10
push 1
push 1
push esi
lea eax, [ebp - 0x410]
push eax
jne 0x415720
push 1
jmp 0x415722
push 0
mov ecx, ebx
call fcn.0040bd10
mov eax, dword [ebp - 0x418]
inc eax
mov dword [ebp - 0x418], eax
cmp eax, dword [ebp - 0x420]
jb 0x4155d0
mov ecx, ebx
call fcn.00409b70
jmp 0x4159c7
lea eax, [ebx + 0x1f8]
test eax, eax
je 0x41575b
mov eax, dword [eax + 0x20]
cmp ecx, eax
jne 0x4159c7
push 0
push 0x98
lea ecx, [ebp - 0x4f4]
call fcn.0043f9c1
lea ecx, [ebp - 0x44c]
mov dword [ebp - method.CSchAddDlg.virtual_0], vtable.CSchAddDlg.0
call fcn.00404670
mov dword [ebp - 0x440], 0
lea ecx, [ebp - 0x4f4]
mov byte [ebp - 4], 2
call fcn.0043ff77
cmp eax, 1
je 0x4157c2
lea ecx, [ebp - 0x4f4]
mov dword [ebp - method.CSchAddDlg.virtual_0], vtable.CSchAddDlg.0
call fcn.0043fa20
jmp 0x4159d1
mov eax, dword [ebp - 0x440]
movq xmm0, qword [ebp - 0x44c]
mov edi, dword [ebp - 0x444]
mov dword [ebp - 0x418], eax
xor eax, eax
movq qword [ebp - 0x43c], xmm0
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x420], eax
jbe 0x4159a7
nop
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jne 0x415854
movq xmm0, qword [ebp - 0x43c]
sub esp, 0x10
mov eax, esp
push dword [ebp - 0x418]
movq qword [eax], xmm0
mov dword [eax + 8], edi
lea eax, [ebp - 0x410]
push eax
push eax
push 2
jmp 0x415987
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415860
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x414]
call fcn.00402d30
mov esi, dword [ebp - 0x414]
push 0x5c
push esi
call fcn.00587ca4
add esp, 8
test eax, eax
jne 0x41589c
or eax, 0xffffffff
jmp 0x4158a0
sub eax, esi
sar eax, 1
lea ecx, [eax + 1]
mov eax, dword [esi - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x414]
call fcn.00416150
mov byte [ebp - 4], 3
lea ebx, [esi - 0x10]
mov eax, dword [ebp - 0x430]
lea edi, [eax - 0x10]
cmp edi, ebx
je 0x415928
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x415913
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x415913
push edi
call fcn.00405670
add esp, 4
mov dword [ebp - 0x434], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x415908
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x434]
lea esi, [eax + 0x10]
mov dword [ebp - 0x414], esi
jmp 0x415928
push dword [eax - 0xc]
lea ecx, [ebp - 0x414]
push eax
call fcn.00402d30
mov esi, dword [ebp - 0x414]
mov byte [ebp - 4], 2
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x415941
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
movq xmm0, qword [ebp - 0x43c]
sub esp, 0x10
mov edi, dword [ebp - 0x424]
cmp eax, 0x10
mov ebx, dword [ebp - 0x41c]
mov eax, esp
push dword [ebp - 0x418]
movq qword [eax], xmm0
mov dword [eax + 8], edi
lea eax, [ebp - 0x410]
push esi
push eax
jne 0x415985
push 1
jmp 0x415987
push 0
mov ecx, ebx
call fcn.0040c040
mov eax, dword [ebp - 0x428]
inc eax
mov dword [ebp - 0x428], eax
cmp eax, dword [ebp - 0x420]
jb 0x415800
mov ecx, ebx
call fcn.0040ace0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4f4]
mov dword [ebp - method.CSchAddDlg.virtual_0], vtable.CSchAddDlg.0
call fcn.0043fa20
mov ecx, ebx
call fcn.0040e4b0
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4159ed
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x415537
push 0x80004005
call fcn.00403300
int3