Function at 0x14010a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54c
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
push eax
mov edx, 0x14111ec
xor ecx, ecx
call fcn.01401060
test eax, eax
jne 0x14010de
push 0
push 0x1414250
push str.Err000
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140182d
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x74]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
lea eax, [eax + edx + 0x83]
mov dword [ebp - 0x14], eax
push 0x40
push 0x1000
mov ecx, dword [ebp - 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1401133
push 0
push 0x1414250
push str.Err001
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140182d
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x40
push 0x1000
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x70]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1401187
push 0
push 0x1414250
push str.Err0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140182d
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
call fcn.01401930
test eax, eax
jne 0x14011b4
push 0
push 0x1414250
push str.Err6
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140182d
push 0x8000
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0
mov ecx, 0x42
mov esi, dword [ebp - 0x18]
lea edi, [ebp - 0x13c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x18]
add eax, 0x108
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x40]
imul edx, edx, 0x18
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x38]
imul edx, edx, 0x107
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0
jmp 0x1401239
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x40]
jae 0x14012bc
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x18
mov ecx, dword [ebp - 0x20]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + eax + 8]
mov edx, dword [ebp - 0x44]
add eax, dword [edx + ecx + 0xc]
cmp dword [ebp - 0x2c], eax
jbe 0x140126b
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54c], eax
jmp 0x140128b
mov ecx, dword [ebp - 0x20]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0x20]
imul edx, edx, 0x18
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + ecx + 8]
mov eax, dword [ebp - 0x44]
add ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0x54c], ecx
mov ecx, dword [ebp - 0x54c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x20]
imul edx, edx, 0x18
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov dword [eax + edx + 0x10], ecx
mov edx, dword [ebp - 0x20]
imul edx, edx, 0x18
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax + edx + 0x14]
mov dword [ebp - 0x18], ecx
jmp 0x1401230
mov dword [ebp - 0x28], 0
push 0x40
push 0x2000
mov edx, dword [ebp - 0x2c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1414248], eax
cmp dword [0x1414248], 0
jne 0x1401302
push 0
push 0x1414250
push str.Err1
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140182d
mov eax, dword [0x1414248]
sub eax, dword [ebp - 0x108]
mov dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x1000
mov ecx, dword [0x1414248]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp dword [0x1414248], eax
je 0x140134f
push 0
push 0x1414250
push str.Err2
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140182d
mov edx, dword [0x1414248]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov word [eax], 0x5a4d
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x3c], 0x100
push 0xf8
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
call fcn.01401be0
mov dword [ebp - 0x20], 0
jmp 0x1401395
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x40]
jae 0x140142c
push 0x40
push 0x1000
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x18
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + eax + 0xc]
push edx
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x18
mov ecx, dword [ebp - 0x44]
mov edx, dword [0x1414248]
add edx, dword [ecx + eax + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x14013f2
push 0
push 0x1414250
push str.Err3
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140182d
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x18
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + eax + 0x14]
push edx
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x18
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + eax + 0x10]
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x18
mov ecx, dword [ebp - 0x44]
mov esi, dword [0x1414248]
add esi, dword [ecx + eax + 8]
mov ecx, esi
call fcn.01401be0
jmp 0x140138c
mov dword [ebp - 0x20], 0
jmp 0x140143e
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x38]
jae 0x14016fe
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x540], 0
mov ecx, dword [ebp - 0x20]
imul ecx, ecx, 0x107
mov edx, dword [ebp - 0x3c]
mov eax, dword [0x1414248]
add eax, dword [edx + ecx + 0xff]
mov dword [ebp - 0x538], eax
mov ecx, dword [ebp - 0x20]
imul ecx, ecx, 0x107
mov edx, dword [ebp - 0x3c]
add edx, ecx
lea ecx, [ebp - 0x534]
call fcn.01401b80
mov edx, dword [ebp - 0x20]
imul edx, edx, 0x107
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + edx + 0x103]
mov dword [ebp - 0x540], ecx
mov dword [ebp - 0x53c], 0
lea ecx, [ebp - 0x534]
call fcn.01401b00
sub eax, 1
mov dword [ebp - 0x148], eax
jmp 0x14014e7
mov edx, dword [ebp - 0x148]
sub edx, 1
mov dword [ebp - 0x148], edx
cmp dword [ebp - 0x148], 0
jle 0x1401507
mov eax, dword [ebp - 0x148]
movsx ecx, byte [ebp + eax - 0x534]
cmp ecx, 0x2e
jne 0x1401505
jmp 0x1401507
jmp 0x14014d8
cmp dword [ebp - 0x148], 0
jne 0x140152e
push 0
push 0x1414250
push str.Err4
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140182d
mov edx, dword [ebp - 0x148]
mov byte [ebp + edx - 0x534], 0
mov eax, dword [ebp - 0x148]
add eax, 1
mov dword [ebp - 0x148], eax
lea ecx, [ebp - 0x534]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jne 0x140157a
lea edx, [ebp - 0x534]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jne 0x14015a3
push 0
push str.Cant_load_library
lea eax, [ebp - 0x534]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140182d
mov edx, str.GetModuleFileNameA
mov ecx, dword [ebp - 0x148]
lea ecx, [ebp + ecx - 0x534]
call fcn.01401a40
test eax, eax
je 0x14015cf
mov edx, dword [ebp - 0x538]
mov dword [edx], section..text
jmp 0x14016f9
mov edx, str.GetModuleFileNameW
mov eax, dword [ebp - 0x148]
lea ecx, [ebp + eax - 0x534]
call fcn.01401a40
test eax, eax
je 0x14015fb
mov ecx, dword [ebp - 0x538]
mov dword [ecx], 0x1401030
jmp 0x14016f9
cmp dword [ebp - 0x540], 0
je 0x1401624
lea edx, [ebp - 0x53c]
push edx
mov edx, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x540]
call fcn.01401d80
mov dword [ebp - 0x140], eax
jmp 0x1401649
lea eax, [ebp - 0x53c]
push eax
mov edx, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
lea ecx, [ebp + ecx - 0x534]
call fcn.01401c50
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x53c], 0
je 0x14016b2
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 0x144]
add eax, 1
mov dword [ebp - 0x144], eax
cmp edx, 0x64
jbe 0x140168a
push 0
push 0x1414250
push str.Err5
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140182d
mov ecx, dword [ebp - 0x140]
mov edx, dword [ecx]
add edx, dword [ebp - 0x14c]
lea ecx, [ebp - 0x534]
call fcn.01401b80
mov dword [ebp - 0x540], 0
jmp 0x14014b8
cmp dword [ebp - 0x140], 0
jne 0x14016e3
push 0
push str.Cant_load_function_from_library
mov edx, dword [ebp - 0x20]
imul edx, edx, 0x107
mov eax, dword [ebp - 0x3c]
add eax, edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140182d
mov ecx, dword [ebp - 0x140]
mov edx, dword [ecx]
add edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x538]
mov dword [eax], edx
jmp 0x1401435
mov dword [ebp - 0x20], 0
jmp 0x1401710
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x40]
jae 0x14017e0
mov edx, str.mycol
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x18
mov ecx, dword [ebp - 0x44]
add ecx, eax
call fcn.01401a40
test eax, eax
je 0x14017db
mov ecx, dword [ebp - 0x20]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + ecx + 0x14]
shr eax, 2
mov dword [ebp - 0x544], eax
mov ecx, dword [ebp - 0x544]
sub ecx, 1
mov dword [ebp - 0x544], ecx
mov edx, dword [ebp - 0x20]
imul edx, edx, 0x18
mov eax, dword [ebp - 0x44]
mov ecx, dword [0x1414248]
add ecx, dword [eax + edx + 8]
mov dword [0x141424c], ecx
mov dword [ebp - 0xc], 0
jmp 0x1401789
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x544]
jae 0x14017d9
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x141424c]
mov eax, dword [edx + ecx*4]
add eax, dword [0x1414248]
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x141424c]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x141424c]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x548], edx
mov eax, dword [ebp - 0x548]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x548]
mov dword [edx], ecx
jmp 0x1401780
jmp 0x14017e0
jmp 0x1401707
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x40]
jne 0x1401803
push 0
push 0x1414250
push str.Err7
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140182d
push 0x8000
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [0x1414248]
add edx, dword [ebp - 0x114]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
jmp eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10