Function at 0x460905
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov dword [ebp - 0x44c], ecx
mov dword [ebp - 0x88], 1
mov ecx, dword [ebp - 0x44c]
call fcn.0044e90f
mov eax, dword [ebp - 0x44c]
add eax, 0x214
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x44c]
add ecx, 0x204
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx + 0x204]
call dword [eax + 0x20]
test eax, eax
jne 0x460990
mov ecx, dword [ebp - 0x44c]
add ecx, 0x224
call fcn.00404cf0
push eax
mov ecx, dword [ebp - 0x44c]
mov dword [ecx + 0x220], 0xffffffff
push 0xffffffffffffffff
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx + 0x21c]
push eax
call fcn.0070ae1e
push 0x80
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [ebp - 0x44c]
add ecx, 0x204
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx + 0x204]
call dword [eax + 0x34]
cmp eax, 0x80
jne 0x4609ee
movsx ecx, byte [ebp - 0x84]
cmp ecx, 0xa
jne 0x4609ee
movsx edx, byte [ebp - 0x82]
cmp edx, 1
jne 0x4609ee
movsx eax, byte [ebp - 0x81]
cmp eax, 1
je 0x460a09
movsx ecx, byte [ebp - 0x81]
cmp ecx, 8
je 0x460a09
mov dword [ebp - 0x440], 0xe019
push 0x75e940
lea edx, [ebp - 0x440]
push edx
call fcn.006ed9b8
mov dword [ebp - 4], 0
movsx eax, byte [ebp - 0x81]
cmp eax, 8
jne 0x460a75
push 2
push 0xfffffcff
mov ecx, dword [ebp - 0x44c]
add ecx, 0x204
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx + 0x204]
call dword [eax + 0x28]
push 1
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, dword [ebp - 0x44c]
add ecx, 0x204
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx + 0x204]
call dword [eax + 0x34]
movsx ecx, byte [ebp - 0xa0]
cmp ecx, 0xc
jne 0x460a75
mov dword [ebp - 4], 1
push 2
mov edx, dword [ebp - 4]
neg edx
sbb edx, edx
and edx, 0x301
mov eax, 0xffffffec
sub eax, edx
push eax
mov ecx, dword [ebp - 0x44c]
add ecx, 0x204
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx + 0x204]
call dword [eax + 0x28]
push 0x14
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, dword [ebp - 0x44c]
add ecx, 0x204
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx + 0x204]
call dword [eax + 0x34]
cmp dword [ebp - 0x9c], 0x87651234
jne 0x460c0c
cmp dword [ebp - 0x8c], 0xd0
jbe 0x460c0c
cmp dword [ebp - 0x98], 0x78
jg 0x460c0c
cmp dword [ebp - 0x98], 0xa
jl 0x460c0c
cmp dword [ebp - 0x94], 0x78
jg 0x460c0c
cmp dword [ebp - 0x94], 0xa
jl 0x460c0c
mov eax, dword [ebp - 0x98]
imul eax, eax, 3
add eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
shl eax, 2
imul eax, dword [ebp - 0x94]
mov ecx, 0xffffffec
sub ecx, eax
sub ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 4]
neg edx
sbb edx, edx
and edx, 0x301
sub ecx, edx
mov dword [ebp - 0xa4], ecx
push 2
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0x44c]
add ecx, 0x204
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx + 0x204]
call dword [eax + 0x28]
mov ecx, dword [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x26c]
push edx
mov ecx, dword [ebp - 0x44c]
add ecx, 0x204
mov eax, dword [ebp - 0x44c]
mov edx, dword [eax + 0x204]
call dword [edx + 0x34]
lea eax, [ebp - 0x26c]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
add ecx, 0xc0
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0xac]
movsx eax, byte [edx]
cmp eax, 0x6e
jne 0x460bf6
mov ecx, dword [ebp - 0xac]
movsx edx, byte [ecx + 1]
cmp edx, 0x65
jne 0x460bf6
mov eax, dword [ebp - 0xac]
movsx ecx, byte [eax + 2]
test ecx, ecx
je 0x460c02
mov dword [ebp - 0x88], 0
jmp 0x460c0c
mov dword [ebp - 0x88], 1
mov ecx, dword [ebp - 0x44c]
call fcn.0044e90f
cmp dword [ebp - 0x88], 0
jne 0x460c4c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
and eax, 1
test eax, eax
je 0x460c4c
mov dword [ebp - 0x444], 0xd6
push 0x75e940
lea eax, [ebp - 0x444]
push eax
call fcn.006ed9b8
cmp dword [ebp - 0x88], 0
je 0x460c5f
mov eax, 1
jmp 0x460f78
mov ecx, dword [ebp - 0x44c]
add ecx, 0x214
push ecx
push 0x2002
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x44c]
add ecx, 0x204
mov eax, dword [ebp - 0x44c]
mov edx, dword [eax + 0x204]
call dword [edx + 0x20]
test eax, eax
jne 0x460cca
mov ecx, dword [ebp - 0x44c]
add ecx, 0x224
call fcn.00404cf0
push eax
mov eax, dword [ebp - 0x44c]
mov dword [eax + 0x220], 0xffffffff
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x44c]
mov edx, dword [ecx + 0x21c]
push edx
call fcn.0070ae1e
push 0x80
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x44c]
add ecx, 0x204
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx + 0x204]
call dword [eax + 0x34]
cmp eax, 0x80
jne 0x460d28
movsx ecx, byte [ebp - 0x84]
cmp ecx, 0xa
jne 0x460d28
movsx edx, byte [ebp - 0x82]
cmp edx, 1
jne 0x460d28
movsx eax, byte [ebp - 0x81]
cmp eax, 1
je 0x460d43
movsx ecx, byte [ebp - 0x81]
cmp ecx, 8
je 0x460d43
mov dword [ebp - 0x448], 0xe019
push 0x75e940
lea edx, [ebp - 0x448]
push edx
call fcn.006ed9b8
movsx eax, byte [ebp - 0x81]
cmp eax, 8
jne 0x460da8
push 2
push 0xfffffcff
mov ecx, dword [ebp - 0x44c]
add ecx, 0x204
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx + 0x204]
call dword [eax + 0x28]
push 1
lea ecx, [ebp - 0x270]
push ecx
mov ecx, dword [ebp - 0x44c]
add ecx, 0x204
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx + 0x204]
call dword [eax + 0x34]
movsx ecx, byte [ebp - 0x270]
cmp ecx, 0xc
jne 0x460da8
mov dword [ebp - 4], 1
push 2
mov edx, dword [ebp - 4]
neg edx
sbb edx, edx
and edx, 0x301
mov eax, 0xffffffec
sub eax, edx
push eax
mov ecx, dword [ebp - 0x44c]
add ecx, 0x204
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx + 0x204]
call dword [eax + 0x28]
push 0x14
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, dword [ebp - 0x44c]
add ecx, 0x204
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx + 0x204]
call dword [eax + 0x34]
cmp dword [ebp - 0x9c], 0x87651234
jne 0x460f68
cmp dword [ebp - 0x8c], 0xd0
jbe 0x460f68
cmp dword [ebp - 0x98], 0x78
jg 0x460f68
cmp dword [ebp - 0x98], 0xa
jl 0x460f68
cmp dword [ebp - 0x94], 0x78
jg 0x460f68
cmp dword [ebp - 0x94], 0xa
jl 0x460f68
mov eax, dword [ebp - 0x98]
imul eax, eax, 3
add eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
shl eax, 2
imul eax, dword [ebp - 0x94]
mov ecx, 0xffffffec
sub ecx, eax
sub ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 4]
neg edx
sbb edx, edx
and edx, 0x301
sub ecx, edx
mov dword [ebp - 0x274], ecx
push 2
mov eax, dword [ebp - 0x274]
push eax
mov ecx, dword [ebp - 0x44c]
add ecx, 0x204
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx + 0x204]
call dword [eax + 0x28]
mov ecx, dword [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x43c]
push edx
mov ecx, dword [ebp - 0x44c]
add ecx, 0x204
mov eax, dword [ebp - 0x44c]
mov edx, dword [eax + 0x204]
call dword [edx + 0x34]
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x278], eax
push 2
mov ecx, dword [ebp - 0x274]
push ecx
mov ecx, dword [ebp - 0x44c]
add ecx, 0x204
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx + 0x204]
call dword [eax + 0x28]
mov ecx, dword [ebp - 0x278]
add ecx, 0xc0
mov dword [ebp - 0x27c], ecx
mov edx, dword [ebp - 0x27c]
movsx eax, byte [edx]
cmp eax, 0x6e
jne 0x460f4d
mov ecx, dword [ebp - 0x27c]
movsx edx, byte [ecx + 1]
cmp edx, 0x65
jne 0x460f4d
mov eax, dword [ebp - 0x27c]
movsx ecx, byte [eax + 2]
test ecx, ecx
je 0x460f68
push 1
lea edx, [ebp - 0x43c]
push edx
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x44c]
call fcn.00461934
mov ecx, dword [ebp - 0x44c]
call fcn.0044e90f
mov eax, 1
mov esp, ebp
pop ebp
ret 4