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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x850
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 0x40bd7d
mov ecx, dword [0x4273c4]
add ecx, 0xa231
mov dword [0x1f6ec04], ecx
cmp dword [0x1f6ec04], 0x141
jne 0x40bd9a
or dword [0x427f5c], 0xffffffff
mov dword [0x427f58], 0xec58acac
inc eax
cmp eax, 0x12376ec
jl 0x40bd64
xor esi, esi
cmp esi, 0x562d05
jne 0x40bdb6
mov eax, dword [0x425fb8]
mov dword [0x1f6ed34], eax
cmp dword [0x1f6ec04], 0x3c
jne 0x40bdc7
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
inc esi
cmp esi, 0x5f6c74
jl 0x40bda4
cmp dword [0x1f6ec04], 0x7c
jne 0x40beb6
push edi
push ebx
lea eax, [ebp - 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push ebx
lea eax, [ebp - 0x844]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
xor eax, eax
mov word [ebp - 0x834], ax
lea edi, [ebp - 0x832]
stosw word es:[edi], ax
mov word [ebp - 0x830], ax
lea edi, [ebp - 0x82e]
stosw word es:[edi], ax
lea eax, [ebp - 0x850]
push eax
push dword [ebp - 0x830]
lea eax, [ebp - 0x840]
push dword [ebp - 0x834]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputA]
lea eax, [ebp - 0x804]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
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 - 0x83c]
push eax
mov dword [ebp - 0x83c], ebx
mov dword [ebp - 0x838], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
cmp dword [0x1f6ec04], 0x2d
pop edi
jne 0x40be9e
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x4231dc
push 0x427ed0
call fcn.00401d4f
push ebx
call fcn.00401e9c
add esp, 0xc
cmp dword [0x1f6ec04], 0x110a
jne 0x40bf75
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 ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push str.rovoni_bumoro_bayakazifecumoci_cosanizonoxagomoyefajewufu
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x404]
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 - 0x820]
mov dword [ebp - 0x808], 7
mov dword [ebp - 0x80c], ebx
mov word [ebp - 0x81c], 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 0x40bfd4
mov eax, dword [0x1f6ed34]
mov dword [ebp - 0x830], eax
mov eax, 0xa231
add dword [ebp - 0x830], eax
mov eax, dword [ebp - 0x830]
mov al, byte [eax + esi]
mov ecx, dword [0x1f6ea4c]
mov byte [ecx + esi], al
cmp dword [0x1f6ec04], 0x5ab
jne 0x40bfcb
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
mov dword [0x1f6ea50], 0x19b0
inc esi
cmp esi, dword [0x1f6ec04]
jb 0x40bf84
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.0040ba99
call fcn.0040ba7b
call fcn.0040bcdc
xor eax, eax
cmp eax, 0xd606b
jne 0x40bffc
call fcn.0040ba70
inc eax
cmp eax, 0x24e87d
jl 0x40bff0
xor eax, eax
cmp eax, 0x408e
jle 0x40c019
cmp dword [ebp - 0x824], 0xf5bed7
jne 0x40c021
inc eax
cmp eax, 0x687ed2
jl 0x40c006
mov esi, 0x1e4165
cmp dword [0x1f6ec04], 0xcc1
jne 0x40c03b
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
cmp dword [0x1f6ec04], 0x7c4
mov dword [0x1f6ec00], 0x8e46a6f0
jne 0x40c057
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
dec esi
jne 0x40c026
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00401ab5
leave
ret