Function at 0x401190
Capabilities:
Allocate or change rwx memory
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x820
mov ecx, 0x80
xor eax, eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x30]
mov esi, 2
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x630]
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x430]
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x230]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x838]
cmp eax, esi
jne 0x4013f8
mov ebp, 1
mov ecx, 0xbd804a75
xor edi, edi
mov eax, 0xbd801beb
mov dword [esp + 0x30], 0x47a78b
mov dword [esp + 0x34], 0x47aac7
mov dword [esp + 0x38], 0x47afb1
mov dword [esp + 0x3c], 0x47b2e4
mov dword [esp + 0x40], 0x47b7c8
mov dword [esp + 0x44], 0x47baf8
mov dword [esp + 0x48], 0x47bf27
mov dword [esp + 0x4c], 0x47c263
mov dword [esp + 0x50], 0x47c9f3
mov dword [esp + 0x54], 0x47d1ed
mov dword [esp + 0x58], 0x449e3b
mov dword [esp + 0x5c], 0x44afeb
mov dword [esp + 0x60], 0x44b329
mov dword [esp + 0x64], 0x44bea1
mov dword [esp + 0x68], 0x44c1e8
mov dword [esp + 0x6c], 0x44c618
mov dword [esp + 0x70], 0x44c95f
mov dword [esp + 0x630], esi
mov dword [esp + 0x634], esi
mov dword [esp + 0x638], esi
mov dword [esp + 0x63c], esi
mov dword [esp + 0x640], esi
mov dword [esp + 0x644], esi
mov dword [esp + 0x648], esi
mov dword [esp + 0x64c], esi
mov dword [esp + 0x650], esi
mov dword [esp + 0x654], esi
mov dword [esp + 0x658], esi
mov dword [esp + 0x65c], esi
mov dword [esp + 0x660], esi
mov dword [esp + 0x664], esi
mov dword [esp + 0x668], esi
mov dword [esp + 0x66c], esi
mov dword [esp + 0x670], esi
mov dword [esp + 0x430], ebp
mov dword [esp + 0x434], ebp
mov dword [esp + 0x438], ebp
mov dword [esp + 0x43c], ebp
mov dword [esp + 0x440], ebp
mov dword [esp + 0x444], ebp
mov dword [esp + 0x448], ebp
mov dword [esp + 0x44c], ebp
mov dword [esp + 0x450], ecx
mov dword [esp + 0x454], ecx
mov dword [esp + 0x458], 0x7b831d75
mov dword [esp + 0x45c], ebp
mov dword [esp + 0x460], ebp
mov dword [esp + 0x464], ebp
mov dword [esp + 0x468], ebp
mov dword [esp + 0x46c], ebp
mov dword [esp + 0x470], ebp
mov dword [esp + 0x230], edi
mov dword [esp + 0x234], edi
mov dword [esp + 0x238], edi
mov dword [esp + 0x23c], edi
mov dword [esp + 0x240], edi
mov dword [esp + 0x244], edi
mov dword [esp + 0x248], edi
mov dword [esp + 0x24c], edi
mov dword [esp + 0x250], eax
mov dword [esp + 0x254], eax
mov dword [esp + 0x258], 0x7b839090
mov dword [esp + 0x25c], edi
mov dword [esp + 0x260], edi
mov dword [esp + 0x264], edi
mov dword [esp + 0x268], edi
mov dword [esp + 0x26c], edi
mov dword [esp + 0x270], edi
mov dword [esp + 0x18], 0x11
jmp 0x401c13
cmp eax, 3
jne 0x401d82
mov eax, 0xbd801beb
mov ebp, 1
mov dword [esp + 0x250], eax
mov dword [esp + 0x254], eax
xor edi, edi
mov ecx, 0xbd804a75
mov eax, 4
mov dword [esp + 0x30], 0x478e4b
mov dword [esp + 0x630], esi
mov dword [esp + 0x430], ebp
mov dword [esp + 0x230], edi
mov dword [esp + 0x34], 0x479187
mov dword [esp + 0x634], esi
mov dword [esp + 0x434], ebp
mov dword [esp + 0x234], edi
mov dword [esp + 0x38], 0x479671
mov dword [esp + 0x638], esi
mov dword [esp + 0x438], ebp
mov dword [esp + 0x238], edi
mov dword [esp + 0x3c], 0x4799a4
mov dword [esp + 0x63c], esi
mov dword [esp + 0x43c], ebp
mov dword [esp + 0x23c], edi
mov dword [esp + 0x40], 0x479e88
mov dword [esp + 0x640], esi
mov dword [esp + 0x440], ebp
mov dword [esp + 0x240], edi
mov dword [esp + 0x44], 0x47a1b8
mov dword [esp + 0x644], esi
mov dword [esp + 0x444], ebp
mov dword [esp + 0x244], edi
mov dword [esp + 0x48], 0x47a5e7
mov dword [esp + 0x648], esi
mov dword [esp + 0x448], ebp
mov dword [esp + 0x248], edi
mov dword [esp + 0x4c], 0x47a923
mov dword [esp + 0x64c], esi
mov dword [esp + 0x44c], ebp
mov dword [esp + 0x24c], edi
mov dword [esp + 0x50], 0x47b0b3
mov dword [esp + 0x650], esi
mov dword [esp + 0x450], ecx
mov dword [esp + 0x54], 0x47b8ad
mov dword [esp + 0x654], esi
mov dword [esp + 0x454], ecx
mov dword [esp + 0x58], 0x4484fb
mov dword [esp + 0x658], esi
mov dword [esp + 0x458], 0x7b831d75
mov dword [esp + 0x258], 0x7b839090
mov dword [esp + 0x5c], 0x4496ab
mov dword [esp + 0x65c], esi
mov dword [esp + 0x45c], ebp
mov dword [esp + 0x25c], edi
mov dword [esp + 0x60], 0x4499e9
mov dword [esp + 0x660], esi
mov dword [esp + 0x260], edi
mov dword [esp + 0x460], ebp
mov dword [esp + 0x64], 0x44a561
mov dword [esp + 0x664], esi
mov dword [esp + 0x464], ebp
mov dword [esp + 0x264], edi
mov dword [esp + 0x68], 0x44a8a8
mov dword [esp + 0x668], esi
mov dword [esp + 0x468], ebp
mov dword [esp + 0x268], edi
mov dword [esp + 0x6c], 0x44acd8
mov dword [esp + 0x66c], esi
mov dword [esp + 0x46c], ebp
mov dword [esp + 0x26c], edi
mov dword [esp + 0x70], 0x44b01f
mov dword [esp + 0x670], esi
mov dword [esp + 0x470], ebp
mov dword [esp + 0x270], edi
mov dword [esp + 0x74], 0x46992a
mov dword [esp + 0x674], eax
mov dword [esp + 0x474], 0x9c8e0f
mov dword [esp + 0x274], 0x9de9
mov dword [esp + 0x78], 0x46992e
mov dword [esp + 0x678], eax
mov dword [esp + 0x478], 0x158b0000
mov dword [esp + 0x278], 0x158b9000
mov ebx, 0x9be9
mov edx, 0x10a10000
mov ecx, 0x10a19000
mov dword [esp + 0x67c], eax
mov dword [esp + 0x27c], ebx
mov dword [esp + 0x680], eax
mov dword [esp + 0x480], edx
mov dword [esp + 0x280], ecx
mov dword [esp + 0x684], eax
mov dword [esp + 0x284], ebx
mov dword [esp + 0x688], eax
mov dword [esp + 0x488], edx
mov dword [esp + 0x288], ecx
mov dword [esp + 0x68c], eax
mov dword [esp + 0x690], eax
mov ebx, 0x3d836274
mov edx, 0x3d8362eb
mov ecx, 0x3d836374
mov eax, 0x3d8363eb
mov dword [esp + 0x7c], 0x46a072
mov dword [esp + 0x47c], 0x9a8e0f
mov dword [esp + 0x80], 0x46a076
mov dword [esp + 0x84], 0x46a7b8
mov dword [esp + 0x484], 0x9a8e0f
mov dword [esp + 0x88], 0x46a7bc
mov dword [esp + 0x8c], 0x46af05
mov dword [esp + 0x48c], 0x9c8e0f
mov dword [esp + 0x28c], 0x9de9
mov dword [esp + 0x90], 0x46af09
mov dword [esp + 0x490], 0xd8b0000
mov dword [esp + 0x290], 0xd8b9000
mov dword [esp + 0x94], 0x45fa2c
mov dword [esp + 0x694], esi
mov dword [esp + 0x494], ebx
mov dword [esp + 0x294], edx
mov dword [esp + 0x98], 0x45fe46
mov dword [esp + 0x698], esi
mov dword [esp + 0x498], ebx
mov dword [esp + 0x298], edx
mov dword [esp + 0x9c], 0x46026f
mov dword [esp + 0x69c], esi
mov dword [esp + 0x49c], ebx
mov dword [esp + 0x29c], edx
mov dword [esp + 0xa0], 0x460676
mov dword [esp + 0x6a0], esi
mov dword [esp + 0x4a0], ebx
mov dword [esp + 0x2a0], edx
mov dword [esp + 0xa4], 0x460a7a
mov dword [esp + 0x6a4], esi
mov dword [esp + 0x4a4], ebx
mov dword [esp + 0x2a4], edx
mov dword [esp + 0xa8], 0x460e81
mov dword [esp + 0x6a8], esi
mov dword [esp + 0x4a8], ebx
mov dword [esp + 0x2a8], edx
mov dword [esp + 0xac], 0x4612c2
mov dword [esp + 0x6ac], esi
mov dword [esp + 0x4ac], ebx
mov dword [esp + 0x2ac], edx
mov dword [esp + 0xb0], 0x4616f6
mov dword [esp + 0x6b0], esi
mov dword [esp + 0x4b0], ebx
mov dword [esp + 0x2b0], edx
mov dword [esp + 0xb4], 0x461b0c
mov dword [esp + 0x6b4], esi
mov dword [esp + 0x4b4], ebx
mov dword [esp + 0x2b4], edx
mov dword [esp + 0xb8], 0x461f37
mov dword [esp + 0x6b8], esi
mov dword [esp + 0x4b8], ebx
mov dword [esp + 0x2b8], edx
mov dword [esp + 0xbc], 0x4623b4
mov dword [esp + 0x6bc], esi
mov dword [esp + 0x4bc], ecx
mov dword [esp + 0x2bc], eax
mov dword [esp + 0xc0], 0x462826
mov dword [esp + 0x6c0], esi
mov dword [esp + 0x4c0], ecx
mov dword [esp + 0x2c0], eax
mov dword [esp + 0xc4], 0x462c96
mov dword [esp + 0x6c4], esi
mov dword [esp + 0x2c4], eax
mov dword [esp + 0x2c8], eax
mov dword [esp + 0x2d0], eax
mov dword [esp + 0x2d4], eax
mov dword [esp + 0x2d8], eax
mov dword [esp + 0x2e0], eax
mov dword [esp + 0x2e4], eax
mov dword [esp + 0x2e8], eax
mov dword [esp + 0x2f0], eax
mov dword [esp + 0x2f4], eax
mov dword [esp + 0x2f8], eax
mov dword [esp + 0x300], eax
mov dword [esp + 0x304], eax
mov dword [esp + 0x308], eax
mov dword [esp + 0x310], eax
mov eax, 4
mov dword [esp + 0x4c4], ecx
mov dword [esp + 0xc8], 0x463108
mov dword [esp + 0x6c8], esi
mov dword [esp + 0x4c8], ecx
mov dword [esp + 0xcc], 0x463594
mov dword [esp + 0x6cc], esi
mov dword [esp + 0x4cc], ebx
mov dword [esp + 0x2cc], edx
mov dword [esp + 0xd0], 0x463a05
mov dword [esp + 0x6d0], esi
mov dword [esp + 0x4d0], ecx
mov dword [esp + 0xd4], 0x463e60
mov dword [esp + 0x6d4], esi
mov dword [esp + 0x4d4], ecx
mov dword [esp + 0xd8], 0x4642bb
mov dword [esp + 0x6d8], esi
mov dword [esp + 0x4d8], ecx
mov dword [esp + 0xdc], 0x464730
mov dword [esp + 0x6dc], esi
mov dword [esp + 0x4dc], ebx
mov dword [esp + 0x2dc], edx
mov dword [esp + 0xe0], 0x464b8a
mov dword [esp + 0x6e0], esi
mov dword [esp + 0x4e0], ecx
mov dword [esp + 0xe4], 0x464fe5
mov dword [esp + 0x6e4], esi
mov dword [esp + 0x4e4], ecx
mov dword [esp + 0xe8], 0x465440
mov dword [esp + 0x6e8], esi
mov dword [esp + 0x4e8], ecx
mov dword [esp + 0xec], 0x4658d1
mov dword [esp + 0x6ec], esi
mov dword [esp + 0x4ec], ebx
mov dword [esp + 0x2ec], edx
mov dword [esp + 0xf0], 0x465d45
mov dword [esp + 0x6f0], esi
mov dword [esp + 0x4f0], ecx
mov dword [esp + 0xf4], 0x4661a0
mov dword [esp + 0x6f4], esi
mov dword [esp + 0x4f4], ecx
mov dword [esp + 0xf8], 0x4665fb
mov dword [esp + 0x6f8], esi
mov dword [esp + 0x4f8], ecx
mov dword [esp + 0xfc], 0x466a8c
mov dword [esp + 0x6fc], esi
mov dword [esp + 0x4fc], ebx
mov dword [esp + 0x2fc], edx
mov dword [esp + 0x100], 0x466f00
mov dword [esp + 0x700], esi
mov dword [esp + 0x500], ecx
mov dword [esp + 0x104], 0x467375
mov dword [esp + 0x704], esi
mov dword [esp + 0x504], ecx
mov dword [esp + 0x108], 0x4677ea
mov dword [esp + 0x708], esi
mov dword [esp + 0x508], ecx
mov dword [esp + 0x10c], 0x467c7b
mov dword [esp + 0x70c], esi
mov dword [esp + 0x50c], ebx
mov dword [esp + 0x30c], edx
mov dword [esp + 0x110], 0x4680ef
mov dword [esp + 0x710], esi
mov dword [esp + 0x510], ecx
mov dword [esp + 0x114], 0x441fc3
mov dword [esp + 0x714], eax
mov dword [esp + 0x514], 0x7e3860f
mov dword [esp + 0x314], 0x7e4e9
mov dword [esp + 0x118], 0x441fc7
mov dword [esp + 0x718], eax
mov dword [esp + 0x518], 0x3d830000
mov dword [esp + 0x318], 0x3d839000
mov dword [esp + 0x11c], 0x44155d
mov dword [esp + 0x71c], esi
mov dword [esp + 0x51c], ebp
mov dword [esp + 0x31c], edi
mov dword [esp + 0x120], 0x441899
mov dword [esp + 0x720], esi
mov dword [esp + 0x520], ebp
mov dword [esp + 0x320], edi
mov dword [esp + 0x124], 0x442586
mov dword [esp + 0x724], esi
mov dword [esp + 0x524], 0x3d837476
mov dword [esp + 0x324], 0x3d8374eb
mov dword [esp + 0x18], 0x3e
mov eax, dword [esp + 0x834]
mov dword [esp + 0x20], edi
push eax
push edi
push 0x1f0fff
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
xor ebx, ebx
xor eax, eax
cmp ecx, edi
mov dword [esp + 0x10], eax
jbe 0x401d6a
jmp 0x401c51
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x83c], esi
jge 0x401cf0
mov ebx, dword [esp + eax*4 + 0x630]
mov eax, dword [esp + eax*4 + 0x30]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push 0x40
push ebx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [esp + 0x83c]
cmp eax, edi
jne 0x401c9b
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push ebx
lea ecx, [esp + eax*4 + 0x438]
jmp 0x401cb0
cmp eax, ebp
jne 0x401cc1
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push ebx
lea ecx, [esp + eax*4 + 0x238]
mov eax, dword [esp + eax*4 + 0x38]
mov edx, dword [esp + 0x1c]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + edx*4 + 0x34]
push ecx
push ebx
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [esp + 0x83c]
lea ebx, [ecx + 1]
mov ecx, dword [esp + 0x10]
jmp 0x401d59
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x28]
push edx
mov edx, dword [esp + eax*4 + 0x34]
mov eax, dword [esp + 0x18]
push 4
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
cmp dword [esp + ecx*4 + 0x430], eax
jne 0x401d34
cmp ebx, edi
je 0x401d2d
cmp ebx, 3
je 0x401d2d
mov ebx, 5
jmp 0x401d59
mov ebx, 3
jmp 0x401d59
cmp dword [esp + ecx*4 + 0x230], eax
jne 0x401d54
cmp ebx, edi
je 0x401d4d
cmp ebx, 4
je 0x401d4d
mov ebx, 5
jmp 0x401d59
mov ebx, 4
jmp 0x401d59
mov ebx, 6
mov eax, dword [esp + 0x18]
inc ecx
cmp ecx, eax
mov dword [esp + 0x10], ecx
jb 0x401c4d
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x820
ret
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0x820
ret