Function at 0x4390f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x23
push 0
push 0
dec ecx
jne 0x4390fc
push ecx
push ebx
push esi
push edi
mov byte [ebp - 0x81], al
lea eax, [ebp - 0x40]
mov edx, dword [0x41ca60]
call fcn.004078ec
lea eax, [ebp - 0x80]
mov edx, dword [0x41ca60]
call fcn.004078ec
xor eax, eax
push ebp
push 0x4398da
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x66b690], 0
je 0x43914d
mov eax, dword [0x66b690]
cmp eax, dword [0x66b694]
jne 0x4391b9
push 0x4398e8
call sub.KERNEL32.DLL_GetModuleHandleW_2
mov ebx, eax
test ebx, ebx
jne 0x439169
push 0x439904
call sub.KERNEL32.DLL_GetModuleHandleW_2
mov ebx, eax
push 0x43991c
push ebx
call fcn.0040a328
mov dword [0x66b690], eax
push 0x439948
push ebx
call fcn.0040a328
mov dword [0x66b694], eax
push 0x43999c
push ebx
call fcn.0040a328
mov dword [0x66b69c], eax
push 0x4399ac
push ebx
call fcn.0040a328
mov dword [0x66b6a4], eax
push 0x4399cc
push ebx
call fcn.0040a328
mov dword [0x66b6a8], eax
cmp dword [0x66b690], 0
je 0x439899
cmp dword [0x66b694], 0
je 0x439899
cmp dword [0x66b69c], 0
je 0x439899
cmp dword [0x66b6a4], 0
jne 0x4391f6
cmp dword [0x66b6a0], 0
je 0x439899
mov eax, dword [0x67d2b8]
mov edx, dword [0x66b698]
mov dword [eax], edx
lea edx, [ebp - 0xb8]
mov eax, dword [0x66b690]
call fcn.00420b68
lea edx, [ebp - 0x40]
mov eax, dword [0x66b690]
call fcn.00421e68
mov eax, dword [ebp - 0x20]
call fcn.004085c8
mov esi, eax
dec esi
test esi, esi
jl 0x4392c4
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 0x4392bc
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 0x4392bc
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edi*4 + 8]
lea edx, [ebp - 0xb8]
call fcn.00420b68
cmp word [ebp - 0xb6], 0x8b
jne 0x4392bc
movzx eax, byte [ebp - 0xb4]
sub al, 0x80
je 0x439294
sub al, 8
je 0x439294
sub al, 8
jne 0x4392bc
mov eax, dword [ebp - 0x9c]
add eax, 2
mov eax, dword [eax]
mov dword [0x66b760], 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 [0x66b764], eax
jmp 0x4392c4
inc ebx
dec esi
jne 0x439236
cmp dword [0x66b764], 0
je 0x439630
lea edx, [ebp - 0x40]
mov eax, dword [0x66b694]
call fcn.00421e68
mov eax, dword [ebp - 0x20]
call fcn.004085c0
dec eax
jne 0x439630
lea edx, [ebp - 0xf8]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
call fcn.00421e68
lea edx, [ebp - 0xf8]
lea eax, [ebp - 0x40]
mov ecx, dword [0x41ca60]
call fcn.00407c54
mov eax, sub.KERNEL32.DLL_RaiseException_1
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
cmp word [eax], 0x25ff
jne 0x43933d
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.004085c8
mov esi, eax
test esi, esi
jl 0x43949a
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 0x4393db
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edi*4 + 4]
sub eax, 4
cmp dword [eax], 0xeefface
jne 0x439492
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edi*4 + 4]
lea edx, [ebp - 0xb8]
call fcn.00420b68
cmp dword [ebp - 0xa4], 4
jne 0x439492
cmp byte [ebp - 0xb1], 0
je 0x439492
mov eax, dword [ebp - 0xb0]
mov dword [0x681ce4], eax
mov edx, 0x438f14
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.0045f7b4
jmp 0x439492
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.00420b68
jmp 0x43947c
mov eax, dword [ebp - 0xb0]
cmp eax, dword [0x66b69c]
jne 0x439456
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 0x439492
cmp byte [ebp - 0xb1], 0
je 0x439492
mov eax, dword [ebp - 0xb0]
mov dword [0x681cdc], eax
mov edx, 0x438da0
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.0045f7b4
jmp 0x439492
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00420b68
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 0x4393fc
inc ebx
dec esi
jne 0x43935a
cmp dword [ebp - 0x88], 0
je 0x439630
lea edx, [ebp - 0x40]
mov eax, dword [0x66b690]
call fcn.00421e68
mov eax, dword [ebp - 0x20]
call fcn.004085c8
mov esi, eax
test esi, esi
jl 0x439630
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.00421e68
mov eax, dword [ebp - 0x60]
call fcn.004085c8
mov edi, eax
test edi, edi
jl 0x439628
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 0x43961b
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.00420b68
cmp word [ebp - 0xb6], 0x83
jne 0x43961b
cmp byte [ebp - 0xb4], 0xc4
jne 0x43961b
mov eax, dword [ebp - 0x9c]
movzx eax, byte [eax + 2]
sub al, 0x10
je 0x439571
sub al, 8
je 0x4395ca
jmp 0x43961b
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.00420b68
cmp dword [ebp - 0xa4], 4
jne 0x439628
cmp byte [ebp - 0xb1], 0
je 0x439628
mov eax, dword [ebp - 0xb0]
mov dword [0x681ce0], eax
mov edx, 0x438e94
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.0045f7b4
jmp 0x439628
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.00420b68
cmp dword [ebp - 0xa4], 4
jne 0x439628
cmp byte [ebp - 0xb1], 0
je 0x439628
mov eax, dword [ebp - 0xb0]
mov dword [0x681ce8], eax
mov edx, 0x438f9c
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.0045f7b4
jmp 0x439628
inc dword [ebp - 0x8c]
dec edi
jne 0x4394ff
inc ebx
dec esi
jne 0x4394c9
cmp byte [ebp - 0x81], 0
je 0x4397b8
call fcn.004390e0
lea edx, [ebp - 0xb8]
call fcn.00420b68
jmp 0x439673
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00420b68
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0xb8], 0
je 0x4396b9
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x4396b9
cmp word [ebp - 0xb6], 0x89
jne 0x43964f
mov eax, dword [ebp - 0x9c]
inc eax
cmp dword [eax], 0x24448bc2
jne 0x43964f
mov eax, dword [ebp - 0x9c]
add eax, 5
cmp dword [eax], 0xc488b04
jne 0x43964f
cmp byte [ebp - 0xb8], 0
je 0x4397b8
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x4397b8
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00420b68
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
jmp 0x439732
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00420b68
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0xb8], 0
je 0x439778
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x439778
cmp word [ebp - 0xb6], 0x89
jne 0x43970e
mov eax, dword [ebp - 0x9c]
inc eax
cmp dword [eax], 0x24448bc2
jne 0x43970e
mov eax, dword [ebp - 0x9c]
add eax, 5
cmp dword [eax], 0xc488b04
jne 0x43970e
cmp byte [ebp - 0xb8], 0
je 0x43979f
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x43979f
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x4397b8
mov edx, 0x43903c
mov eax, dword [ebp - 0x90]
call fcn.0045f790
cmp dword [0x66b6a4], 0
je 0x4397ce
mov eax, dword [0x66b6a4]
mov dword [eax], 0x439060
jmp 0x4397dd
mov edx, 0x439060
mov eax, dword [0x66b6a0]
call fcn.0045f75c
cmp dword [0x66b6a8], 0
je 0x439899
lea edx, [ebp - 0xb8]
mov eax, dword [0x66b6a8]
call fcn.00420b68
mov ebx, 5
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00420b68
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
dec ebx
jne 0x4397ff
cmp byte [ebp - 0xb8], 0
je 0x439899
mov eax, dword [ebp - 0x9c]
cmp word [eax], 0x33ff
jne 0x439899
mov eax, dword [ebp - 0x98]
add eax, 6
cmp byte [eax], 0x59
jne 0x439899
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 [0x66b6a8]
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 [0x66b6a8]
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 0x4398e1
lea eax, [ebp - 0xf8]
mov edx, dword [0x41ca60]
call fcn.004079c4
lea eax, [ebp - 0x80]
mov edx, dword [0x41ca60]
mov ecx, 2
call fcn.00407a14
ret