Function at 0x1003b090
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100970f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x88
movups xmm0, xmmword [0x1002ec20]
mov al, byte [0x1002ec60]
push esi
movups xmmword [ebp - 0x98], xmm0
push edi
movups xmm0, xmmword [0x1002ec30]
mov byte [ebp - 0x58], al
mov eax, dword [0x10023578]
movups xmmword [ebp - 0x88], xmm0
push 0x40
movups xmm0, xmmword [0x1002ec40]
push 0x3000
add eax, eax
movups xmmword [ebp - 0x78], xmm0
push eax
movups xmm0, xmmword [0x1002ec50]
push 0
movups xmmword [ebp - 0x68], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
xor edi, edi
mov eax, dword [0x10023578]
xor esi, esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x20], edi
test eax, eax
je 0x1003b39b
lea ecx, [edx + 2]
mov dword [ebp - 0x30], ecx
dec eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 8]
mov al, byte [eax]
mov byte [ebp - 0x15], al
cmp al, 0x3d
je 0x1003b30d
movzx eax, al
push eax
call fcn.1007e260
add esp, 4
test eax, eax
jne 0x1003b167
mov al, byte [ebp - 0x15]
cmp al, 0x2b
je 0x1003b167
cmp al, 0x2f
jne 0x1003b38d
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
push 0xd
mov dword [ebp - 0x50], 0
push 0x1002ec64
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
call fcn.1003ae40
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push eax
push 0
lea ecx, [ebp - 0x2c]
call fcn.1003b620
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x1003b1f5
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003b1eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003b3b9
push edx
push ecx
call fcn.10079b22
add esp, 8
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
push ecx
mov ecx, edi
call fcn.1003b800
mov ecx, dword [ebx + 8]
add esp, 4
mov dword [ebp - 0x28], edi
mov al, byte [ecx]
inc ecx
mov byte [ebp + esi - 0x14], al
inc esi
mov dword [ebx + 8], ecx
cmp esi, 4
jne 0x1003b291
xor esi, esi
nop
movsx eax, byte [ebp + esi - 0x14]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.1007b110
lea ecx, [ebp - 0x98]
add esp, 8
sub al, cl
mov byte [ebp + esi - 0x14], al
inc esi
cmp esi, 4
jl 0x1003b220
mov eax, dword [ebp - 0x14]
mov ch, ah
mov dl, byte [ebp - 0x12]
mov cl, al
add dword [ebp - 0x20], 3
mov al, ah
shl cl, 2
shr ch, 4
and ch, 3
shl al, 4
add ch, cl
mov cl, dl
shr cl, 2
and cl, 0xf
shl dl, 6
add dl, byte [ebp - 0x11]
add cl, al
mov eax, dword [ebp - 0x30]
mov byte [ebp - 0x1c], ch
mov byte [ebp - 0x1b], cl
mov byte [ebp - 0x1a], dl
mov byte [eax - 2], ch
mov byte [eax - 1], cl
mov byte [eax], dl
add eax, 3
mov dword [ebp - 0x30], eax
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1003b302
push ecx
mov edx, edi
mov ecx, edi
call fcn.1003b800
mov ecx, dword [ebp - 0x24]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 4
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x1003b2e3
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003b3b9
push ecx
push edi
call fcn.10079b22
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x1003b134
test esi, esi
je 0x1003b398
xor edi, edi
test esi, esi
jle 0x1003b346
nop dword [eax + eax]
movsx eax, byte [ebp + edi - 0x14]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.1007b110
lea ecx, [ebp - 0x98]
add esp, 8
sub al, cl
mov byte [ebp + edi - 0x14], al
inc edi
cmp edi, esi
jl 0x1003b320
mov eax, dword [ebp - 0x14]
dec esi
mov edi, dword [ebp - 0x20]
mov dl, ah
shr dl, 4
mov cl, al
shl cl, 2
and dl, 3
add dl, cl
mov al, ah
mov cl, byte [ebp - 0x12]
shr cl, 2
and cl, 0xf
shl al, 4
add cl, al
mov byte [ebp - 0x1c], dl
mov byte [ebp - 0x1b], cl
test esi, esi
jle 0x1003b39b
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
push esi
add eax, edi
push ecx
push eax
call fcn.1007b2d0
add esp, 0xc
add edi, esi
jmp 0x1003b39b
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x1003b30d
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x34]
mov dword [0x10023578], edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.1007e1df
int3