Function at 0x10002180
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100250c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
push edi
nop dword [eax]
push 0x10020394
call esi
mov ebx, eax
test ebx, ebx
je 0x100021a0
mov edi, ebx
xor esi, esi
sub edi, str.xx____xx____xx
mov dword [ebp - 0xc], edi
nop word [eax + eax]
lea eax, [esi + ebx]
mov edx, 0x100203b0
mov dword [ebp - 8], eax
mov cl, 0x78
mov eax, str.xx____xx____xx
add edi, esi
cmp cl, 0x78
jne 0x100021e4
mov cl, byte [edi + eax]
cmp cl, byte [edx]
jne 0x1000235f
mov cl, byte [eax + 1]
inc eax
inc edx
test cl, cl
jne 0x100021d4
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 2]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.D3DXCreateFontA
push str.d3dx9_38.dll
mov eax, dword [ecx + 0xa8]
mov dword [0x1003e678], eax
mov eax, dword [ecx + 0xc]
mov dword [0x1003e688], eax
mov eax, dword [ecx + 0x1c]
mov dword [0x1003e68c], eax
mov eax, dword [ecx + 0xe4]
mov dword [0x1003e67c], eax
mov eax, dword [ecx + 0x164]
mov dword [0x1003e680], eax
mov eax, dword [ecx + 0xc0]
mov dword [0x1003e684], eax
mov eax, dword [ecx + 0x68]
mov dword [0x1003e694], eax
mov eax, dword [ecx + 0x148]
mov dword [0x1003e698], eax
mov eax, dword [ecx + 0x40]
mov dword [0x1003e69c], eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov dword [0x1003e5b4], eax
add eax, 5
push str.D3DXCreateLine
push str.d3dx9_38.dll
mov dword [0x1003e6bc], eax
call ebx
push eax
call esi
mov dword [0x11dd2764], eax
add eax, 5
push 0x100203f0
push str.user32.dll
mov dword [0x1003e6cc], eax
call ebx
push eax
call esi
mov dword [0x1003e258], eax
add eax, 5
push 0x10020410
push str.user32.dll
mov dword [0x1003e5cc], eax
call ebx
push eax
call esi
mov dword [0x11dd2a70], eax
add eax, 5
push 0x1002041c
push str.user32.dll
mov dword [0x1003e168], eax
call ebx
push eax
call esi
mov dword [0x11dd2720], eax
add eax, 5
push str.D3DXCreateTexture
push str.d3dx9_38.dll
mov dword [0x1003e1fc], eax
call ebx
push eax
call esi
mov dword [0x1003e604], eax
add eax, 5
push str.GetModuleInformation
push str.kernelbase.dll
mov dword [0x1003dfb0], eax
call ebx
push eax
call esi
mov esi, eax
pop edi
pop ebx
mov al, byte [esi]
cmp al, 0x6a
je 0x10002376
cmp al, 0x55
je 0x10002376
lea eax, [ebp - 8]
push eax
push 0x40
push 0xa
push 0x11dd29fc
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi]
mov dword [0x11dd29fc], eax
mov al, byte [esi + 4]
sub esi, 0x11dd2a01
mov dword [0x11dd2a02], esi
mov byte [0x11dd2a00], al
mov byte [0x11dd2a01], 0xe9
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001c7f5
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0xc]
inc esi
cmp esi, 0x128000
jb 0x100021c0
xor ecx, ecx
jmp 0x100021f0
lea eax, [ebp - 8]
push eax
push 0x40
push 0xc
push 0x11dd29fc
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
mov dword [0x11dd29fc], eax
xor ecx, ebp
mov ax, word [esi + 4]
mov word [0x11dd2a00], ax
mov al, byte [esi + 6]
sub esi, 0x11dd2a03
add esi, 2
mov byte [0x11dd2a02], al
mov dword [0x11dd2a04], esi
mov byte [0x11dd2a03], 0xe9
pop esi
call fcn.1001c7f5
mov esp, ebp
pop ebp
ret