Function at 0x40bd77
Capabilities:
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd64
mov eax, dword [0x425090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
xor eax, eax
cmp eax, 0x180
jne 0x40bda9
mov ecx, dword [0x4273c4]
add ecx, 0xa231
mov dword [0x1f6ec04], ecx
cmp dword [0x1f6ec04], 0x141
jne 0x40bdc6
or dword [0x427f5c], 0xffffffff
mov dword [0x427f58], 0xec58acac
inc eax
cmp eax, 0x12376ec
jl 0x40bd90
xor esi, esi
cmp esi, 0x562d05
jne 0x40bde2
mov eax, dword [0x425fb8]
mov dword [0x1f6ed34], eax
cmp dword [0x1f6ec04], 0x3c
jne 0x40bdf3
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
inc esi
cmp esi, 0x5f6c74
jl 0x40bdd0
cmp dword [0x1f6ec04], 0x7c
jne 0x40beef
push edi
push ebx
lea eax, [ebp - 0xd58]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0xc1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push ebx
lea eax, [ebp - 0xd5c]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
lea eax, [ebp - 0xd40]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
mov word [ebp - 0xd48], ax
lea edi, [ebp - 0xd46]
stosw word es:[edi], ax
mov word [ebp - 0xd44], ax
lea edi, [ebp - 0xd42]
stosw word es:[edi], ax
lea eax, [ebp - 0xd64]
push eax
push dword [ebp - 0xd44]
lea eax, [ebp - 0xd4c]
push dword [ebp - 0xd48]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputA]
lea eax, [ebp - 0xc04]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
lea eax, [ebp - 0x404]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
call dword [sym.imp.KERNEL32.dll_HeapLock]
push ebx
lea eax, [ebp - 0xd54]
push eax
mov dword [ebp - 0xd54], ebx
mov dword [ebp - 0xd50], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
cmp dword [0x1f6ec04], 0x2d
pop edi
jne 0x40bed7
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x4231f8
push 0x427ed0
call fcn.00401d4f
push ebx
call fcn.00401e9c
add esp, 0xc
cmp dword [0x1f6ec04], 0x110a
jne 0x40bfc4
push ebx
push ebx
mov dword [0x1f6ebf8], ebx
mov dword [0x1f6ebfc], ebx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push dword [ebp - 0xd4c]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push ebx
call esi
push str.votogepuyebedixibericobazev_himibupeyivifanajukepikuzihugaze_kilepehoyikij_nipuwiwaxinowikicowenuzosemolori
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp - 0xd4c]
lea eax, [ebp - 0x404]
push eax
call esi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x804]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CompareStringA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
push ebx
push ebx
call fcn.00401d0f
push ebx
push ebx
call fcn.00401d0f
add esp, 0x10
xor eax, eax
push 1
lea esi, [ebp - 0xc20]
mov dword [ebp - 0xc08], 7
mov dword [ebp - 0xc0c], ebx
mov word [ebp - 0xc1c], ax
call fcn.00401091
call fcn.0040987e
push ebx
push ebx
call fcn.00401eb2
push ebx
push ebx
call fcn.00401d0f
push ebx
call fcn.00401b21
push ebx
push ebx
push ebx
call fcn.00401bd3
add esp, 0x20
push 1
xor ebx, ebx
call fcn.0040104c
call fcn.0040ba44
xor esi, esi
cmp dword [0x1f6ec04], ebx
jbe 0x40c023
mov eax, dword [0x1f6ed34]
mov dword [ebp - 0xd44], eax
mov eax, 0xa231
add dword [ebp - 0xd44], eax
mov eax, dword [ebp - 0xd44]
mov al, byte [eax + esi]
mov ecx, dword [0x1f6ea4c]
mov byte [ecx + esi], al
cmp dword [0x1f6ec04], 0x5ab
jne 0x40c01a
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
mov dword [0x1f6ea50], 0x19b0
inc esi
cmp esi, dword [0x1f6ec04]
jb 0x40bfd3
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.0040ba99
call fcn.0040ba7b
call fcn.0040bcfe
xor eax, eax
cmp eax, 0xd606b
jne 0x40c04b
call fcn.0040ba70
inc eax
cmp eax, 0x24e87d
jl 0x40c03f
xor eax, eax
cmp eax, 0x408e
jle 0x40c068
cmp dword [ebp - 0xc24], 0xf5bed7
jne 0x40c070
inc eax
cmp eax, 0x687ed2
jl 0x40c055
mov esi, 0x1e4165
cmp dword [0x1f6ec04], 0xcc1
jne 0x40c08a
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
cmp dword [0x1f6ec04], 0x7c4
mov dword [0x1f6ec00], 0x8e46a6f0
jne 0x40c0a6
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
dec esi
jne 0x40c075
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00401ab5
leave
ret