Function at 0x418510
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5320e5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x57d54c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.004191e0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
push 0x560b14
push str.kernel32.dll
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 4], eax
lea ecx, [esi + 4]
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x4185fd
cmp dword [0x581728], 0
jne 0x4185e0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x581728
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x4185e0
mov esi, dword [0x581734]
mov dword [0x58173c], eax
mov dword [0x581738], eax
mov dword [0x581730], eax
test esi, esi
je 0x4185d3
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x41870c
mov esi, dword [esi + 4]
test esi, esi
jne 0x4185b6
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x581724], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ecx, eax
call fcn.0045ca53
mov ecx, dword [ebp - 0x18]
sub esp, 0xc
call fcn.0045cabc
call fcn.0045c79e
push 3
call fcn.004c64a0
add esp, 4
call fcn.00419000
push 0
mov dword [0x581670], 3
call edi
push eax
call fcn.0047ed20
push 0x1908
call fcn.00502157
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
push 0x1908
push 0
push esi
call fcn.00504c70
add esp, 0xc
mov dword [esi], vtable.CDownloadAppUI.0
lea ecx, [esi + 0x28]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.004318a0
mov byte [ebp - 4], 1
lea eax, [esi + 0x1538]
push 0x3bc
push 0
push eax
mov dword [esi + 0x18f4], 0
mov dword [esi + 0x18f8], 0
mov dword [esi + 0x18fc], 0
mov dword [esi + 0x1900], 0
mov dword [esi + 0x1904], 0
mov dword [0x581720], esi
call fcn.00504c70
add esp, 0xc
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
mov dword [ebx + 0xc], esi
call fcn.004449f0
test eax, eax
jne 0x418717
jmp 0x4187c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4185d5
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + 0x18]
lea eax, [ebp - 0x30]
push eax
call fcn.00418a80
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x418735
mov eax, dword [eax]
push eax
push 0x400
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx + 8], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x418789
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41877f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4187e3
push edx
push ecx
call fcn.00502404
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1c], 7
test eax, eax
je 0x4187c2
push 0x400
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push eax
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00501e95
mov esp, ebp
pop ebp
ret
call fcn.00509bb8
int3