Function at 0x46d600
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x23
push 0
push 0
dec ecx
jne 0x46d608
push ecx
push ebx
push esi
push edi
mov byte [ebp - 0x81], al
lea eax, [ebp - 0x40]
mov edx, dword [0x41dd64]
call fcn.0040b40c
lea eax, [ebp - 0x80]
mov edx, dword [0x41dd64]
call fcn.0040b40c
xor eax, eax
push ebp
push 0x46dde6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x70f76c], 0
je 0x46d659
mov eax, dword [0x70f76c]
cmp eax, dword [0x70f770]
jne 0x46d6c5
push 0x46ddf4
call sub.kernel32.dll_GetModuleHandleW
mov ebx, eax
test ebx, ebx
jne 0x46d675
push 0x46de10
call sub.kernel32.dll_GetModuleHandleW
mov ebx, eax
push 0x46de28
push ebx
call fcn.00412e30
mov dword [0x70f76c], eax
push 0x46de54
push ebx
call fcn.00412e30
mov dword [0x70f770], eax
push 0x46dea8
push ebx
call fcn.00412e30
mov dword [0x70f778], eax
push 0x46deb8
push ebx
call fcn.00412e30
mov dword [0x70f780], eax
push 0x46ded8
push ebx
call fcn.00412e30
mov dword [0x70f784], eax
cmp dword [0x70f76c], 0
je 0x46dda5
cmp dword [0x70f770], 0
je 0x46dda5
cmp dword [0x70f778], 0
je 0x46dda5
cmp dword [0x70f780], 0
jne 0x46d702
cmp dword [0x70f77c], 0
je 0x46dda5
mov eax, dword [0x7183b0]
mov edx, dword [0x70f774]
mov dword [eax], edx
lea edx, [ebp - 0xb8]
mov eax, dword [0x70f76c]
call fcn.00421f78
lea edx, [ebp - 0x40]
mov eax, dword [0x70f76c]
call fcn.00423264
mov eax, dword [ebp - 0x20]
call fcn.0040be60
mov esi, eax
dec esi
test esi, esi
jl 0x46d7d0
inc esi
xor ebx, ebx
mov edi, ebx
add edi, edi
add edi, edi
add edi, edi
sub edi, ebx
mov eax, dword [ebp - 0x20]
cmp dword [eax + edi*4 + 0xc], 0
je 0x46d7c8
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*4 + 0xc]
mov edx, dword [ebp - 0x20]
cmp eax, dword [edx + edi*4 + 0x28]
jne 0x46d7c8
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edi*4 + 8]
lea edx, [ebp - 0xb8]
call fcn.00421f78
cmp word [ebp - 0xb6], 0x8b
jne 0x46d7c8
movzx eax, byte [ebp - 0xb4]
sub al, 0x80
je 0x46d7a0
sub al, 8
je 0x46d7a0
sub al, 8
jne 0x46d7c8
mov eax, dword [ebp - 0x9c]
add eax, 2
mov eax, dword [eax]
mov dword [0x70f834], eax
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*4 + 0xc]
mov dword [0x70f838], eax
jmp 0x46d7d0
inc ebx
dec esi
jne 0x46d742
cmp dword [0x70f838], 0
je 0x46db3c
lea edx, [ebp - 0x40]
mov eax, dword [0x70f770]
call fcn.00423264
mov eax, dword [ebp - 0x20]
call fcn.0040be58
dec eax
jne 0x46db3c
lea edx, [ebp - 0xf8]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
call fcn.00423264
lea edx, [ebp - 0xf8]
lea eax, [ebp - 0x40]
mov ecx, dword [0x41dd64]
call fcn.0040b778
mov eax, sub.kernel32.dll_RaiseException
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
cmp word [eax], 0x25ff
jne 0x46d849
mov eax, dword [ebp - 0x90]
add eax, 2
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x90], eax
xor eax, eax
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x20]
call fcn.0040be60
mov esi, eax
test esi, esi
jl 0x46d9a6
inc esi
xor ebx, ebx
mov edi, ebx
add edi, edi
add edi, edi
add edi, edi
sub edi, ebx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edi*4 + 0xc]
cmp eax, dword [ebp - 0x90]
jne 0x46d8e7
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edi*4 + 4]
sub eax, 4
cmp dword [eax], 0xeefface
jne 0x46d99e
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edi*4 + 4]
lea edx, [ebp - 0xb8]
call fcn.00421f78
cmp dword [ebp - 0xa4], 4
jne 0x46d99e
cmp byte [ebp - 0xb1], 0
je 0x46d99e
mov eax, dword [ebp - 0xb0]
mov dword [0x71f19c], eax
mov edx, 0x46d420
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.0049deb0
jmp 0x46d99e
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*4 + 0xc]
lea edx, [ebp - 0xb8]
call fcn.00421f78
jmp 0x46d988
mov eax, dword [ebp - 0xb0]
cmp eax, dword [0x70f778]
jne 0x46d962
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*4 + 0xc]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0xa4], 4
jne 0x46d99e
cmp byte [ebp - 0xb1], 0
je 0x46d99e
mov eax, dword [ebp - 0xb0]
mov dword [0x71f194], eax
mov edx, 0x46d2bc
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.0049deb0
jmp 0x46d99e
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00421f78
push esi
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
pop esi
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jae 0x46d908
inc ebx
dec esi
jne 0x46d866
cmp dword [ebp - 0x88], 0
je 0x46db3c
lea edx, [ebp - 0x40]
mov eax, dword [0x70f76c]
call fcn.00423264
mov eax, dword [ebp - 0x20]
call fcn.0040be60
mov esi, eax
test esi, esi
jl 0x46db3c
inc esi
xor ebx, ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*4 + 0xc]
lea edx, [ebp - 0x80]
call fcn.00423264
mov eax, dword [ebp - 0x60]
call fcn.0040be60
mov edi, eax
test edi, edi
jl 0x46db34
inc edi
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x8c]
mov edx, eax
add eax, eax
add eax, eax
add eax, eax
sub eax, edx
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + eax*4 + 0xc]
cmp eax, dword [ebp - 0x88]
jne 0x46db27
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*4 + 8]
lea edx, [ebp - 0xb8]
call fcn.00421f78
cmp word [ebp - 0xb6], 0x83
jne 0x46db27
cmp byte [ebp - 0xb4], 0xc4
jne 0x46db27
mov eax, dword [ebp - 0x9c]
movzx eax, byte [eax + 2]
sub al, 0x10
je 0x46da7d
sub al, 8
je 0x46dad6
jmp 0x46db27
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*4 + 4]
lea edx, [ebp - 0xb8]
call fcn.00421f78
cmp dword [ebp - 0xa4], 4
jne 0x46db34
cmp byte [ebp - 0xb1], 0
je 0x46db34
mov eax, dword [ebp - 0xb0]
mov dword [0x71f198], eax
mov edx, 0x46d3a0
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.0049deb0
jmp 0x46db34
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*4 + 4]
lea edx, [ebp - 0xb8]
call fcn.00421f78
cmp dword [ebp - 0xa4], 4
jne 0x46db34
cmp byte [ebp - 0xb1], 0
je 0x46db34
mov eax, dword [ebp - 0xb0]
mov dword [0x71f1a0], eax
mov edx, 0x46d4a8
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.0049deb0
jmp 0x46db34
inc dword [ebp - 0x8c]
dec edi
jne 0x46da0b
inc ebx
dec esi
jne 0x46d9d5
cmp byte [ebp - 0x81], 0
je 0x46dcc4
call fcn.0046d5ec
lea edx, [ebp - 0xb8]
call fcn.00421f78
jmp 0x46db7f
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00421f78
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0xb8], 0
je 0x46dbc5
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x46dbc5
cmp word [ebp - 0xb6], 0x89
jne 0x46db5b
mov eax, dword [ebp - 0x9c]
inc eax
cmp dword [eax], 0x24448bc2
jne 0x46db5b
mov eax, dword [ebp - 0x9c]
add eax, 5
cmp dword [eax], 0xc488b04
jne 0x46db5b
cmp byte [ebp - 0xb8], 0
je 0x46dcc4
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x46dcc4
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00421f78
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
jmp 0x46dc3e
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00421f78
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0xb8], 0
je 0x46dc84
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x46dc84
cmp word [ebp - 0xb6], 0x89
jne 0x46dc1a
mov eax, dword [ebp - 0x9c]
inc eax
cmp dword [eax], 0x24448bc2
jne 0x46dc1a
mov eax, dword [ebp - 0x9c]
add eax, 5
cmp dword [eax], 0xc488b04
jne 0x46dc1a
cmp byte [ebp - 0xb8], 0
je 0x46dcab
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x46dcab
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x46dcc4
mov edx, 0x46d548
mov eax, dword [ebp - 0x90]
call fcn.0049de8c
cmp dword [0x70f780], 0
je 0x46dcda
mov eax, dword [0x70f780]
mov dword [eax], 0x46d56c
jmp 0x46dce9
mov edx, 0x46d56c
mov eax, dword [0x70f77c]
call fcn.0049de58
cmp dword [0x70f784], 0
je 0x46dda5
lea edx, [ebp - 0xb8]
mov eax, dword [0x70f784]
call fcn.00421f78
mov ebx, 5
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00421f78
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
dec ebx
jne 0x46dd0b
cmp byte [ebp - 0xb8], 0
je 0x46dda5
mov eax, dword [ebp - 0x9c]
cmp word [eax], 0x33ff
jne 0x46dda5
mov eax, dword [ebp - 0x98]
add eax, 6
cmp byte [eax], 0x59
jne 0x46dda5
lea eax, [ebp - 0x94]
push eax
push 0x40
mov esi, dword [ebp - 0x98]
mov edi, esi
add edi, 7
mov eax, edi
sub eax, dword [0x70f784]
push eax
mov ebx, dword [ebp - 0x9c]
push ebx
call sub.kernel32.dll_VirtualProtect
mov word [ebx], 0x38b
add esi, 6
mov byte [esi], 0x90
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 0x94]
push eax
sub edi, dword [0x70f784]
push edi
push ebx
call sub.kernel32.dll_VirtualProtect
push 0
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dded
lea eax, [ebp - 0xf8]
mov edx, dword [0x41dd64]
call fcn.0040b4e4
lea eax, [ebp - 0x80]
mov edx, dword [0x41dd64]
mov ecx, 2
call fcn.0040b534
ret