Function at 0x438ba8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x23
push 0
push 0
dec ecx
jne 0x438bb0
push ecx
push ebx
push esi
push edi
mov byte [ebp - 0x81], al
lea eax, [ebp - 0x40]
mov edx, dword [0x41c578]
call fcn.0040775c
lea eax, [ebp - 0x80]
mov edx, dword [0x41c578]
call fcn.0040775c
xor eax, eax
push ebp
push 0x43938e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x60565c], 0
je 0x438c01
mov eax, dword [0x60565c]
cmp eax, dword [0x605660]
jne 0x438c6d
push 0x43939c
call sub.kernel32.dll_GetModuleHandleW_2
mov ebx, eax
test ebx, ebx
jne 0x438c1d
push 0x4393b8
call sub.kernel32.dll_GetModuleHandleW_2
mov ebx, eax
push 0x4393d0
push ebx
call fcn.00409e4c
mov dword [0x60565c], eax
push 0x4393fc
push ebx
call fcn.00409e4c
mov dword [0x605660], eax
push 0x439450
push ebx
call fcn.00409e4c
mov dword [0x605668], eax
push 0x439460
push ebx
call fcn.00409e4c
mov dword [0x605670], eax
push 0x439480
push ebx
call fcn.00409e4c
mov dword [0x605674], eax
cmp dword [0x60565c], 0
je 0x43934d
cmp dword [0x605660], 0
je 0x43934d
cmp dword [0x605668], 0
je 0x43934d
cmp dword [0x605670], 0
jne 0x438caa
cmp dword [0x60566c], 0
je 0x43934d
mov eax, dword [0x613100]
mov edx, dword [0x605664]
mov dword [eax], edx
lea edx, [ebp - 0xb8]
mov eax, dword [0x60565c]
call fcn.00420680
lea edx, [ebp - 0x40]
mov eax, dword [0x60565c]
call fcn.00421980
mov eax, dword [ebp - 0x20]
call fcn.004082d8
mov esi, eax
dec esi
test esi, esi
jl 0x438d78
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 0x438d70
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 0x438d70
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edi*4 + 8]
lea edx, [ebp - 0xb8]
call fcn.00420680
cmp word [ebp - 0xb6], 0x8b
jne 0x438d70
movzx eax, byte [ebp - 0xb4]
sub al, 0x80
je 0x438d48
sub al, 8
je 0x438d48
sub al, 8
jne 0x438d70
mov eax, dword [ebp - 0x9c]
add eax, 2
mov eax, dword [eax]
mov dword [0x60572c], 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 [0x605730], eax
jmp 0x438d78
inc ebx
dec esi
jne 0x438cea
cmp dword [0x605730], 0
je 0x4390e4
lea edx, [ebp - 0x40]
mov eax, dword [0x605660]
call fcn.00421980
mov eax, dword [ebp - 0x20]
call fcn.004082d0
dec eax
jne 0x4390e4
lea edx, [ebp - 0xf8]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
call fcn.00421980
lea edx, [ebp - 0xf8]
lea eax, [ebp - 0x40]
mov ecx, dword [0x41c578]
call fcn.00407ac4
mov eax, sub.kernel32.dll_RaiseException_1
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
cmp word [eax], 0x25ff
jne 0x438df1
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.004082d8
mov esi, eax
test esi, esi
jl 0x438f4e
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 0x438e8f
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edi*4 + 4]
sub eax, 4
cmp dword [eax], 0xeefface
jne 0x438f46
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edi*4 + 4]
lea edx, [ebp - 0xb8]
call fcn.00420680
cmp dword [ebp - 0xa4], 4
jne 0x438f46
cmp byte [ebp - 0xb1], 0
je 0x438f46
mov eax, dword [ebp - 0xb0]
mov dword [0x617d18], eax
mov edx, 0x4389c8
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.0045f360
jmp 0x438f46
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.00420680
jmp 0x438f30
mov eax, dword [ebp - 0xb0]
cmp eax, dword [0x605668]
jne 0x438f0a
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 0x438f46
cmp byte [ebp - 0xb1], 0
je 0x438f46
mov eax, dword [ebp - 0xb0]
mov dword [0x617d10], eax
mov edx, 0x438854
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.0045f360
jmp 0x438f46
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00420680
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 0x438eb0
inc ebx
dec esi
jne 0x438e0e
cmp dword [ebp - 0x88], 0
je 0x4390e4
lea edx, [ebp - 0x40]
mov eax, dword [0x60565c]
call fcn.00421980
mov eax, dword [ebp - 0x20]
call fcn.004082d8
mov esi, eax
test esi, esi
jl 0x4390e4
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.00421980
mov eax, dword [ebp - 0x60]
call fcn.004082d8
mov edi, eax
test edi, edi
jl 0x4390dc
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 0x4390cf
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.00420680
cmp word [ebp - 0xb6], 0x83
jne 0x4390cf
cmp byte [ebp - 0xb4], 0xc4
jne 0x4390cf
mov eax, dword [ebp - 0x9c]
movzx eax, byte [eax + 2]
sub al, 0x10
je 0x439025
sub al, 8
je 0x43907e
jmp 0x4390cf
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.00420680
cmp dword [ebp - 0xa4], 4
jne 0x4390dc
cmp byte [ebp - 0xb1], 0
je 0x4390dc
mov eax, dword [ebp - 0xb0]
mov dword [0x617d14], eax
mov edx, 0x438948
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.0045f360
jmp 0x4390dc
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.00420680
cmp dword [ebp - 0xa4], 4
jne 0x4390dc
cmp byte [ebp - 0xb1], 0
je 0x4390dc
mov eax, dword [ebp - 0xb0]
mov dword [0x617d1c], eax
mov edx, 0x438a50
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.0045f360
jmp 0x4390dc
inc dword [ebp - 0x8c]
dec edi
jne 0x438fb3
inc ebx
dec esi
jne 0x438f7d
cmp byte [ebp - 0x81], 0
je 0x43926c
call fcn.00438b94
lea edx, [ebp - 0xb8]
call fcn.00420680
jmp 0x439127
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00420680
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0xb8], 0
je 0x43916d
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x43916d
cmp word [ebp - 0xb6], 0x89
jne 0x439103
mov eax, dword [ebp - 0x9c]
inc eax
cmp dword [eax], 0x24448bc2
jne 0x439103
mov eax, dword [ebp - 0x9c]
add eax, 5
cmp dword [eax], 0xc488b04
jne 0x439103
cmp byte [ebp - 0xb8], 0
je 0x43926c
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x43926c
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00420680
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
jmp 0x4391e6
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00420680
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0xb8], 0
je 0x43922c
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x43922c
cmp word [ebp - 0xb6], 0x89
jne 0x4391c2
mov eax, dword [ebp - 0x9c]
inc eax
cmp dword [eax], 0x24448bc2
jne 0x4391c2
mov eax, dword [ebp - 0x9c]
add eax, 5
cmp dword [eax], 0xc488b04
jne 0x4391c2
cmp byte [ebp - 0xb8], 0
je 0x439253
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x439253
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x43926c
mov edx, 0x438af0
mov eax, dword [ebp - 0x90]
call fcn.0045f33c
cmp dword [0x605670], 0
je 0x439282
mov eax, dword [0x605670]
mov dword [eax], 0x438b14
jmp 0x439291
mov edx, 0x438b14
mov eax, dword [0x60566c]
call fcn.0045f308
cmp dword [0x605674], 0
je 0x43934d
lea edx, [ebp - 0xb8]
mov eax, dword [0x605674]
call fcn.00420680
mov ebx, 5
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00420680
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
dec ebx
jne 0x4392b3
cmp byte [ebp - 0xb8], 0
je 0x43934d
mov eax, dword [ebp - 0x9c]
cmp word [eax], 0x33ff
jne 0x43934d
mov eax, dword [ebp - 0x98]
add eax, 6
cmp byte [eax], 0x59
jne 0x43934d
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 [0x605674]
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 [0x605674]
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 0x439395
lea eax, [ebp - 0xf8]
mov edx, dword [0x41c578]
call fcn.00407834
lea eax, [ebp - 0x80]
mov edx, dword [0x41c578]
mov ecx, 2
call fcn.00407884
ret