Function at 0x4b0f90
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x664
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push 0x40000002
push 1
push 1
mov dword [esp + 0x48], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], esi
mov edi, dword [eax]
push 4
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x4c], edi
call sym.vidcap60.exe__SfList_CreateExZ_32
push esi
push esi
push esi
push 0x40000002
push 1
push 1
push 4
lea edx, [esp + 0x34]
push edx
call sym.vidcap60.exe__SfList_CreateExZ_32
cmp dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
je 0x4b14d5
cmp eax, esi
je 0x4b14d5
xor ecx, ecx
cmp edi, esi
mov dword [esp + 0x20], ecx
jle 0x4b1134
mov edx, dword [ebx + 8]
mov edx, dword [edx + 8]
mov esi, dword [edx + ecx*4]
test esi, esi
je 0x4b111f
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x720]
test edx, edx
je 0x4b1049
push 1
push esi
push eax
call sym.vidcap60.exe_long_int___stdcall_SfFillRelatedFilenamesList_struct_tSFLIST___unsigned_short_int_const___int_
test eax, eax
mov dword [esp + 0x10], eax
jl 0x4b118f
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.004b0f20
test eax, eax
mov edi, dword [0x5d2618]
jne 0x4b109c
push 0x104
lea eax, [esp + 0x5c]
push esi
push eax
call edi
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
push 0xffffffffffffffff
push 0x208
lea ecx, [esp + 0x64]
push ecx
push edx
mov word [esp + 0x272], 0
call sym.vidcap60.exe__SfList_AllocAndInsertItem_20
test eax, eax
mov dword [esp + 0x10], eax
jl 0x4b118f
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
xor ebx, ebx
test ecx, ecx
mov dword [esp + 0x28], ecx
jle 0x4b1114
lea esp, [esp]
mov edx, dword [eax + 8]
mov esi, dword [edx + ebx*4]
test esi, esi
je 0x4b110f
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.004b0f20
test eax, eax
jne 0x4b1107
push 0x104
lea ecx, [esp + 0x5c]
push esi
push ecx
call edi
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push 0xffffffffffffffff
push 0x208
lea edx, [esp + 0x64]
push edx
push eax
mov word [esp + 0x272], 0
call sym.vidcap60.exe__SfList_AllocAndInsertItem_20
test eax, eax
mov dword [esp + 0x10], eax
jl 0x4b118f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
inc ebx
cmp ebx, ecx
jl 0x4b10b0
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
test edx, edx
jl 0x4b1193
inc ecx
cmp ecx, edi
mov dword [esp + 0x20], ecx
jl 0x4b1015
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx]
mov edx, esi
imul edx, edx, 0x20a
add edx, 2
push edx
push 0x42
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
xor eax, eax
cmp edi, eax
mov dword [esp + 0x28], edi
jne 0x4b11fa
mov dword [esp + 0x10], 0x8007000e
test edi, edi
je 0x4b118f
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4b11b5
push 0
push 0xffffffffffffffff
push 0
push ecx
call sym.vidcap60.exe__SfList_DeleteList_16
mov edx, dword [esp + 0x14]
push edx
call sym.vidcap60.exe__SfList_Destroy_4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b11cf
push 0
push 0xffffffffffffffff
push 0
push eax
call sym.vidcap60.exe__SfList_DeleteList_16
mov eax, dword [esp + 0x18]
push eax
call sym.vidcap60.exe__SfList_Destroy_4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b11ed
push 0
push 0xffffffffffffffff
push 0
push eax
call sym.vidcap60.exe__SfList_DeleteList_16
mov ecx, dword [esp + 0x24]
push ecx
call sym.vidcap60.exe__SfList_Destroy_4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
jle 0x4b12db
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x20]
mov ebx, dword [ecx + edx*4]
test ebx, ebx
jne 0x4b1226
xor eax, eax
jmp 0x4b1230
push ebx
call dword [0x5d2620]
add esp, 4
inc eax
lea ecx, [eax + eax]
mov dword [esp + 0x34], eax
mov eax, ecx
shr ecx, 2
mov esi, ebx
lea edi, [esp + 0x468]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x468]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x4b1275
lea edx, [esp + 0x468]
push edx
call sym.vidcap60.exe__SfGetFileNamePtrW_4
mov word [eax - 2], 0
mov eax, dword [ebp + 8]
cmp dword [eax], 0xb
je 0x4b1296
mov eax, dword [eax + 0x18]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [0x5d25ac]
add esp, 8
test eax, eax
je 0x4b12bf
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
add ecx, ecx
lea edi, [edx + eax*2]
mov edx, ecx
shr ecx, 2
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4b1210
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x28]
cmp word [edi], 0
je 0x4b1171
mov edx, dword [esp + 0x30]
mov ecx, dword [ebx + 4]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov word [esp + 0x54], ax
mov eax, dword [edx + 0x720]
test eax, eax
mov dword [esp + 0x38], ecx
mov word [esp + 0x48], 8
je 0x4b132b
mov word [esp + 0x48], 0x28
cmp dword [ebx], 0xb
jne 0x4b133f
or byte [esp + 0x49], 1
mov dword [esp + 0x3c], 2
jmp 0x4b1347
mov dword [esp + 0x3c], 1
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_GetFocus]
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x4b1373
mov dword [esp + 0x10], 0x80004005
mov eax, dword [esp + 0x4e]
test eax, eax
je 0x4b14c5
mov esi, dword [eax]
test esi, esi
mov dword [esp + 0x2c], eax
jle 0x4b14a8
push 0
push 0
push 0
push 0x40000002
push 1
push 1
push 4
lea edx, [esp + 0x40]
push edx
call sym.vidcap60.exe__SfList_CreateExZ_32
test eax, eax
jge 0x4b13b0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b14a8
test esi, esi
jle 0x4b14a8
xor edi, edi
mov dword [esp + 0x30], esi
lea ebx, [ebx]
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + 4]
mov eax, dword [esi + edi + 8]
add esi, edi
lea ebx, [eax + 1]
cmp ebx, 0x104
jbe 0x4b13ef
mov ebx, 0x104
jmp 0x4b13f5
test ebx, ebx
jl 0x4b1422
jle 0x4b140e
mov ecx, dword [esi]
push ebx
push ecx
lea edx, [esp + 0x60]
push edx
call dword [0x5d2618]
add esp, 0xc
mov word [esp + ebx*2 + 0x56], 0
lea eax, [esp + 0x58]
test eax, eax
je 0x4b1422
mov ecx, eax
push ecx
call dword [0x5d2620]
add esp, 4
mov ebx, dword [esi + 0xc]
inc ebx
cmp ebx, 0x104
jbe 0x4b1435
mov ebx, 0x104
jmp 0x4b143b
test ebx, ebx
jl 0x4b1472
jle 0x4b145b
mov edx, dword [esi + 4]
push ebx
push edx
lea eax, [esp + 0x268]
push eax
call dword [0x5d2618]
add esp, 0xc
mov word [esp + ebx*2 + 0x25e], 0
lea ecx, [esp + 0x260]
test ecx, ecx
je 0x4b1472
mov edx, ecx
push edx
call dword [0x5d2620]
add esp, 4
mov ecx, dword [esp + 0x24]
push 0
push 0xffffffffffffffff
push 0x410
lea eax, [esp + 0x64]
push eax
push ecx
call sym.vidcap60.exe__SfList_AllocAndInsertItem_20
test eax, eax
jge 0x4b1492
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
add edi, 0x10
dec eax
mov dword [esp + 0x30], eax
jne 0x4b13d0
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push edx
call sym.vidcap60.exe_long_int___stdcall_SfRenameChangeAttachedFilenameMeta_struct_tSFLIST__
test eax, eax
jge 0x4b14ba
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4e]
push eax
call dword [sym.imp.SHELL32.dll_SHFreeNameMappings]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x4b1171
mov dword [esp + 0x10], 0x8007000e
jmp 0x4b1193