Function at 0x10007d7f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
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 dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp + 4]
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
jge 0x10007df7
mov eax, 0
jmp 0x10008721
mov dword [ebp - 0x28], esp
push dword [0x10029b1b]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x10007e1c
push 6
call fcn.1000ec7c
add esp, 4
push 1
push 1
lea eax, [ebp - 4]
push eax
call fcn.10008727
mov dword [ebp - 0xc], eax
mov ebx, dword [0x10029b27]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x10007e4f
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10007e62
push 1
call fcn.1000ec7c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x10
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10007f14
mov ebx, dword [0x10029b27]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x10007ea1
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10007eb4
push 1
call fcn.1000ec7c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 0x28], ebx
push 1
push 2
push dword [ebp - 4]
call fcn.100090f0
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [0x1002935d]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
call fcn.100029cc
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
fild dword [ebp + 0xc]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x100294f6]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.100029cc
mov dword [ebp - 0x10], eax
jmp 0x10007f34
fild dword [ebp - 0x10]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x34]
fadd qword [ebp - 0x34]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
call fcn.100029cc
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x14], 0
jne 0x10007fa0
mov ebx, dword [0x10029b27]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x10007f5e
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10007f71
push 1
call fcn.1000ec7c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
fild dword [ebx]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x38]
fsub qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.100029cc
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x14], 0
jle 0x10008022
fild dword [ebp - 0x10]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp + 0x14]
fstp qword [ebp - 0x38]
fadd qword [ebp - 0x38]
fstp qword [ebp - 0x40]
mov ebx, dword [0x10029b27]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x10007fdf
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10007ff2
push 1
call fcn.1000ec7c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 0x44], ebx
mov ebx, dword [ebp - 0x44]
fild dword [ebx]
fstp qword [ebp - 0x4c]
fld qword [ebp - 0x40]
fsub qword [ebp - 0x4c]
fcomp qword [0x100294fe]
fnstsw ax
test ah, 0x41
je 0x10008022
xor eax, eax
jmp 0x10008027
mov eax, 1
test eax, eax
je 0x1000806d
mov dword [ebp - 0x28], esp
push dword [0x10029b1b]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x10008054
push 6
call fcn.1000ec7c
add esp, 4
push 1
push dword [ebp - 4]
push 2
call fcn.10009220
mov eax, 0
jmp 0x10008721
mov ebx, dword [0x10029b27]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x1000808d
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100080a0
push 1
call fcn.1000ec7c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x10
mov dword [ebp - 0x28], ebx
fild dword [ebp - 0x10]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp + 0x14]
fstp qword [ebp - 0x38]
fadd qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.100029cc
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
push 1
push 1
push dword [ebp - 8]
call fcn.10009684
mov dword [ebp - 0x14], eax
mov ebx, dword [0x10029b2b]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x10008101
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10008114
push 1
call fcn.1000ec7c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x28], ebx
push OleUIBusyA
push 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
jne 0x10008136
mov eax, 0x100292d2
push eax
push 1
mov ebx, 0x194
call fcn.10010170
add esp, 0x10
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x10008453
mov ebx, dword [0x10029b2b]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x10008176
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10008189
push 1
call fcn.1000ec7c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x28], ebx
push OleUIBusyA
push 0
push 0x10029506
push 0x80000301
push 0
push dword [ebp + 0x14]
push 2
mov ebx, 0x1c0
call fcn.100101a0
add esp, 0x1c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x28]
mov ebx, dword [ebx]
test ebx, ebx
je 0x100081d7
push ebx
call fcn.1000ec8e
add esp, 4
pop eax
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov ebx, dword [0x10029b2b]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x100081fd
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10008210
push 1
call fcn.1000ec7c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x28]
call fcn.10007d25
mov dword [ebp - 0x18], eax
fild dword [ebp + 0x14]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fmul qword [0x1002951d]
fstp qword [ebp - 0x34]
mov dword [ebp - 0x38], esp
mov eax, 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 0x40
fld qword [ebp - 0x34]
call fcn.100029cc
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x10008276
push 6
call fcn.1000ec7c
add esp, 4
mov eax, dword [ebp + 0x14]
xor ecx, ecx
push eax
lea eax, [ebp - 0x1c]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x1000844b
fild dword [ebp - 0x10]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x34]
fadd qword [ebp - 0x34]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
call fcn.100029cc
push eax
push dword [ebp - 4]
call fcn.100091e2
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
call fcn.10009a8a
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x1000830c
mov dword [ebp - 0x28], esp
push dword [0x10029b1b]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x100082f3
push 6
call fcn.1000ec7c
add esp, 4
push 1
push dword [ebp - 4]
push 3
call fcn.10009220
mov eax, 0
jmp 0x10008721
push dword [ebp - 0x24]
push 1
push dword [ebp - 0x18]
call fcn.10009fa3
fild dword [ebp - 0x24]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fmul qword [0x100294f6]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.100029cc
push eax
push 2
push dword [ebp - 0x18]
call fcn.10009fa3
push dword [ebp - 0x20]
push 6
push dword [ebp - 0x18]
call fcn.10007d4c
fild dword [ebp - 0x18]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x1002951d]
fstp qword [ebp - 0x34]
fild dword [0x10029b1f]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fsub qword [ebp - 0x34]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.100029cc
push eax
push 0xb
push dword [ebp - 0x18]
call fcn.10007d4c
mov ebx, dword [0x10029b27]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x100083ae
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100083c1
push 1
call fcn.1000ec7c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x28]
push 4
mov eax, 2
call fcn.1000efa0
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
mov ebx, dword [ebx]
mov dword [ebp - 0x30], ebx
call fcn.100029ac
mov dword [ebp - 0x34], ecx
mov edi, dword [ebp - 0x30]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x10008412
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x34]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x30]
call fcn.1000ec9a
add esp, 8
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x34]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x2c]
mov dword [edi], eax
add dword [ebp - 0x18], 0xf
pop eax
pop ebx
pop ecx
jmp 0x10008282
add esp, 0xc
jmp 0x10008578
mov ebx, dword [0x10029b2b]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x10008473
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10008486
push 1
call fcn.1000ec7c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x28]
call fcn.10007d25
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
xor ecx, ecx
push eax
lea eax, [ebp - 0x1c]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x10008575
mov ebx, dword [0x10029b27]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x100084d8
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100084eb
push 1
call fcn.1000ec7c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x28]
push 4
mov eax, 2
call fcn.1000efa0
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
mov ebx, dword [ebx]
mov dword [ebp - 0x30], ebx
call fcn.100029ac
mov dword [ebp - 0x34], ecx
mov edi, dword [ebp - 0x30]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x1000853c
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x34]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x30]
call fcn.1000ec9a
add esp, 8
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x34]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x2c]
mov dword [edi], eax
add dword [ebp - 0x18], 0xf
pop eax
pop ebx
pop ecx
jmp 0x100084aa
add esp, 0xc
mov ebx, dword [0x10029b27]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x10008598
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100085ab
push 1
call fcn.1000ec7c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x28]
push 4
mov eax, 2
call fcn.1000efa0
add esp, 8
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
mov ebx, dword [ebx]
mov dword [ebp - 0x30], ebx
call fcn.100029ac
mov dword [ebp - 0x34], ecx
mov edi, dword [ebp - 0x30]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x100085fc
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x34]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x30]
call fcn.1000ec9a
add esp, 8
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov esi, eax
add esi, 8
mov ecx, dword [ebp - 0x34]
mov ebx, ecx
shl ebx, 2
add esi, ebx
sub esi, 4
mov edi, esi
add edi, 4
std
rep movsd dword es:[edi], dword [esi]
mov edi, esi
add edi, 4
cld
mov eax, dword [ebp - 0x2c]
mov dword [edi], eax
mov ebx, dword [0x10029b2b]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x1000865c
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000866f
push 1
call fcn.1000ec7c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x1000869e
push 6
call fcn.1000ec7c
add esp, 4
mov ebx, dword [0x10029b27]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x100086be
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100086d1
push 1
call fcn.1000ec7c
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov ebx, dword [ebx]
call fcn.100015bd
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], esp
push dword [0x10029b1b]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x10008710
push 6
call fcn.1000ec7c
add esp, 4
cmp dword [ebp - 0x1c], 0
mov eax, 0
setg al
jmp 0x10008721
mov esp, ebp
pop ebp
ret 0x14