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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
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 0x40bd78
mov ecx, dword [0x4273c4]
add ecx, 0xa231
mov dword [0x1f6ec04], ecx
cmp dword [0x1f6ec04], 0x141
jne 0x40bd95
or dword [0x427f5c], 0xffffffff
mov dword [0x427f58], 0xec58acac
inc eax
cmp eax, 0x12376ec
jl 0x40bd5f
xor esi, esi
cmp esi, 0x562d05
jne 0x40bdb1
mov eax, dword [0x425fb8]
mov dword [0x1f6ed34], eax
cmp dword [0x1f6ec04], 0x3c
jne 0x40bdc3
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
inc esi
cmp esi, 0x5f6c74
jl 0x40bd9f
cmp dword [0x1f6ec04], 0x7c
jne 0x40beaa
push edi
lea eax, [ebp - 0x840]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
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 - 0x860]
push eax
push dword [ebp - 0x830]
lea eax, [ebp - 0x844]
push dword [ebp - 0x834]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
xor eax, eax
mov dword [ebp - 0x858], ebx
lea edi, [ebp - 0x854]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x858]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFileScatter]
push ebx
lea eax, [ebp - 0x804]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp dword [0x1f6ec04], 0x110a
jne 0x40bf62
push ebx
push ebx
mov dword [0x1f6ebf8], ebx
mov dword [0x1f6ebfc], ebx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
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.bokipabirotisudemoxuravoyoyoxizanucavehipupawotinuruvejididezusoniwozacacohulivuba
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x804]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
push ebx
push ebx
call fcn.00401cdb
push ebx
push ebx
call fcn.00401cdb
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.00409671
push ebx
push ebx
call fcn.00401cdb
push ebx
call fcn.00401e68
push ebx
push ebx
push ebx
call fcn.00401b9f
add esp, 0x18
push 1
xor ebx, ebx
call fcn.0040104c
call fcn.0040ba54
xor ecx, ecx
cmp dword [0x1f6ec04], ebx
jbe 0x40bfb4
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 + ecx]
mov edx, dword [0x1f6ea4c]
mov byte [edx + ecx], al
mov eax, dword [0x1f6ec04]
cmp eax, 0x5ab
jne 0x40bfaf
mov dword [0x1f6ea50], 0x19b0
inc ecx
cmp ecx, eax
jb 0x40bf71
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.0040baa9
call fcn.0040ba8b
call fcn.0040bcda
xor eax, eax
cmp eax, 0xd606b
jne 0x40bfdc
call fcn.0040ba80
inc eax
cmp eax, 0x24e87d
jl 0x40bfd0
xor eax, eax
cmp eax, 0x408e
jle 0x40bff9
cmp dword [ebp - 0x824], 0xf5bed7
jne 0x40c001
inc eax
cmp eax, 0x687ed2
jl 0x40bfe6
mov esi, 0x1e4165
cmp dword [0x1f6ec04], 0xcc1
jne 0x40c01b
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
cmp dword [0x1f6ec04], 0x7c4
mov dword [0x1f6ec00], 0x8e46a6f0
jne 0x40c039
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
dec esi
jne 0x40c006
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00401ab5
leave
ret