Function at 0x465bf0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56deed
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x3c], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x20]
call fcn.0045f300
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x465c9e
push 0x3b8
call fcn.0053cf1e
add esp, 4
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x250], 0
je 0x465c73
push 0
mov ecx, dword [ebp - 0x250]
call fcn.004e43b0
mov dword [ebp - 0x268], eax
jmp 0x465c7d
mov dword [ebp - 0x268], 0
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00485410
jmp 0x465d04
push 0x608
call fcn.0053cf1e
add esp, 4
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x258], 0
je 0x465cd5
push 0
push 0
mov ecx, dword [ebp - 0x258]
call fcn.004e1cc0
mov dword [ebp - 0x26c], eax
jmp 0x465cdf
mov dword [ebp - 0x26c], 0
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x254], edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x254]
push eax
lea ecx, [ebp - 0x20]
call fcn.00485410
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], 2
jmp 0x465d1d
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 8]
sub ecx, 1
cmp dword [ebp - 0x2c], ecx
jge 0x465efc
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + ecx*4]
movzx eax, word [edx]
cmp eax, 0x2d
jne 0x465ea5
push 0x583480
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edx + eax*4]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x465d84
cmp dword [ebp - 0x14], 0
je 0x465d7f
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x5c8], 1
jmp 0x465ea0
push 0x583488
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push 0x583494
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + edx*4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x465de8
lea ecx, [ebp - 0x20]
call fcn.004dfdf0
push eax
push 0x465000
mov ecx, dword [ebp - 0x264]
mov esi, dword [ecx + 4]
push 0x5834a0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [esi + edx*4]
lea edx, [ecx + eax*2]
push edx
call fcn.00464f30
add esp, 0xc
jmp 0x465ea0
push 0x5834ac
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + edx*4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x465e7a
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 8]
sub eax, 1
cmp dword [ebp - 0x2c], eax
jl 0x465e26
jmp 0x465d14
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edx + eax*4]
push ecx
call fcn.0043d6f0
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x465e78
lea ecx, [ebp - 0x20]
call fcn.004dfdf0
mov dword [ebp - 0x270], eax
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + ecx*4]
push edx
mov eax, dword [ebp - 0x270]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x270]
mov eax, dword [edx + 0x1c]
call eax
jmp 0x465ea0
push str._smart
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edx + eax*4]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x465ea0
mov dword [ebp - 0x1c], 1
jmp 0x465d14
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + ecx*4]
push edx
call fcn.0043d6f0
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x465ef7
lea ecx, [ebp - 0x20]
call fcn.004dfdf0
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + edx*4]
push eax
mov ecx, dword [ebp - 0x274]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x274]
mov eax, dword [edx + 0x1c]
call eax
jmp 0x465d14
lea ecx, [ebp - 0x20]
call fcn.004dfdf0
mov ecx, eax
call fcn.004e4920
test eax, eax
jne 0x465f46
mov ecx, 0x5fc84c
call fcn.004dfdf0
push eax
call fcn.0049e5e0
add esp, 4
mov dword [ebp - 0x25c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00496090
mov eax, dword [ebp - 0x25c]
jmp 0x4660de
mov dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edx*4 - 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 4]
mov ecx, dword [eax + ecx*4 - 4]
movzx edx, word [ecx]
cmp edx, 0x3f
jne 0x465f94
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edx*4 - 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 4]
mov ecx, dword [eax + ecx*4 - 4]
mov edx, dword [ebp - 0x18]
movzx eax, word [ecx + edx*2 - 2]
cmp eax, 0x22
jne 0x465ff7
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edx*4 - 4]
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov word [edx + ecx*2 - 2], ax
cmp dword [ebp - 0x14], 0
je 0x466085
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 1
je 0x466071
mov eax, dword [ebp - 0x38]
and eax, 0x10
jne 0x466071
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x248], eax
push 0x5834c4
mov edx, dword [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x466071
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 0x248]
sub edx, dword [ebp - 0x10]
sar edx, 1
xor eax, eax
mov word [ebp + edx*2 - 0x244], ax
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.004e22f0
lea ecx, [ebp - 0x20]
call fcn.004dfdf0
mov dword [ebp - 0x278], eax
mov edx, dword [ebp - 0x278]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x278]
mov edx, dword [eax + 0x18]
call edx
mov dword [ebp - 0x28], eax
cmp dword [ebp + 8], 0
je 0x4660bf
cmp dword [ebp - 0x28], 0
jl 0x4660bf
push 0
call fcn.0049e870
add esp, 4
mov dword [ebp - 0x260], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00496090
mov eax, dword [ebp - 0x260]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret 4