Function at 0x4180b0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0x2f559
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x144], 0
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x10c], eax
mov ebx, dword [ebp - 0x10c]
or ebx, dword [ebp - 0x10c]
or ebx, 0x4adae
mov esi, dword [ebp - 0x10c]
add esi, dword [ebp - 0x10c]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
sub esi, eax
or ebx, esi
mov byte [ebp - 0x81], bl
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
mov esi, eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
cmp esi, eax
jne 0x41815a
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
test eax, eax
jne 0x41815a
movzx ecx, byte [ebp - 0x81]
movzx edx, word [ebp - 0xac]
cmp ecx, edx
jne 0x418195
mov esi, 0x56346
sub esi, dword [ebp - 0x10c]
movzx eax, word [ebp - 0xac]
sub esi, eax
or esi, 0x7bff
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DnsHostnameToComputerNameA]
sub eax, 0x135b2
sub eax, dword [ebp - 0x10c]
or esi, eax
mov dword [ebp - 0x10c], esi
jmp 0x4181c2
movzx ecx, word [ebp - 0xac]
mov edx, dword [ebp - 0x10c]
sub edx, ecx
and edx, 0x49016
movzx eax, word [ebp - 0xac]
movzx ecx, byte [ebp - 0x81]
sub eax, ecx
and edx, eax
mov dword [ebp - 0x10c], edx
mov edx, dword [ebp - 0x10c]
and edx, dword [ebp - 0x10c]
xor eax, eax
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x10c]
add ecx, dword [ebp - 0x10c]
mov byte [ebp - 0x81], cl
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
cmp eax, 0xe567
je 0x41821a
cmp dword [ebp - 0x10c], 0x1f70f
je 0x41821a
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
cmp eax, 0x193fd
jne 0x41827a
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [ebp - 0x10c]
lea esi, [eax + edx - 0xb313]
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x10c]
lea edx, [ecx + eax + 0x655fc]
movzx eax, byte [ebp - 0x81]
sub edx, eax
add edx, 0x155a0
or esi, edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EraseTape]
or esi, eax
mov ecx, 0x1bf23
sub ecx, dword [ebp - 0x10c]
or esi, ecx
mov dword [ebp - 0x10c], esi
jmp 0x4182c9
mov esi, dword [ebp - 0x10c]
xor edi, edi
add esi, dword [ebp - 0x70]
adc edi, dword [ebp - 0x6c]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
xor edx, edx
sub esi, eax
sbb edi, edx
add esi, 0x1fdd8
adc edi, 0
mov eax, dword [ebp - 0x10c]
xor ecx, ecx
add esi, eax
adc edi, ecx
mov edx, dword [ebp - 0x10c]
xor eax, eax
add esi, edx
adc edi, eax
mov ecx, dword [ebp - 0x10c]
xor edx, edx
sub esi, ecx
sbb edi, edx
mov dword [ebp - 0x10c], esi
mov ebx, dword [ebp - 0x10c]
add ebx, 0x12879
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
mov esi, eax
movzx eax, word [ebp - 0xac]
add esi, eax
movzx edi, byte [ebp - 0x81]
add edi, 0x2455e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
sub edi, eax
mov ecx, edi
shr esi, cl
and esi, 0x84c0
or ebx, esi
mov byte [ebp - 0x81], bl
mov esi, dword [ebp - 0x10c]
and esi, 0x2cdef
movzx edi, word [ebp - 0xac]
add edi, dword [ebp - 0x10c]
movzx ecx, byte [ebp - 0x81]
sub edi, ecx
movzx edx, byte [ebp - 0x81]
sub edi, edx
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoW]
lea eax, [edi + eax - 0x1bffa]
or esi, eax
mov dword [ebp - 0x10c], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x31f1d
jb 0x4183ab
movzx ecx, word [ebp - 0xac]
cmp ecx, 0x4d3a7
je 0x4183ab
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentConsoleFont]
cmp eax, 0x18b8f
jne 0x41839c
cmp dword [ebp - 0x10c], 0x28faf
je 0x4183ab
movzx edx, byte [ebp - 0x81]
cmp edx, 0x51a7e
jne 0x4183e9
movzx eax, word [ebp - 0xac]
mov ecx, dword [ebp - 0x10c]
lea esi, [ecx + eax + 0x604c7]
sub esi, dword [ebp - 0x10c]
movzx edx, word [ebp - 0xac]
add esi, edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DnsHostnameToComputerNameA]
sub eax, 0x2a4c9
or esi, eax
mov dword [ebp - 0x10c], esi
jmp 0x41840a
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, 0x272fe
sub ecx, eax
sub ecx, dword [ebp - 0x10c]
and ecx, 0xffffcdda
mov dword [ebp - 0x10c], ecx
movzx edx, word [ebp - 0xac]
add edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x10c]
add eax, 0x1b30a
and eax, dword [ebp - 0x10c]
or edx, eax
mov byte [ebp - 0x81], dl
mov eax, dword [ebp - 0x10c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c