Function at 0x404d20
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push str.phbnuohwtr
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x28], 0x323
jb 0x404da0
cmp dword [ebp - 0x1c], 0
ja 0x404da0
cmp dword [ebp - 0x24], 0x4b8
je 0x404da0
mov eax, dword [ebp - 0x24]
and eax, 0
or eax, dword [ebp - 0x20]
mov word [ebp - 8], ax
movzx ecx, word [ebp - 8]
cmp dword [ebp - 0x14], ecx
je 0x404d68
cmp dword [ebp - 8], 0
jne 0x404d78
push str.lenofaesksdehs
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
jmp 0x404da0
mov edx, dword [ebp - 0x10]
and edx, dword [ebp - 8]
and edx, dword [ebp - 4]
mov eax, 0x4bb
sub eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0xc]
or edx, eax
movzx ecx, byte [ebp - 0x14]
movzx eax, word [ebp - 0xc]
add ecx, eax
or edx, ecx
or edx, dword [ebp - 4]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
and edx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], edx
call fcn.004051a0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x24]
je 0x404ec1
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
sub edx, 0x39
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0x57
ja case.0x404de6.1
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax + 0x405040]
jmp dword [ecx*4 + 0x40502c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
lea ecx, [eax + edx - 0xae5]
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 4]
movzx eax, byte [ebp - 0x10]
sub edx, eax
sub edx, dword [ebp - 4]
and ecx, edx
mov dword [ebp - 8], ecx
jmp 0x404ea5
mov ecx, dword [ebp - 0x28]
or ecx, dword [ebp - 0x14]
movzx edx, word [ebp - 0xc]
sub edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x1c]
add edx, dword [ebp - 8]
movzx eax, word [ebp - 8]
sub eax, dword [ebp - 8]
add eax, dword [ebp - 4]
and edx, eax
or ecx, edx
mov word [ebp - 0x20], cx
jmp 0x404ea5
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x20]
or ecx, 0x3d2
movzx edx, word [ebp - 0x18]
imul eax, edx, 0x25c
add eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x1c]
and eax, edx
or ecx, eax
mov dword [ebp - 0x10], ecx
jmp 0x404ea5
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x14]
movzx ecx, byte [ebp - 0x24]
imul edx, ecx, 0x3a8
mov ecx, 0x2ae
sub ecx, edx
imul edx, dword [ebp - 0x14], 0
sub ecx, edx
xor ecx, 0x5e6
or eax, ecx
mov byte [ebp - 0xc], al
jmp 0x404ea5
movzx eax, word [ebp - 0x1c]
add eax, dword [ebp - 4]
movzx ecx, word [ebp - 0x10]
add eax, ecx
or eax, dword [ebp - 0x10]
or eax, dword [ebp - 0x18]
mov byte [ebp - 0x20], al
push str.ndssiaareosdr
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov dword [ebp - 4], eax
jmp 0x404ee3
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
shl edx, cl
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 4]
movzx ecx, word [ebp - 4]
sub eax, ecx
and edx, eax
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 8]
jne 0x405001
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x1c]
jb 0x404f18
cmp dword [ebp - 0xc], 0x400
jne 0x404f18
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
imul edx, dword [ebp - 0x1c]
and ecx, edx
and ecx, 0x62e
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
sub ecx, 0x49
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0xec
ja case.0x404f3e.1
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 0x4050b0]
jmp dword [eax*4 + 0x405098]
movzx ecx, word [ebp - 4]
mov edx, 0x49b
sub edx, ecx
movzx eax, word [ebp - 0x28]
imul ecx, eax, 0x9b4
or edx, ecx
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x1c]
or edx, eax
mov dword [ebp - 0x18], edx
jmp 0x405001
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 4]
add ecx, dword [ebp - 4]
shl edx, cl
movzx eax, byte [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
or edx, eax
mov word [ebp - 0xc], dx
jmp 0x405001
mov ecx, 0x710
sub ecx, dword [ebp - 0x24]
mov word [ebp - 0x1c], cx
jmp 0x405001
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0xc]
or edx, dword [ebp - 0x18]
mov eax, 0x834
sub eax, dword [ebp - 0x14]
sub eax, dword [ebp - 8]
and eax, 0
or edx, eax
mov byte [ebp - 0x28], dl
jmp 0x405001
movzx ecx, byte [ebp - 0x10]
movzx edx, word [ebp - 0xc]
mov eax, dword [ebp - 0x28]
sub eax, edx
or ecx, eax
movzx edx, word [ebp - 0x20]
and edx, dword [ebp - 4]
or ecx, edx
imul eax, dword [ebp - 4], 0
or ecx, eax
mov dword [ebp - 0x18], ecx
jmp 0x405001
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 4]
sub ecx, 0x88f
or ecx, dword [ebp - 8]
or ecx, dword [ebp - 0xc]
movzx edx, word [ebp - 0xc]
or ecx, edx
imul eax, dword [ebp - 0x28], 0
sub eax, dword [ebp - 0x14]
or ecx, eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x676
movzx edx, word [ebp - 0x18]
imul edx, dword [ebp - 0x18]
sub ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
and ecx, 0
or eax, ecx
mov dword [ebp - 0x20], eax
mov esp, ebp
pop ebp
ret