Function at 0x10003c87
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 0x10003cff
mov eax, 0
jmp 0x10004629
mov dword [ebp - 0x28], esp
push dword [0x10029a6b]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x10003d24
push 6
call fcn.1000ec7c
add esp, 4
push 1
push 1
lea eax, [ebp - 4]
push eax
call fcn.1000462f
mov dword [ebp - 0xc], eax
mov ebx, dword [0x10029a77]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x10003d57
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10003d6a
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 0x10003e1c
mov ebx, dword [0x10029a77]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x10003da9
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10003dbc
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.10004abd
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 0x10003e3c
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 0x10003ea8
mov ebx, dword [0x10029a77]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x10003e66
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10003e79
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 0x10003f2a
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 [0x10029a77]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x10003ee7
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10003efa
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 0x10003f2a
xor eax, eax
jmp 0x10003f2f
mov eax, 1
test eax, eax
je 0x10003f75
mov dword [ebp - 0x28], esp
push dword [0x10029a6b]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x10003f5c
push 6
call fcn.1000ec7c
add esp, 4
push 1
push dword [ebp - 4]
push 2
call fcn.10004bed
mov eax, 0
jmp 0x10004629
mov ebx, dword [0x10029a77]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x10003f95
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10003fa8
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.10005051
mov dword [ebp - 0x14], eax
mov ebx, dword [0x10029a93]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x10004009
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000401c
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 0x1000403e
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 0x1000435b
mov ebx, dword [0x10029a93]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x1000407e
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10004091
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 0x100040df
push ebx
call fcn.1000ec8e
add esp, 4
pop eax
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov ebx, dword [0x10029a93]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x10004105
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10004118
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.10003442
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 0x1000417e
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 0x10004353
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.10004baf
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
call fcn.10005272
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x10004214
mov dword [ebp - 0x28], esp
push dword [0x10029a6b]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x100041fb
push 6
call fcn.1000ec7c
add esp, 4
push 1
push dword [ebp - 4]
push 3
call fcn.10004bed
mov eax, 0
jmp 0x10004629
push dword [ebp - 0x24]
push 1
push dword [ebp - 0x18]
call fcn.1000578b
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.1000578b
push dword [ebp - 0x20]
push 6
push dword [ebp - 0x18]
call fcn.100037f2
fild dword [ebp - 0x18]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x1002951d]
fstp qword [ebp - 0x34]
fild dword [0x10029ae7]
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.100037f2
mov ebx, dword [0x10029a77]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x100042b6
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100042c9
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 0x1000431a
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 0x1000418a
add esp, 0xc
jmp 0x10004480
mov ebx, dword [0x10029a93]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x1000437b
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000438e
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.10003442
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 0x1000447d
mov ebx, dword [0x10029a77]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x100043e0
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100043f3
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 0x10004444
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 0x100043b2
add esp, 0xc
mov ebx, dword [0x10029a77]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x100044a0
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100044b3
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 0x10004504
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 [0x10029a93]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x10004564
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10004577
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 0x100045a6
push 6
call fcn.1000ec7c
add esp, 4
mov ebx, dword [0x10029a77]
call fcn.100029ac
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x100045c6
push 4
call fcn.1000ec7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100045d9
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 [0x10029a6b]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x10004618
push 6
call fcn.1000ec7c
add esp, 4
cmp dword [ebp - 0x1c], 0
mov eax, 0
setg al
jmp 0x10004629
mov esp, ebp
pop ebp
ret 0x14