Function at 0x40f080
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0xc], 0x57a
movzx eax, word [ebp - 4]
imul ecx, eax, 0
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 4]
movzx eax, word [ebp - 0x24]
add edx, dword [ebp - 0x10]
add eax, edx
sub eax, dword [ebp - 0x14]
and ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x14]
or ecx, dword [ebp - 0x10]
or ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
and edx, dword [ebp - 4]
or ecx, edx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0xc]
and ecx, dword [ebp - 0x2c]
or eax, ecx
movzx edx, word [ebp - 0x20]
sub edx, dword [ebp - 0x1c]
movzx ecx, byte [ebp - 8]
add ecx, dword [ebp - 8]
and edx, ecx
or eax, edx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x1c], 0x1bbb
jbe 0x40f0fe
cmp dword [ebp - 0x20], 0
jae 0x40f20e
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
movzx ecx, word [ebp - 0x24]
add eax, dword [ebp - 0x1c]
add ecx, eax
movzx eax, byte [ebp - 0x24]
add ecx, eax
sub ecx, dword [ebp - 0x10]
or edx, ecx
mov byte [ebp - 0x20], dl
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x2c]
jb 0x40f1e9
mov dword [ebp - 0x10], 0xe59
mov edx, dword [ebp - 0x18]
imul edx, dword [ebp - 0x14]
add edx, 0x308d
or edx, dword [ebp - 0x14]
movzx eax, word [ebp - 0x24]
imul eax, dword [ebp - 0x18]
or edx, eax
movzx ecx, word [ebp - 0x20]
and ecx, dword [ebp - 0x24]
or edx, ecx
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
add eax, dword [ebp - 0xc]
or edx, eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x18]
or edx, ecx
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x10]
add edx, 4
mov dword [ebp - 0x10], edx
movzx eax, word [ebp - 4]
or eax, 0x68d
or eax, dword [ebp - 8]
movzx ecx, byte [ebp - 8]
movzx edx, word [ebp - 8]
imul ecx, edx
movzx edx, byte [ebp - 0x28]
sub ecx, edx
sub ecx, 0x268c
or eax, ecx
or eax, dword [ebp - 4]
mov byte [ebp - 0x24], al
movzx eax, byte [ebp - 0x18]
add eax, dword [ebp - 0x2c]
or eax, 0x1877
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x20]
and ecx, edx
or eax, ecx
mov ecx, dword [ebp - 0x18]
sub ecx, 0x44b3
or eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0xe65
jb 0x40f15d
jmp 0x40f20e
movzx edx, word [ebp - 0xc]
sub edx, dword [ebp - 0x10]
imul eax, dword [ebp - 0x10], 0x15cb
imul eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x28]
sub eax, 0x1f3e
movzx ecx, word [ebp - 0xc]
sub eax, ecx
or edx, eax
mov dword [ebp - 8], edx
call fcn.0040f320
mov edx, dword [ebp - 0x24]
and edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x10]
and edx, eax
movzx ecx, word [ebp - 0xc]
and edx, ecx
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x2c]
movzx ecx, byte [ebp - 4]
and eax, ecx
or edx, eax
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp - 0x1c]
jb 0x40f2a4
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jbe 0x40f277
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x20]
jne 0x40f277
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
shr edx, cl
mov eax, dword [ebp - 0x18]
add eax, 0x4ce
or edx, eax
or edx, dword [ebp - 4]
movzx ecx, word [ebp - 0x18]
add ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0xc]
or edx, ecx
mov dword [ebp - 0x10], edx
movzx edx, word [ebp - 0x28]
movzx eax, word [ebp - 8]
add edx, dword [ebp - 0x1c]
lea ecx, [eax + edx - 0xac7]
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x14]
and ecx, edx
imul eax, dword [ebp - 0x1c], 0x2aff
imul eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
or ecx, eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x28]
xor edx, edx
sub edx, dword [ebp - 8]
movzx eax, word [ebp - 0x24]
imul eax, dword [ebp - 0x28]
add edx, eax
and ecx, edx
movzx edx, byte [ebp - 0x24]
add edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x24]
and ecx, edx
or ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 4]
ja 0x40f319
cmp dword [ebp - 0x14], 0x1e5b
je 0x40f319
cmp dword [ebp - 0xc], 0x2be0
je 0x40f30b
movzx ecx, byte [ebp - 0x10]
and ecx, 0
or ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
sub edx, dword [ebp - 4]
sub edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x14]
add edx, dword [ebp - 0xc]
sub edx, dword [ebp - 4]
or ecx, edx
mov dword [ebp - 8], ecx
push str.hamlethaaio
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
mov esp, ebp
pop ebp
ret