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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x80e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x2af88b4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor esi, esi
or ebx, 0xffffffff
cmp eax, 0x8cf
jne 0x40b962
push 0
push str.datipozuhajagetazufegubule_jobawifoven_dihaw_sujejocekerofigenorosomazetoyu
lea eax, [ebp - 0x804]
push eax
call edi
mov eax, dword [0x2af88b4]
cmp esi, 0x180
jne 0x40b979
mov eax, dword [0x80fdf4]
add eax, 0xa231
mov dword [0x2af88b4], eax
cmp eax, 0x141
jne 0x40b990
mov dword [0x8108e0], 0xec58acac
mov dword [0x8108e4], ebx
inc esi
cmp esi, 0x12376ec
jl 0x40b946
mov edi, dword [sym.imp.KERNEL32.dll_AddAtomW]
xor esi, esi
cmp esi, 0x562d05
jne 0x40b9b5
mov ecx, dword [0x80efd8]
mov dword [0x2af88b8], ecx
cmp eax, 0x3c
jne 0x40b9c3
push 0
call edi
mov eax, dword [0x2af88b4]
inc esi
cmp esi, 0x5f6c74
jl 0x40b9a1
cmp eax, 0x7c
jne 0x40ba55
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0
lea eax, [ebp - 0x80c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
lea ecx, [ebp - 0x804]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp dword [0x2af88b4], 0x2d
jne 0x40ba37
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0x80c720
push 0x810858
call fcn.0040101b
push 0
call fcn.00401191
mov eax, dword [0x2af88b4]
add esp, 0xc
cmp eax, 0x110a
jne 0x40baf7
mov edx, dword [ebp - 0x80c]
xor eax, eax
push edx
push eax
mov dword [0x2af8780], eax
mov dword [0x2af8784], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push str.mayikoxoyewexalulu
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
push 0
push 0
lea eax, [ebp - 0x804]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
mov ecx, dword [ebp - 0x80c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_PurgeComm]
push 0
push 0
call fcn.00401098
push 0
push 0
call fcn.00401098
push 0
call fcn.0040b494
push 0
push 0
call fcn.00401098
push 0
push 0
call fcn.0040119c
push 0x80c738
push 0x810858
call fcn.0040115e
add esp, 0x2c
push 0
call fcn.00401657
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x2af85d4], eax
cmp dword [0x2af88b4], esi
jbe 0x40bb6f
mov edi, dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov ebx, 0x19b0
lea ebx, [ebx]
mov edx, dword [0x2af88b8]
mov dword [ebp - 0x808], edx
mov eax, 0xa231
add dword [ebp - 0x808], eax
mov eax, dword [ebp - 0x808]
mov cl, byte [eax + esi]
mov edx, dword [0x2af85d4]
mov byte [edx + esi], cl
cmp dword [0x2af88b4], 0x5ab
jne 0x40bb66
lea eax, [ebp - 0x828]
push eax
push 0
call edi
mov dword [0x2af85d8], ebx
inc esi
cmp esi, dword [0x2af88b4]
jb 0x40bb20
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.0040b600
call fcn.0040b5d0
call fcn.0040b8e0
call fcn.0040b5c0
mov ebx, dword [ebp - 0x82c]
mov edi, dword [sym.imp.KERNEL32.dll_FindAtomA]
xor esi, esi
lea esp, [esp]
lea ecx, [ebp - 0x404]
push ecx
call edi
cmp esi, 0x408e
jle 0x40bbb9
cmp ebx, 0xf5bed7
jne 0x40bbc2
inc esi
cmp esi, 0x687ed2
jl 0x40bba0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, 0x1e4165
mov edi, 0x8e46a6f0
cmp dword [0x2af88b4], 0xcc1
jne 0x40bbe9
push 0
push 0
push 0
call sub.KERNEL32.dll_SetConsoleDisplayMode
cmp dword [0x2af88b4], 0x7c4
mov dword [0x2af85dc], edi
jne 0x40bbfd
call esi
sub ebx, 1
jne 0x40bbd2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040100c
mov esp, ebp
pop ebp
ret