Function at 0x14010d0
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, 0x14131ec
xor ecx, ecx
call fcn.01401060
test eax, eax
jne 0x140110e
push 0
push 0x1416e60
push str.Err000
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140185d
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 0x1401163
push 0
push 0x1416e60
push str.Err001
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140185d
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 0x14011b7
push 0
push 0x1416e60
push str.Err0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140185d
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
call fcn.014019c0
test eax, eax
jne 0x14011e4
push 0
push 0x1416e60
push str.Err6
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140185d
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 0x1401269
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x40]
jae 0x14012ec
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 0x140129b
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54c], eax
jmp 0x14012bb
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 0x1401260
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 [0x1416e58], eax
cmp dword [0x1416e58], 0
jne 0x1401332
push 0
push 0x1416e60
push str.Err1
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140185d
mov eax, dword [0x1416e58]
sub eax, dword [ebp - 0x108]
mov dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x1000
mov ecx, dword [0x1416e58]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp dword [0x1416e58], eax
je 0x140137f
push 0
push 0x1416e60
push str.Err2
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140185d
mov edx, dword [0x1416e58]
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.01401d90
mov dword [ebp - 0x20], 0
jmp 0x14013c5
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x40]
jae 0x140145c
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 [0x1416e58]
add edx, dword [ecx + eax + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1401422
push 0
push 0x1416e60
push str.Err3
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140185d
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 [0x1416e58]
add esi, dword [ecx + eax + 8]
mov ecx, esi
call fcn.01401d90
jmp 0x14013bc
mov dword [ebp - 0x20], 0
jmp 0x140146e
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x38]
jae 0x140172e
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 [0x1416e58]
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.01401d00
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.01401c60
sub eax, 1
mov dword [ebp - 0x148], eax
jmp 0x1401517
mov edx, dword [ebp - 0x148]
sub edx, 1
mov dword [ebp - 0x148], edx
cmp dword [ebp - 0x148], 0
jle 0x1401537
mov eax, dword [ebp - 0x148]
movsx ecx, byte [ebp + eax - 0x534]
cmp ecx, 0x2e
jne 0x1401535
jmp 0x1401537
jmp 0x1401508
cmp dword [ebp - 0x148], 0
jne 0x140155e
push 0
push 0x1416e60
push str.Err4
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140185d
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 0x14015aa
lea edx, [ebp - 0x534]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jne 0x14015d3
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 0x140185d
mov edx, str.GetModuleFileNameA
mov ecx, dword [ebp - 0x148]
lea ecx, [ebp + ecx - 0x534]
call fcn.01401b30
test eax, eax
je 0x14015ff
mov edx, dword [ebp - 0x538]
mov dword [edx], section..text
jmp 0x1401729
mov edx, str.GetModuleFileNameW
mov eax, dword [ebp - 0x148]
lea ecx, [ebp + eax - 0x534]
call fcn.01401b30
test eax, eax
je 0x140162b
mov ecx, dword [ebp - 0x538]
mov dword [ecx], 0x1401030
jmp 0x1401729
cmp dword [ebp - 0x540], 0
je 0x1401654
lea edx, [ebp - 0x53c]
push edx
mov edx, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x540]
call fcn.01402080
mov dword [ebp - 0x140], eax
jmp 0x1401679
lea eax, [ebp - 0x53c]
push eax
mov edx, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
lea ecx, [ebp + ecx - 0x534]
call fcn.01401e30
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x53c], 0
je 0x14016e2
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 0x144]
add eax, 1
mov dword [ebp - 0x144], eax
cmp edx, 0x64
jbe 0x14016ba
push 0
push 0x1416e60
push str.Err5
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140185d
mov ecx, dword [ebp - 0x140]
mov edx, dword [ecx]
add edx, dword [ebp - 0x14c]
lea ecx, [ebp - 0x534]
call fcn.01401d00
mov dword [ebp - 0x540], 0
jmp 0x14014e8
cmp dword [ebp - 0x140], 0
jne 0x1401713
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 0x140185d
mov ecx, dword [ebp - 0x140]
mov edx, dword [ecx]
add edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x538]
mov dword [eax], edx
jmp 0x1401465
mov dword [ebp - 0x20], 0
jmp 0x1401740
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x40]
jae 0x1401810
mov edx, str.mycol
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x18
mov ecx, dword [ebp - 0x44]
add ecx, eax
call fcn.01401b30
test eax, eax
je 0x140180b
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 [0x1416e58]
add ecx, dword [eax + edx + 8]
mov dword [0x1416e5c], ecx
mov dword [ebp - 0xc], 0
jmp 0x14017b9
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x544]
jae 0x1401809
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x1416e5c]
mov eax, dword [edx + ecx*4]
add eax, dword [0x1416e58]
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x1416e5c]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x1416e5c]
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 0x14017b0
jmp 0x1401810
jmp 0x1401737
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x40]
jne 0x1401833
push 0
push 0x1416e60
push str.Err7
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140185d
push 0x8000
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [0x1416e58]
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