Function at 0x10002330
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ec60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx + 0x14]
xor ecx, ecx
xor esi, esi
cmp edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
je 0x1000265d
mov byte [ebp + 0xb], 1
mov dword [ebp - 4], ecx
cmp esi, 5
jae 0x10002396
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.10001580
mov eax, dword [ebp - 0x1c]
add esp, 8
add esi, eax
add edi, eax
mov dword [ebp - 0x20], esi
xor ecx, ecx
jmp 0x10002376
mov eax, 3
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xfffffffe
jne 0x100023b0
push ecx
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.USER32.dll_SetRect]
cmp esi, 1
jb 0x1000265d
cmp esi, 0x64
ja 0x1000265d
lea edi, [esi + 5]
push edi
call fcn.100119c2
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000265d
call fcn.100115c0
test eax, eax
jl 0x100023f1
cmp eax, 0xfffffff5
jge 0x100023f1
call fcn.10008ec0
call fcn.10008f40
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push ecx
push 0x40
push edi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, edi
mov edi, dword [ebp - 0x14]
mov edx, ecx
mov eax, 0x90909090
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push edi
mov edi, 0xe5780d23
mov edi, 0x27af3ac6
sbb edi, esi
pop edi
mov edi, dword [ebx + 0x14]
mov dword [ebp - 0x24], edi
call fcn.100115c0
test eax, eax
jl 0x1000244b
cmp eax, 0xffffffff
jge 0x1000244b
call fcn.1000ade0
call fcn.1000ae60
call fcn.10008bf0
cmp byte [edi], 0xe9
jne 0x100025b8
push esi
mov dword [ebx + 0x18], esi
call fcn.100119c2
add esp, 4
lea ecx, [ebp - 0x18]
mov dword [ebx + 0x10], eax
push ecx
push 0x40
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebx + 0x10]
mov ecx, esi
mov esi, dword [ebx + 0x14]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x24]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 1]
mov ecx, dword [ebx + 0x14]
lea eax, [eax + ecx + 5]
push edx
xor edx, eax
add edx, eax
add edx, eax
xor edx, eax
mov edx, 0xc553e274
pop edx
mov edx, dword [ebp - 0x14]
push edx
push eax
call fcn.100014d0
add esp, 8
test al, al
jne 0x100024b7
mov byte [ebp + 0xb], al
mov esi, dword [ebp - 0x20]
push edx
mov edx, 0xd5277acf
mov edx, 0xdd256eb9
sbb edx, esp
xor edx, esp
pop edx
mov al, byte [ebp + 0xb]
test al, al
je 0x10002627
mov ecx, dword [ebx + 0x14]
lea eax, [ebp - 0x18]
push eax
push 0x40
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002627
mov edx, dword [ebp - 0x14]
mov edi, dword [ebx + 0x14]
mov ecx, esi
mov dword [ebx + 0xc], edx
mov edx, ecx
mov eax, 0x90909090
shr ecx, 2
mov dword [ebx + 0x18], esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 8]
push eax
push ecx
call fcn.100014d0
mov eax, 0xfffffff2
add esp, 8
cdq
xor eax, edx
sub eax, edx
cmp eax, 5
jne 0x10002536
push 0
call dword [sym.imp.USER32.dll_IsRectEmpty]
push esi
add esi, esp
sbb esi, esi
sbb esi, eax
add esi, edx
pop esi
mov edx, dword [ebx + 0x14]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
call fcn.100115c0
test eax, eax
jl 0x10002565
cmp eax, 0xffffffff
jge 0x10002565
call fcn.1000af80
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x14]
lea eax, [ebp - 0x18]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne al
mov byte [ebp + 0xb], al
push eax
sbb eax, esp
mov eax, 0x7232f3b7
mov eax, 0xd1873ff8
nop
pop eax
test al, al
jne 0x10002633
push ebx
call fcn.100026f0
mov byte [ebp + 0xb], 0
add esp, 4
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.100115c0
test eax, eax
jl 0x100025cb
cmp eax, 0xffffffff
jge 0x100025cb
call fcn.10008e30
mov edi, dword [ebp - 0x14]
mov ecx, esi
mov esi, dword [ebx + 0x14]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.100115c0
test eax, eax
jl 0x100025fe
cmp eax, 0xfffffff5
jge 0x100025fe
call fcn.10008ea0
call fcn.10008ed0
call fcn.1000ade0
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x14]
mov edx, esi
add ecx, esi
add edx, eax
push ecx
push edx
call fcn.100014d0
add esp, 8
test al, al
jne 0x100024ba
mov byte [ebp + 0xb], al
jmp 0x100024ba
lea eax, [ebp - 0x14]
push eax
call fcn.10002670
add esp, 4
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret