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

Disassembly:
sub esp, 0x834
mov eax, dword [0x44e004]
xor eax, esp
mov dword [esp + 0x830], eax
mov eax, dword [0x2b091dc]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor esi, esi
or ebx, 0xffffffff
cmp eax, 0x8cf
jne 0x40b941
push 0
push str.cehihojurumisefeputekufafurebojo_pijeye_tujayito_gifehatikihorafuyeyemayo
lea eax, [esp + 0x44]
push eax
call edi
mov eax, dword [0x2b091dc]
cmp esi, 0x162
jne 0x40b958
mov eax, dword [0x44fe14]
add eax, 0xa231
mov dword [0x2b091dc], eax
cmp eax, 0x141
jne 0x40b96f
mov dword [0x450908], 0xec58acac
mov dword [0x45090c], ebx
inc esi
cmp esi, 0x129916c
jl 0x40b927
mov edi, dword [sym.imp.KERNEL32.dll_AddAtomA]
xor esi, esi
cmp esi, 0x562d05
jne 0x40b994
mov ecx, dword [0x44eff8]
mov dword [0x2b091e0], ecx
cmp eax, 0x3c
jne 0x40b9a2
push 0
call edi
mov eax, dword [0x2b091dc]
inc esi
cmp esi, 0x5f6c74
jl 0x40b980
cmp eax, 0x7c
jne 0x40ba22
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 [0x2b091dc], 0x2d
jne 0x40ba04
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0x44c3f4
push 0x450880
call fcn.00401015
push 0
call fcn.0040118b
mov eax, dword [0x2b091dc]
add esp, 0xc
cmp eax, 0x110a
jne 0x40bac1
mov edx, dword [esp + 0x10]
xor eax, eax
push edx
push eax
mov dword [0x2b090a8], eax
mov dword [0x2b090ac], 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.0040b494
push 0
push 0
call fcn.00401092
push 0
push 0
call fcn.00401196
push 0x44c430
push 0x450880
call fcn.00401158
mov eax, dword [0x2b091dc]
add esp, 0x2c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x2b08efc], eax
cmp dword [0x2b091dc], esi
jbe 0x40bb37
mov edi, dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov ebx, 0x19b0
jmp 0x40baf0
mov edx, dword [0x2b091e0]
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 [0x2b08efc]
mov byte [edx + esi], cl
cmp dword [0x2b091dc], 0x5ab
jne 0x40bb2e
lea eax, [esp + 0x14]
push eax
push 0
call edi
mov dword [0x2b08f00], ebx
inc esi
cmp esi, dword [0x2b091dc]
jb 0x40baf0
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.0040b5f0
call fcn.0040b5d0
call fcn.0040b8c0
call fcn.0040b5c0
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 0x40bb79
cmp ebx, 0xf5bed7
jne 0x40bb82
inc esi
cmp esi, 0x687ed2
jl 0x40bb62
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
mov ebx, 0x1e4165
mov edi, 0x8e46a6f0
jmp 0x40bba0
cmp dword [0x2b091dc], 0x7c4
mov dword [0x2b08f04], edi
jne 0x40bbb8
push 0
push 0
call esi
sub ebx, 1
jne 0x40bba0
mov ecx, dword [esp + 0x83c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401006
add esp, 0x834
ret