Function at 0x40b970
Capabilities:
Get common file path
Get file attributes
Set current directory
Set uefi variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x423004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x270dedc]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor esi, esi
or ebx, 0xffffffff
cmp eax, 0x8cf
jne 0x40b9b2
push 0
push str.jigafubujulukiwuferidivenewal_pisiyezaxezojewudomujayuwe_kecepupituzisapuginocubew_xedur
lea eax, [ebp - 0x804]
push eax
call edi
mov eax, dword [0x270dedc]
cmp esi, 0x180
jne 0x40b9c9
mov eax, dword [0x425404]
add eax, 0xa231
mov dword [0x270dedc], eax
cmp eax, 0x141
jne 0x40b9e0
mov dword [0x425f08], 0xec58acac
mov dword [0x425f0c], ebx
inc esi
cmp esi, 0x12376ec
jl 0x40b996
mov edi, dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
xor esi, esi
cmp esi, 0x562d05
jne 0x40ba05
mov ecx, dword [0x423ff8]
mov dword [0x270dee0], ecx
cmp eax, 0x3c
jne 0x40ba17
push 0
push 0
push 0
call edi
mov eax, dword [0x270dedc]
inc esi
cmp esi, 0x5f6c74
jl 0x40b9f1
cmp eax, 0x7c
jne 0x40baa3
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_WriteConsoleA]
push 0
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
lea ecx, [ebp - 0x404]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp dword [0x270dedc], 0x2d
jne 0x40ba85
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0x4217ba
push 0x425e80
call fcn.00401015
push 0
call fcn.0040118b
mov eax, dword [0x270dedc]
add esp, 0xc
cmp eax, 0x110a
jne 0x40bb3c
xor eax, eax
mov dword [0x270dda8], eax
mov dword [0x270ddac], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push str.yaruxufujesagufa
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push 0
push 0
lea edx, [ebp - 0x804]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
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 0x4217e0
push 0x425e80
call fcn.00401158
mov eax, dword [0x270dedc]
add esp, 0x2c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x270dbfc], eax
cmp dword [0x270dedc], esi
jbe 0x40bbaa
mov edi, dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
mov ebx, 0x19b0
nop
mov eax, dword [0x270dee0]
mov dword [ebp - 0x808], eax
mov eax, 0xa231
add dword [ebp - 0x808], eax
mov ecx, dword [ebp - 0x808]
mov dl, byte [ecx + esi]
mov eax, dword [0x270dbfc]
mov byte [eax + esi], dl
cmp dword [0x270dedc], 0x5ab
jne 0x40bba1
push 0
push 0
push 0
call edi
mov dword [0x270dc00], ebx
inc esi
cmp esi, dword [0x270dedc]
jb 0x40bb60
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.0040b600
call fcn.0040b5d0
call fcn.0040b930
call fcn.0040b5c0
mov ebx, dword [ebp - 0x82c]
mov edi, dword [sym.imp.KERNEL32.dll_FindAtomA]
xor esi, esi
lea ecx, [ebp - 0x404]
push ecx
call edi
cmp esi, 0x408e
jle 0x40bbf0
cmp ebx, 0xf5bed7
jne 0x40bbf9
inc esi
cmp esi, 0x687ed2
jl 0x40bbd7
mov esi, dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x808], 0x1e4165
mov ebx, 0x8e46a6f0
cmp dword [0x270dedc], 0xcc1
jne 0x40bc30
push 0
push 0
push str.rilatefusizuhamejenimapihiyisu
push str.cubejugumol
call esi
cmp dword [0x270dedc], 0x7c4
mov dword [0x270dc04], ebx
jne 0x40bc44
call edi
sub dword [ebp - 0x808], 1
jne 0x40bc14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401006
mov esp, ebp
pop ebp
ret