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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x57c54c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 4], 0
push ebx
lea ebx, [ecx + 4]
je 0x41fed8
cmp dword [0x5806b4], 0
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
jne 0x41fd24
push 0
call edi
push eax
push 0x5806b4
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x41fd24
mov esi, dword [0x5806c0]
mov dword [0x5806c8], eax
mov dword [0x5806c4], eax
mov dword [0x5806bc], eax
test esi, esi
je 0x41fd1d
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 0x41fd68
mov esi, dword [esi + 4]
test esi, esi
jne 0x41fd00
xor eax, eax
mov dword [0x5806b0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ecx, eax
call fcn.004598a3
call edi
cmp dword [0x5806b4], eax
jne 0x41fed1
cmp dword [0x5806b0], 0
jne 0x41fed1
test ebx, ebx
je 0x41fed1
cmp dword [ebx], 0
jne 0x41fd70
mov dword [0x5806b0], 6
jmp 0x41fecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41fd1f
push 0x18
call fcn.00500e07
mov esi, dword [ebx]
add esp, 4
mov dword [ebp - 0x10], eax
test esi, esi
je 0x41fdda
cmp byte [esi], 0xff
jne 0x41fda0
cmp byte [esi + 1], 0x25
jne 0x41fda0
mov edi, dword [esi + 2]
mov ecx, esi
mov edx, edi
call fcn.00458f24
test al, al
je 0x41fda0
mov esi, dword [edi]
cmp byte [esi], 0xeb
jne 0x41fdda
movsx eax, byte [esi + 1]
add esi, 2
add esi, eax
mov al, byte [esi]
cmp al, 0xff
jne 0x41fdce
cmp byte [esi + 1], 0x25
jne 0x41fdce
mov edi, dword [esi + 2]
mov ecx, esi
mov edx, edi
call fcn.00458f24
test al, al
je 0x41fdda
mov esi, dword [edi]
jmp 0x41fdda
cmp al, 0xe9
jne 0x41fdda
mov eax, dword [esi + 1]
add esi, 5
add esi, eax
mov edi, 0x41fef0
cmp byte [edi], 0xff
jne 0x41fe05
mov ecx, 0x41fef0
cmp byte [ecx + 1], 0x25
jne 0x41fe05
mov eax, dword [ecx + 2]
mov edx, eax
mov dword [ebp - 8], eax
call fcn.00458f24
test al, al
je 0x41fe05
mov edi, dword [ebp - 8]
mov edi, dword [edi]
cmp byte [edi], 0xeb
jne 0x41fe45
movsx eax, byte [edi + 1]
add edi, 2
add edi, eax
mov al, byte [edi]
cmp al, 0xff
jne 0x41fe39
cmp byte [edi + 1], 0x25
jne 0x41fe39
mov eax, dword [edi + 2]
mov ecx, edi
mov edx, eax
mov dword [ebp - 8], eax
call fcn.00458f24
test al, al
je 0x41fe45
mov edi, dword [ebp - 8]
mov edi, dword [edi]
jmp 0x41fe45
cmp al, 0xe9
jne 0x41fe45
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 0x41feab
cmp ecx, 0x1e
ja 0x41feab
cmp dword [esi + 0x44], edi
jne 0x41feab
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 0x41fe80
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41feb9
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 [0x5806c8]
mov dword [ecx], eax
mov dword [0x5806c8], ecx
jmp 0x41fed1
cmp dword [0x58062c], 0
mov eax, 9
jne 0x41febe
mov dword [0x5806b0], eax
push 0x18
push dword [ebp - 0x10]
call fcn.005010b4
add esp, 8
mov dword [0x5806bc], ebx
call fcn.004595ee
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov dword [ebx], 0
xor ecx, ebp
pop ebx
call fcn.00500b45
mov esp, ebp
pop ebp
ret