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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x101a700f], 0
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 8], ebx
jne 0x100825ae
mov ebx, dword [0x101a703c]
cmp dword [0x102a32b4], ebx
je 0x100825ac
mov esi, dword [0x1029fca8]
test esi, esi
je 0x10082572
inc esi
jmp 0x10082574
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
add ebx, 3
mov dword [ebp - 4], 0
call edi
lea eax, [ebp - 4]
mov dword [esi], ebx
push eax
push dword [ebp - 4]
push 4
push esi
call edi
mov eax, dword [0x101a703c]
mov ebx, dword [ebp - 8]
mov dword [0x102a32b4], eax
jmp 0x100825ae
mov ebx, ecx
mov eax, dword [0x1029f29c]
test eax, eax
je 0x100825c2
mov al, byte [eax + 0x20]
test al, al
jne 0x100827c4
mov eax, dword [0x1029f444]
test al, 1
jne 0x100825e1
mov ecx, dword [0x1029f420]
or eax, 1
mov dword [0x1029f444], eax
mov dword [0x1029f440], ecx
jmp 0x100825e7
mov ecx, dword [0x1029f440]
mov eax, dword [0x101a7080]
test byte [ecx + eax], 0x40
jne 0x100827c4
mov eax, dword [0x102a34dc]
cmp byte [eax + 0x2c], 0
je 0x1008260b
cmp byte [eax + 0x2d], 0
jne 0x10082740
mov ecx, dword [0x102a34e0]
call fcn.1007c3c0
test al, al
jne 0x10082740
mov eax, dword [0x102a34dc]
cmp byte [eax + 0x18], 0
jne 0x10082639
cmp byte [eax + 0x19], 0
je 0x10082639
cmp dword [eax + 0x1c], 0
jle 0x10082740
cmp byte [0x1028ebb0], 0
je 0x10082740
mov ecx, ebx
call fcn.100821f0
mov ecx, dword [0x102a0234]
mov edi, eax
movzx esi, byte [0x1028eb88]
mov eax, dword [0x1029ff14]
test cl, 1
jne 0x10082679
or ecx, 1
mov edx, eax
mov dword [0x102a0234], ecx
mov dword [0x102a0230], edx
jmp 0x1008267f
mov edx, dword [0x102a0230]
test cl, 1
jne 0x10082695
or ecx, 1
mov edx, eax
mov dword [0x102a0234], ecx
mov dword [0x102a0230], edx
mov eax, dword [0x101a7080]
movss xmm0, dword [edx + eax]
movss xmm1, dword [edx + eax + 4]
mov eax, dword [0x1028ebb8]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [0x1017c784]
comiss xmm0, xmm1
seta cl
test al, 1
je 0x100826cc
test cl, cl
jne 0x100826fb
test al, 2
je 0x100826e8
test cl, cl
jne 0x100826e8
mov ecx, dword [0x102a34c4]
call fcn.1009ece0
test al, al
jne 0x100826fb
mov eax, dword [0x1028ebb8]
test al, 4
je 0x100826fd
mov ecx, dword [0x102a34c4]
call fcn.1009ece0
test al, al
jne 0x100826fd
mov esi, edi
mov ecx, dword [0x102a34c4]
call fcn.1009ece0
test al, al
jne 0x10082749
cmp byte [0x1028ebb1], al
je 0x10082749
mov eax, dword [0x1029f224]
lea ecx, [edi + 1]
mov ebx, dword [eax + 0x1c]
mov eax, dword [0x102a32b0]
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
jle 0x1008273c
mov esi, 1
mov dword [0x102a32b0], ebx
jmp 0x10082749
mov esi, edi
jmp 0x10082749
mov ecx, ebx
call fcn.100821f0
mov esi, eax
mov ecx, dword [0x102a34dc]
cmp byte [ecx + 0x2c], 0
je 0x100827a7
cmp byte [ecx + 0x2d], 0
je 0x100827a7
mov bl, 1
mov al, byte [0x101a7015]
cmp byte [ecx + 0x18], 0
jne 0x100827c4
test esi, esi
je 0x100827c4
test bl, bl
jne 0x10082783
test al, al
je 0x10082783
mov ecx, dword [0x102a34e0]
call fcn.1007c3c0
test al, al
je 0x100827c4
mov eax, dword [0x101a7090]
mov byte [eax], 0
mov eax, dword [0x1029f27c]
cmp dword [eax + 0x4d30], esi
jl 0x100827d1
mov eax, dword [0x101a7090]
pop edi
pop esi
pop ebx
mov byte [eax], 1
mov esp, ebp
pop ebp
ret
xor bl, bl
cmp byte [0x1028ebbd], bl
jne 0x1008275d
mov ecx, dword [0x102a34c4]
call fcn.1009e960
mov ecx, dword [0x102a34dc]
jmp 0x10082762
mov eax, dword [0x101a7090]
cmp byte [eax], 0
jne 0x100827d1
mov byte [eax], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret