Function at 0x4604f0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b8
mov dword [ebp - 0x3b8], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x3b8]
call fcn.0044e90f
mov eax, dword [ebp - 0x3b8]
add eax, 0x214
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x3b8]
add ecx, 0x204
mov edx, dword [ebp - 0x3b8]
mov eax, dword [edx + 0x204]
call dword [eax + 0x20]
test eax, eax
jne 0x460578
mov ecx, dword [ebp - 0x3b8]
add ecx, 0x224
call fcn.00404cf0
push eax
mov ecx, dword [ebp - 0x3b8]
mov dword [ecx + 0x220], 0xffffffff
push 0xffffffffffffffff
mov edx, dword [ebp - 0x3b8]
mov eax, dword [edx + 0x21c]
push eax
call fcn.0070ae1e
push 2
push 0xffffffffffffffec
mov ecx, dword [ebp - 0x3b8]
add ecx, 0x204
mov edx, dword [ebp - 0x3b8]
mov eax, dword [edx + 0x204]
call dword [eax + 0x28]
push 0x14
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x3b8]
add ecx, 0x204
mov edx, dword [ebp - 0x3b8]
mov eax, dword [edx + 0x204]
call dword [eax + 0x34]
cmp dword [ebp - 0x18], 0x87651234
jne 0x4606ae
cmp dword [ebp - 8], 0xd0
jbe 0x4606ae
cmp dword [ebp - 0x14], 0x78
jg 0x4606ae
cmp dword [ebp - 0x14], 0xa
jl 0x4606ae
cmp dword [ebp - 0x10], 0x78
jg 0x4606ae
cmp dword [ebp - 0x10], 0xa
jl 0x4606ae
mov eax, dword [ebp - 0x14]
imul eax, eax, 3
add eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
shl eax, 2
imul eax, dword [ebp - 0x10]
mov ecx, 0xffffffec
sub ecx, eax
sub ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
push 2
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x3b8]
add ecx, 0x204
mov eax, dword [ebp - 0x3b8]
mov edx, dword [eax + 0x204]
call dword [edx + 0x28]
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x1e4]
push ecx
mov ecx, dword [ebp - 0x3b8]
add ecx, 0x204
mov edx, dword [ebp - 0x3b8]
mov eax, dword [edx + 0x204]
call dword [eax + 0x34]
lea ecx, [ebp - 0x1e4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xc0
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
movsx ecx, byte [eax]
cmp ecx, 0x6e
jne 0x46069e
mov edx, dword [ebp - 0x24]
movsx eax, byte [edx + 1]
cmp eax, 0x65
jne 0x46069e
mov ecx, dword [ebp - 0x24]
movsx edx, byte [ecx + 2]
test edx, edx
je 0x4606a7
mov dword [ebp - 4], 0
jmp 0x4606ae
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x3b8]
call fcn.0044e90f
cmp dword [ebp - 4], 0
jne 0x4606eb
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
and eax, 1
test eax, eax
je 0x4606eb
mov dword [ebp - 0x3b4], 0xd6
push 0x75e940
lea ecx, [ebp - 0x3b4]
push ecx
call fcn.006ed9b8
cmp dword [ebp - 4], 0
je 0x4606fb
mov eax, 1
jmp 0x4608ff
mov edx, dword [ebp - 0x3b8]
add edx, 0x214
push edx
push 0x2002
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x3b8]
add ecx, 0x204
mov edx, dword [ebp - 0x3b8]
mov eax, dword [edx + 0x204]
call dword [eax + 0x20]
test eax, eax
jne 0x460766
mov ecx, dword [ebp - 0x3b8]
add ecx, 0x224
call fcn.00404cf0
push eax
mov ecx, dword [ebp - 0x3b8]
mov dword [ecx + 0x220], 0xffffffff
push 0xffffffffffffffff
mov edx, dword [ebp - 0x3b8]
mov eax, dword [edx + 0x21c]
push eax
call fcn.0070ae1e
push 2
push 0xffffffffffffffec
mov ecx, dword [ebp - 0x3b8]
add ecx, 0x204
mov edx, dword [ebp - 0x3b8]
mov eax, dword [edx + 0x204]
call dword [eax + 0x28]
push 0x14
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x3b8]
add ecx, 0x204
mov edx, dword [ebp - 0x3b8]
mov eax, dword [edx + 0x204]
call dword [eax + 0x34]
cmp dword [ebp - 0x18], 0x87651234
jne 0x4608df
cmp dword [ebp - 8], 0xd0
jbe 0x4608df
cmp dword [ebp - 0x14], 0x78
jg 0x4608df
cmp dword [ebp - 0x14], 0xa
jl 0x4608df
cmp dword [ebp - 0x10], 0x78
jg 0x4608df
cmp dword [ebp - 0x10], 0xa
jl 0x4608df
mov eax, dword [ebp - 0x14]
imul eax, eax, 3
add eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
shl eax, 2
imul eax, dword [ebp - 0x10]
mov ecx, 0xffffffec
sub ecx, eax
sub ecx, dword [ebp - 8]
mov dword [ebp - 0x1e8], ecx
push 2
mov edx, dword [ebp - 0x1e8]
push edx
mov ecx, dword [ebp - 0x3b8]
add ecx, 0x204
mov eax, dword [ebp - 0x3b8]
mov edx, dword [eax + 0x204]
call dword [edx + 0x28]
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x3b0]
push ecx
mov ecx, dword [ebp - 0x3b8]
add ecx, 0x204
mov edx, dword [ebp - 0x3b8]
mov eax, dword [edx + 0x204]
call dword [eax + 0x34]
lea ecx, [ebp - 0x3b0]
mov dword [ebp - 0x1ec], ecx
push 2
mov edx, dword [ebp - 0x1e8]
push edx
mov ecx, dword [ebp - 0x3b8]
add ecx, 0x204
mov eax, dword [ebp - 0x3b8]
mov edx, dword [eax + 0x204]
call dword [edx + 0x28]
mov eax, dword [ebp - 0x1ec]
add eax, 0xc0
mov dword [ebp - 0x1f0], eax
mov ecx, dword [ebp - 0x1f0]
movsx edx, byte [ecx]
cmp edx, 0x6e
jne 0x4608c7
mov eax, dword [ebp - 0x1f0]
movsx ecx, byte [eax + 1]
cmp ecx, 0x65
jne 0x4608c7
mov edx, dword [ebp - 0x1f0]
movsx eax, byte [edx + 2]
test eax, eax
je 0x4608df
push 3
lea ecx, [ebp - 0x3b0]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x3b8]
call fcn.00461934
mov ecx, dword [ebp - 0x3b8]
add ecx, 0x204
mov eax, dword [ebp - 0x3b8]
mov edx, dword [eax + 0x204]
call dword [edx + 0x4c]
mov eax, 1
mov esp, ebp
pop ebp
ret 4