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

Disassembly:
sub esp, 0x834
mov eax, dword [0x4a7004]
xor eax, esp
mov dword [esp + 0x830], eax
mov eax, dword [0x2b621dc]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor esi, esi
mov ebp, 0xec58acac
or ebx, 0xffffffff
lea ecx, [ecx]
cmp eax, 0x8cf
jne 0x40b92a
push 0
push str.cehihojurumisefeputekufafurebojo_pijeye_tujayito_gifehatikihorafuyeyemayo
lea eax, [esp + 0x48]
push eax
call edi
mov eax, dword [0x2b621dc]
cmp esi, 0x162
jne 0x40b941
mov eax, dword [0x4a8e14]
add eax, 0xa231
mov dword [0x2b621dc], eax
cmp eax, 0x141
jne 0x40b954
mov dword [0x4a9908], ebp
mov dword [0x4a990c], ebx
inc esi
cmp esi, 0x129916c
jl 0x40b910
mov ebp, dword [sym.imp.KERNEL32.dll_FindAtomA]
xor esi, esi
cmp esi, 0x562d05
jne 0x40b979
mov ecx, dword [0x4a7ff8]
mov dword [0x2b621e0], ecx
cmp eax, 0x3c
jne 0x40b987
push 0
call ebp
mov eax, dword [0x2b621dc]
inc esi
cmp esi, 0x5f6c74
jl 0x40b965
cmp eax, 0x7c
jne 0x40ba07
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0
lea eax, [esp + 0x18]
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 + 0x40]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp dword [0x2b621dc], 0x2d
jne 0x40b9e9
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0x4a5e64
push 0x4a9880
call fcn.00401015
push 0
call fcn.0040118b
mov eax, dword [0x2b621dc]
add esp, 0xc
cmp eax, 0x110a
jne 0x40baa6
mov edx, dword [esp + 0x14]
xor eax, eax
push edx
push eax
mov dword [0x2b620a8], eax
mov dword [0x2b620ac], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
push str.cawaxukuyuberuyonoxabacizipime_tebofutocat
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.nezituzicir
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push 0
push 0
lea eax, [esp + 0x4c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
lea ecx, [esp + 0x18]
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 0x4a5eac
push 0x4a9880
call fcn.00401158
mov eax, dword [0x2b621dc]
add esp, 0x2c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x2b61efc], eax
cmp dword [0x2b621dc], esi
jbe 0x40bb17
mov edi, dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov ebx, 0x19b0
lea esp, [esp]
mov edx, dword [0x2b621e0]
mov dword [esp + 0x10], edx
mov eax, 0xa231
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov cl, byte [eax + esi]
mov edx, dword [0x2b61efc]
mov byte [edx + esi], cl
cmp dword [0x2b621dc], 0x5ab
jne 0x40bb0e
lea eax, [esp + 0x18]
push eax
push 0
call edi
mov dword [0x2b61f00], ebx
inc esi
cmp esi, dword [0x2b621dc]
jb 0x40bad0
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.0040b5f0
call fcn.0040b5d0
call fcn.0040b8a0
call fcn.0040b5c0
mov edi, dword [esp + 0x20]
xor esi, esi
lea esp, [esp]
lea ecx, [esp + 0x40]
push ecx
call ebp
cmp esi, 0x408e
jle 0x40bb57
cmp edi, 0xf5bed7
jne 0x40bb60
inc esi
cmp esi, 0x687ed2
jl 0x40bb40
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
mov ebx, 0x1e4165
mov edi, 0x8e46a6f0
mov ebp, 0x7c4
jmp 0x40bb80
mov dword [0x2b61f04], edi
cmp dword [0x2b621dc], ebp
jne 0x40bb94
push 0
push 0
call esi
sub ebx, 1
jne 0x40bb80
mov ecx, dword [esp + 0x840]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401006
add esp, 0x834
ret