Function at 0x405680
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 4], 0x9c3
mov dword [ebp - 0x20], 0
mov eax, dword [0x7665b8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [0x766580]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x1c], 0x90a
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x10]
or edx, dword [ebp - 0x10]
movzx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 8]
sub ecx, eax
and ecx, dword [ebp - 0x1c]
or edx, ecx
mov dword [ebp - 0x20], edx
movzx edx, byte [ebp - 0x1c]
sub edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x1c]
or edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
sub eax, 0xb1a
sub eax, dword [ebp - 0x10]
sub eax, 0x606
or edx, eax
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
lea eax, [ecx + edx + 0x113]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
sub edx, 0x52
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0xc3
ja case.0x405735.1
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + 0x4058a8]
jmp dword [ecx*4 + 0x405890]
mov edx, dword [ebp - 4]
add edx, 0x809
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x20]
sub eax, 0x987
sub eax, dword [ebp - 0x2c]
and edx, eax
or edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
jmp 0x4057f6
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x18]
xor edx, edx
sub edx, dword [ebp - 0xc]
or ecx, edx
mov dword [ebp - 4], ecx
jmp 0x4057f6
movzx eax, byte [ebp - 0xc]
sub eax, 0x7be
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x24]
or eax, ecx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x14]
add edx, dword [ebp - 4]
imul ecx, dword [ebp - 4], 0x4c2
add edx, ecx
or eax, edx
mov dword [ebp - 0x2c], eax
jmp 0x4057f6
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x14]
movzx eax, word [ebp - 0xc]
mov ecx, dword [ebp - 8]
sub ecx, eax
shl edx, cl
and edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
and edx, ecx
mov dword [ebp - 0x20], edx
jmp 0x4057f6
xor edx, edx
sub edx, dword [ebp - 4]
add edx, dword [ebp - 0x1c]
and edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
or edx, eax
or edx, 0x4fb
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x1c]
or edx, ecx
mov dword [ebp - 0x10], edx
jmp 0x4057f6
mov edx, dword [ebp - 0x24]
and edx, dword [ebp - 0x18]
and edx, 0
mov dword [ebp - 4], edx
call fcn.00405970
push str.stbh
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x24]
je 0x40586d
mov ecx, dword [ebp - 8]
or ecx, 0x426
mov edx, dword [ebp - 4]
add edx, 0x882
sub edx, dword [ebp - 8]
add edx, 0x411
movzx eax, byte [ebp - 8]
sub edx, eax
and edx, 0
and edx, dword [ebp - 0xc]
or ecx, edx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x30]
push edx
push 0x3b
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov dword [ebp - 0x14], eax
push 0
push 0
push 3
push 0
push 1
push 0x40000000
push str.bihnircctlppiei
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x14], eax
push str.edwyoighni
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x24], eax
mov esp, ebp
pop ebp
ret