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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x57d54c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 4], 0
push ebx
lea ebx, [ecx + 4]
je 0x420858
cmp dword [0x581728], 0
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
jne 0x4206a4
push 0
call edi
push eax
push 0x581728
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x4206a4
mov esi, dword [0x581734]
mov dword [0x58173c], eax
mov dword [0x581738], eax
mov dword [0x581730], eax
test esi, esi
je 0x42069d
nop dword [eax]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4206e8
mov esi, dword [esi + 4]
test esi, esi
jne 0x420680
xor eax, eax
mov dword [0x581724], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ecx, eax
call fcn.0045ca53
call edi
cmp dword [0x581728], eax
jne 0x420851
cmp dword [0x581724], 0
jne 0x420851
test ebx, ebx
je 0x420851
cmp dword [ebx], 0
jne 0x4206f0
mov dword [0x581724], 6
jmp 0x42084b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42069f
push 0x18
call fcn.00502157
mov esi, dword [ebx]
add esp, 4
mov dword [ebp - 0x10], eax
test esi, esi
je 0x42075a
cmp byte [esi], 0xff
jne 0x420720
cmp byte [esi + 1], 0x25
jne 0x420720
mov edi, dword [esi + 2]
mov ecx, esi
mov edx, edi
call fcn.0045c0d4
test al, al
je 0x420720
mov esi, dword [edi]
cmp byte [esi], 0xeb
jne 0x42075a
movsx eax, byte [esi + 1]
add esi, 2
add esi, eax
mov al, byte [esi]
cmp al, 0xff
jne 0x42074e
cmp byte [esi + 1], 0x25
jne 0x42074e
mov edi, dword [esi + 2]
mov ecx, esi
mov edx, edi
call fcn.0045c0d4
test al, al
je 0x42075a
mov esi, dword [edi]
jmp 0x42075a
cmp al, 0xe9
jne 0x42075a
mov eax, dword [esi + 1]
add esi, 5
add esi, eax
mov edi, 0x420870
cmp byte [edi], 0xff
jne 0x420785
mov ecx, 0x420870
cmp byte [ecx + 1], 0x25
jne 0x420785
mov eax, dword [ecx + 2]
mov edx, eax
mov dword [ebp - 8], eax
call fcn.0045c0d4
test al, al
je 0x420785
mov edi, dword [ebp - 8]
mov edi, dword [edi]
cmp byte [edi], 0xeb
jne 0x4207c5
movsx eax, byte [edi + 1]
add edi, 2
add edi, eax
mov al, byte [edi]
cmp al, 0xff
jne 0x4207b9
cmp byte [edi + 1], 0x25
jne 0x4207b9
mov eax, dword [edi + 2]
mov ecx, edi
mov edx, eax
mov dword [ebp - 8], eax
call fcn.0045c0d4
test al, al
je 0x4207c5
mov edi, dword [ebp - 8]
mov edi, dword [edi]
jmp 0x4207c5
cmp al, 0xe9
jne 0x4207c5
mov eax, dword [edi + 1]
add edi, 5
add edi, eax
movzx ecx, byte [esi + 0x36]
mov eax, dword [esi + 0x40]
sub eax, ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x42082b
cmp ecx, 0x1e
ja 0x42082b
cmp dword [esi + 0x44], edi
jne 0x42082b
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push edx
push 0x40
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x420800
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x420839
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov dword [ecx + 0xc], eax
mov dword [ecx + 4], 1
mov dword [ecx + 8], ebx
mov dword [ecx + 0x10], esi
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0x14], eax
mov eax, dword [0x58173c]
mov dword [ecx], eax
mov dword [0x58173c], ecx
jmp 0x420851
cmp dword [0x5816a4], 0
mov eax, 9
jne 0x42083e
mov dword [0x581724], eax
push 0x18
push dword [ebp - 0x10]
call fcn.00502404
add esp, 8
mov dword [0x581730], ebx
call fcn.0045c79e
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov dword [ebx], 0
xor ecx, ebp
pop ebx
call fcn.00501e95
mov esp, ebp
pop ebp
ret