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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1164
call fcn.0040aad0
mov eax, dword [0x42c090]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x42e3c4]
mov ecx, dword [0x1f75c04]
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov edi, 0xec58acac
or esi, 0xffffffff
cmp eax, 0x180
jne 0x40bf1f
lea ecx, [edx + 0xa231]
cmp ecx, 0x141
jne 0x40bf33
mov dword [0x42ef58], edi
mov dword [0x42ef5c], esi
inc eax
cmp eax, 0x12376ec
jl 0x40bf12
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x1f75c04], ecx
xor esi, esi
lea esp, [esp]
cmp esi, 0x562d05
jne 0x40bf62
mov eax, dword [0x42cfb8]
mov dword [0x1f75d34], eax
cmp ecx, 0x3c
jne 0x40bf71
push ebx
push ebx
call edi
mov ecx, dword [0x1f75c04]
inc esi
cmp esi, 0x5f6c74
jl 0x40bf50
cmp ecx, 0x7c
jne 0x40c076
push ebx
lea ecx, [ebp - 0x1158]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea edx, [ebp - 0x101c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push ebx
lea eax, [ebp - 0x115c]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
lea ecx, [ebp - 0x1140]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
xor edx, edx
mov word [ebp - 0x1146], ax
xor ecx, ecx
mov word [ebp - 0x1142], dx
lea eax, [ebp - 0x1164]
push eax
mov word [ebp - 0x1144], cx
mov ecx, dword [ebp - 0x1144]
push ecx
mov word [ebp - 0x1148], dx
mov edx, dword [ebp - 0x1148]
push edx
lea eax, [ebp - 0x114c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputA]
lea ecx, [ebp - 0x804]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
lea edx, [ebp - 0x1004]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push ebx
call dword [sym.imp.KERNEL32.dll_HeapLock]
push ebx
lea eax, [ebp - 0x1154]
push eax
mov dword [ebp - 0x1154], ebx
mov dword [ebp - 0x1150], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
cmp dword [0x1f75c04], 0x2d
jne 0x40c058
push ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x42aa78
push 0x42eed0
call fcn.00401e4b
push ebx
call fcn.00401f98
mov ecx, dword [0x1f75c04]
add esp, 0xc
cmp ecx, 0x110a
jne 0x40c155
push ebx
push ebx
mov dword [0x1f75bf8], ebx
mov dword [0x1f75bfc], ebx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoA]
mov ecx, dword [ebp - 0x114c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push str.votogepuyebedixibericobazev_himibupeyivifanajukepikuzihugaze_kilepehoyikij_nipuwiwaxinowikicowenuzosemolori
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea edx, [ebp - 0xc04]
push edx
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
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.00401e0b
push ebx
push ebx
call fcn.00401e0b
add esp, 0x10
xor ecx, ecx
push 1
lea esi, [ebp - 0x1020]
mov dword [ebp - 0x1008], 7
mov dword [ebp - 0x100c], ebx
mov word [ebp - 0x101c], cx
call fcn.00401060
call fcn.0040997e
push ebx
push ebx
call fcn.00401fae
push ebx
push ebx
call fcn.00401e0b
push ebx
call fcn.00401c1d
push ebx
push ebx
push ebx
call fcn.00401ccf
add esp, 0x20
cmp dword [ebp - 0x1008], 8
jb 0x40c155
mov edx, dword [ebp - 0x101c]
push edx
call fcn.00401f10
add esp, 4
call fcn.0040bb50
xor esi, esi
cmp dword [0x1f75c04], ebx
jbe 0x40c1bc
mov edi, dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
mov ebx, 0x19b0
nop
mov eax, dword [0x1f75d34]
mov dword [ebp - 0x1144], eax
mov eax, 0xa231
add dword [ebp - 0x1144], eax
mov ecx, dword [ebp - 0x1144]
mov dl, byte [ecx + esi]
mov eax, dword [0x1f75a4c]
mov byte [eax + esi], dl
cmp dword [0x1f75c04], 0x5ab
jne 0x40c1b1
push 0
push 0
push 0
call edi
mov dword [0x1f75a50], ebx
inc esi
cmp esi, dword [0x1f75c04]
jb 0x40c170
xor ebx, ebx
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.0040bbc0
call fcn.0040bb90
call fcn.0040be60
xor eax, eax
cmp eax, 0xd606b
jne 0x40c1e4
call fcn.0040bb80
inc eax
cmp eax, 0x24e87d
jl 0x40c1d8
mov ecx, dword [ebp - 0x1024]
xor eax, eax
cmp eax, 0x408e
jle 0x40c203
cmp ecx, 0xf5bed7
jne 0x40c20b
inc eax
cmp eax, 0x687ed2
jl 0x40c1f4
mov esi, dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x1148], 0x1e4165
mov ebx, 0x8e46a6f0
jmp 0x40c230
cmp dword [0x1f75c04], 0xcc1
jne 0x40c244
push 0
push 0
push 0
call esi
cmp dword [0x1f75c04], 0x7c4
mov dword [0x1f75c00], ebx
jne 0x40c258
call edi
sub dword [ebp - 0x1148], 1
jne 0x40c230
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bb1
mov esp, ebp
pop ebp
ret