Function at 0x460a70
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599f57
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x610684]
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 dword [ebp - 0x298], edx
mov edi, ecx
mov byte [ebp - 0x291], 1
test edi, edi
je 0x460e0c
push 0
push edi
call fcn.0055e605
add esp, 8
test eax, eax
jne 0x460e0c
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], eax
call fcn.0044f250
push 2
push 0x5d9738
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00452ce0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov edx, 0x5d9478
lea ecx, [ebp - 0x264]
nop dword [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x460b46
test ax, ax
je 0x460b42
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x460b46
add ecx, 4
add edx, 4
test ax, ax
jne 0x460b20
xor eax, eax
jmp 0x460b4b
sbb eax, eax
or eax, 1
test eax, eax
je 0x460d98
mov ecx, 0x5d9740
lea eax, [ebp - 0x264]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x460b86
test dx, dx
je 0x460b82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x460b86
add eax, 4
add ecx, 4
test dx, dx
jne 0x460b60
xor eax, eax
jmp 0x460b8b
sbb eax, eax
or eax, 1
test eax, eax
je 0x460d98
xor eax, eax
mov dword [ebp - 0x2a8], 7
mov dword [ebp - 0x2ac], 0
mov word [ebp - 0x2bc], ax
cmp word [edi], ax
je 0x460bcf
mov eax, edi
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460bc0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x2bc]
call fcn.0044f430
push 0x5d896c
lea eax, [ebp - 0x2bc]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2ec]
push eax
call fcn.004644e0
add esp, 0xc
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.004644e0
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x460c51
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x460c34
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0044f7a0
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00462ee0
mov eax, dword [ebp - 0x2c0]
cmp eax, 8
jb 0x460c6f
inc eax
lea ecx, [ebp - 0x2d4]
push eax
push dword [ebp - 0x2d4]
call fcn.0044f7a0
xor eax, eax
mov dword [ebp - 0x2c0], 7
mov word [ebp - 0x2d4], ax
mov eax, dword [ebp - 0x2d8]
mov dword [ebp - 0x2c4], 0
cmp eax, 8
jb 0x460caa
inc eax
lea ecx, [ebp - 0x2ec]
push eax
push dword [ebp - 0x2ec]
call fcn.0044f7a0
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x2ec], ax
mov eax, dword [ebp - 0x2a8]
mov dword [ebp - 0x2d8], 7
mov dword [ebp - 0x2dc], 0
cmp eax, 8
jb 0x460ce9
inc eax
lea ecx, [ebp - 0x2bc]
push eax
push dword [ebp - 0x2bc]
call fcn.0044f7a0
mov eax, dword [ebp - 0x298]
lea ecx, [ebp - 0x264]
push dword [ebp - 0x298]
push ecx
mov esi, dword [eax + 4]
mov edx, esi
mov ecx, dword [eax]
call fcn.00464f60
add esp, 8
cmp eax, esi
jne 0x460d98
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x460d84
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x29c], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x2a4]
cmovae ecx, dword [ebp - 0x28]
call fcn.00460a70
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 1
call fcn.004610d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x460d98
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0055e965
add esp, 4
lea eax, [ebp - 0x290]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x460b10
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, byte [ebp - 0x291]
xor ecx, ecx
cmp eax, 0x12
mov eax, dword [ebp - 0x2c]
cmovne ebx, ecx
cmp eax, 8
jb 0x460ddf
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0044f7a0
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x460e08
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0044f7a0
mov al, bl
jmp 0x460e0e
xor al, al
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.00544516
mov esp, ebp
pop ebp
ret