Function at 0x1006b0a0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x148
mov eax, dword [0x100e13e0]
xor eax, esp
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x14c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0x103
lea ecx, [esp + 0x4d]
push 0
push ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x30], eax
mov byte [esp + 0x54], 0
call fcn.10072050
mov edx, dword [edi + 0x3c]
mov eax, dword [edx + edi + 0x80]
add esp, 0xc
test eax, eax
je 0x1006b4f6
lea edx, [edi + eax]
mov eax, dword [edx]
test eax, eax
mov dword [esp + 0x28], edx
je 0x1006b4f6
mov ecx, dword [edx + 0x10]
add ecx, edi
mov dword [esp + 0x14], ecx
mov ecx, dword [edx + 0xc]
add eax, edi
add ecx, edi
mov dword [esp + 0x2c], eax
mov edx, ecx
xor eax, eax
neg edx
lea esi, [esp + edx + 0x49]
mov dword [esp + 0x40], esi
lea esi, [esp + edx + 0x4a]
mov dword [esp + 0x44], esi
lea esi, [esp + edx + 0x4b]
lea ebx, [esp + edx + 0x48]
lea edx, [esp + edx + 0x4c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], edx
mov dl, byte [eax + ecx]
test dl, dl
lea esi, [eax + ecx]
je 0x1006b24b
mov byte [esi + ebx], dl
mov dl, byte [eax + ecx + 1]
test dl, dl
je 0x1006b239
mov ebp, dword [esp + 0x40]
mov byte [esi + ebp], dl
mov dl, byte [eax + ecx + 2]
test dl, dl
je 0x1006b23e
mov ebp, dword [esp + 0x44]
mov byte [esi + ebp], dl
mov dl, byte [eax + ecx + 3]
test dl, dl
je 0x1006b243
mov ebp, dword [esp + 0x34]
mov byte [esi + ebp], dl
mov dl, byte [eax + ecx + 4]
test dl, dl
je 0x1006b248
mov ebp, dword [esp + 0x1c]
add eax, 5
cmp eax, 0x104
mov byte [esi + ebp], dl
jb 0x1006b143
mov esi, dword [esp + 0x24]
mov ebp, dword [esi + 4]
lea ecx, [esp + 0x1c]
call fcn.100011d7
cmp dword [esi + 4], ebp
ja 0x1006b1c4
cmp ebp, dword [esi + 8]
jbe 0x1006b1c9
call fcn.1006f2db
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebp
mov ebx, esi
mov edi, dword [ebx + 8]
lea ecx, [esp + 0x14]
call fcn.100011d7
cmp dword [ebx + 4], edi
ja 0x1006b1e9
cmp edi, dword [ebx + 8]
jbe 0x1006b1ee
call fcn.1006f2db
test esi, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
je 0x1006b1fe
cmp esi, ebx
je 0x1006b203
call fcn.1006f2db
cmp ebp, dword [esp + 0x18]
je 0x1006b32f
test esi, esi
jne 0x1006b216
call fcn.1006f2db
cmp ebp, dword [esi + 8]
jb 0x1006b220
call fcn.1006f2db
mov edx, dword [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebp, dword [esi + 8]
jb 0x1006b234
call fcn.1006f2db
add ebp, 4
jmp 0x1006b1d3
add eax, 1
jmp 0x1006b24b
add eax, 2
jmp 0x1006b24b
add eax, 3
jmp 0x1006b24b
add eax, 4
cmp eax, 0x104
jae 0x1006b1aa
mov byte [esp + eax + 0x48], 0
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x1006b281
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x1006b3c2
mov ebx, eax
mov edx, dword [esp + 0x2c]
xor ebp, ebp
cmp dword [edx], ebp
je 0x1006b311
mov eax, edx
xor esi, esi
mov eax, dword [eax]
test eax, eax
jns 0x1006b2a1
and eax, 0xffff
push eax
jmp 0x1006b2aa
mov ecx, dword [esp + 0x3c]
lea edx, [eax + ecx + 2]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
mov dword [esp + 0x30], 0
je 0x1006b460
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push ecx
push 0x40
add esi, eax
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1006b460
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x30]
push edx
push eax
push 4
push esi
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esp + 0x2c]
add ebp, 1
lea esi, [ebp*4]
cmp dword [esi + ecx], 0
lea eax, [esi + ecx]
jne 0x1006b293
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
add eax, 0x14
mov dword [esp + 0x28], eax
mov eax, dword [eax]
test eax, eax
je 0x1006b4f6
mov edx, dword [esp + 0x28]
jmp 0x1006b105
mov esi, dword [ebx + 8]
lea ecx, [esp + 0x14]
call fcn.100011d7
cmp dword [ebx + 4], esi
ja 0x1006b345
cmp esi, dword [ebx + 8]
jbe 0x1006b34a
call fcn.1006f2db
mov dword [esp + 0x18], esi
mov esi, dword [ebx + 4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], ebx
call fcn.100011d7
cmp dword [ebx + 4], esi
ja 0x1006b368
cmp esi, dword [ebx + 8]
jbe 0x1006b36d
call fcn.1006f2db
mov ecx, dword [esp + 0x14]
cmp ebx, ecx
mov eax, ebx
mov edi, esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], eax
je 0x1006b392
call fcn.1006f2db
cmp edi, esi
je 0x1006b3bb
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea ebp, [ecx + edi]
jle 0x1006b3b8
push ecx
push esi
push ecx
push edi
call fcn.1006f460
add esp, 0x10
mov dword [ebx + 8], ebp
xor eax, eax
jmp 0x1006b4fb
mov esi, dword [esp + 0x24]
mov ebp, dword [esi + 4]
lea ecx, [esp + 0x1c]
call fcn.100011d7
cmp dword [esi + 4], ebp
ja 0x1006b3dc
cmp ebp, dword [esi + 8]
jbe 0x1006b3e1
call fcn.1006f2db
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebp
mov ebx, esi
jmp 0x1006b3f0
mov edi, dword [ebx + 8]
lea ecx, [esp + 0x14]
call fcn.100011d7
cmp dword [ebx + 4], edi
ja 0x1006b406
cmp edi, dword [ebx + 8]
jbe 0x1006b40b
call fcn.1006f2db
test esi, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
je 0x1006b41b
cmp esi, ebx
je 0x1006b420
call fcn.1006f2db
cmp ebp, dword [esp + 0x18]
je 0x1006b452
test esi, esi
jne 0x1006b42f
call fcn.1006f2db
cmp ebp, dword [esi + 8]
jb 0x1006b439
call fcn.1006f2db
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebp, dword [esi + 8]
jb 0x1006b44d
call fcn.1006f2db
add ebp, 4
jmp 0x1006b3f0
mov eax, ebx
call fcn.1006ba40
xor eax, eax
jmp 0x1006b4fb
mov ebx, dword [esp + 0x24]
mov ebp, dword [ebx + 4]
lea ecx, [esp + 0x1c]
call fcn.100011d7
cmp dword [ebx + 4], ebp
ja 0x1006b47a
cmp ebp, dword [ebx + 8]
jbe 0x1006b47f
call fcn.1006f2db
mov esi, ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebp
lea esp, [esp]
mov edi, dword [ebx + 8]
lea ecx, [esp + 0x14]
call fcn.100011d7
cmp dword [ebx + 4], edi
ja 0x1006b4a6
cmp edi, dword [ebx + 8]
jbe 0x1006b4ab
call fcn.1006f2db
test esi, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
je 0x1006b4bb
cmp esi, ebx
je 0x1006b4c0
call fcn.1006f2db
cmp ebp, dword [esp + 0x18]
je 0x1006b32f
test esi, esi
jne 0x1006b4d3
call fcn.1006f2db
cmp ebp, dword [esi + 8]
jb 0x1006b4dd
call fcn.1006f2db
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebp, dword [esi + 8]
jb 0x1006b4f1
call fcn.1006f2db
add ebp, 4
jmp 0x1006b490
mov eax, 1
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1006f3d1
add esp, 0x148
ret