Function at 0x436db4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x23
push 0
push 0
dec ecx
jne 0x436dbc
push ecx
push ebx
push esi
push edi
mov byte [ebp - 0x81], al
lea eax, [ebp - 0x40]
mov edx, dword [0x40f890]
call sub.rtl250.bpl__System__InitializeRecord_qqrpvt1
lea eax, [ebp - 0x80]
mov edx, dword [0x40f890]
call sub.rtl250.bpl__System__InitializeRecord_qqrpvt1
xor eax, eax
push ebp
push 0x437584
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e35f0], 0
je 0x436e0d
mov eax, dword [0x4e35f0]
cmp eax, dword [0x4e35f4]
jne 0x436e79
push 0x437594
call sub.kernel32.dll_GetModuleHandleW
mov ebx, eax
test ebx, ebx
jne 0x436e29
push 0x4375b0
call sub.kernel32.dll_GetModuleHandleW
mov ebx, eax
push 0x4375c8
push ebx
call fcn.00403598
mov dword [0x4e35f0], eax
push 0x4375f4
push ebx
call fcn.00403598
mov dword [0x4e35f4], eax
push 0x437648
push ebx
call fcn.00403598
mov dword [0x4e35fc], eax
push 0x437658
push ebx
call fcn.00403598
mov dword [0x4e3604], eax
push 0x437678
push ebx
call fcn.00403598
mov dword [0x4e3608], eax
cmp dword [0x4e35f0], 0
je 0x437543
cmp dword [0x4e35f4], 0
je 0x437543
cmp dword [0x4e35fc], 0
je 0x437543
cmp dword [0x4e3604], 0
jne 0x436eb6
cmp dword [0x4e3600], 0
je 0x437543
mov eax, dword [0x4e4c4c]
mov edx, dword [0x4e35f8]
mov dword [eax], edx
lea edx, [ebp - 0xb8]
mov eax, dword [0x4e35f0]
call fcn.00413aac
lea edx, [ebp - 0x40]
mov eax, dword [0x4e35f0]
call fcn.00414dac
mov eax, dword [ebp - 0x20]
call sub.rtl250.bpl__System__DynArrayHigh_qqrpxv
mov edi, eax
dec edi
test edi, edi
jl 0x436f76
inc edi
xor ebx, ebx
mov esi, ebx
add esi, esi
add esi, esi
add esi, esi
sub esi, ebx
mov eax, dword [ebp - 0x20]
cmp dword [eax + esi*4 + 0xc], 0
je 0x436f72
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 0xc]
mov edx, dword [ebp - 0x20]
cmp eax, dword [edx + esi*4 + 0x28]
jne 0x436f72
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 8]
lea edx, [ebp - 0xb8]
call fcn.00413aac
cmp word [ebp - 0xb6], 0x8b
jne 0x436f72
movzx eax, byte [ebp - 0xb4]
sub al, 0x80
je 0x436f4a
sub al, 8
je 0x436f4a
sub al, 8
jne 0x436f72
mov eax, dword [ebp - 0x9c]
add eax, 2
mov eax, dword [eax]
mov dword [0x4e36bc], 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 [0x4e36c0], eax
jmp 0x436f76
inc ebx
dec edi
jne 0x436ef6
cmp dword [0x4e36c0], 0
je 0x4372d8
lea edx, [ebp - 0x40]
mov eax, dword [0x4e35f4]
call fcn.00414dac
mov eax, dword [ebp - 0x20]
call sub.rtl250.bpl__System__DynArrayLength_qqrpxv
dec eax
jne 0x4372d8
lea edx, [ebp - 0xf8]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
call fcn.00414dac
lea edx, [ebp - 0xf8]
lea eax, [ebp - 0x40]
mov ecx, dword [0x40f890]
call sub.rtl250.bpl__System__CopyRecord_qqrv
mov eax, sub.kernel32.dll_RaiseException
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
cmp word [eax], 0x25ff
jne 0x436fef
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 sub.rtl250.bpl__System__DynArrayHigh_qqrpxv
mov edi, eax
test edi, edi
jl 0x437142
inc edi
xor ebx, ebx
mov esi, ebx
add esi, esi
add esi, esi
add esi, esi
sub esi, ebx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 0xc]
cmp eax, dword [ebp - 0x90]
jne 0x43708d
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 4]
sub eax, 4
cmp dword [eax], 0xeefface
jne 0x43713a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 4]
lea edx, [ebp - 0xb8]
call fcn.00413aac
cmp dword [ebp - 0xa4], 4
jne 0x43713a
cmp byte [ebp - 0xb1], 0
je 0x43713a
mov eax, dword [ebp - 0xb0]
mov dword [0x4e847c], eax
mov edx, 0x436bd4
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.0046733c
jmp 0x43713a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 0xc]
lea edx, [ebp - 0xb8]
call fcn.00413aac
jmp 0x437124
mov eax, dword [ebp - 0xb0]
cmp eax, dword [0x4e35fc]
jne 0x4370fe
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 0x43713a
cmp byte [ebp - 0xb1], 0
je 0x43713a
mov eax, dword [ebp - 0xb0]
mov dword [0x4e8474], eax
mov edx, 0x436a70
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.0046733c
jmp 0x43713a
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00413aac
push edi
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
pop edi
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jae 0x4370a4
inc ebx
dec edi
jne 0x43700c
cmp dword [ebp - 0x88], 0
je 0x4372d8
lea edx, [ebp - 0x40]
mov eax, dword [0x4e35f0]
call fcn.00414dac
mov eax, dword [ebp - 0x20]
call sub.rtl250.bpl__System__DynArrayHigh_qqrpxv
mov edi, eax
test edi, edi
jl 0x4372d8
inc edi
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.00414dac
mov eax, dword [ebp - 0x60]
call sub.rtl250.bpl__System__DynArrayHigh_qqrpxv
mov esi, eax
test esi, esi
jl 0x4372d0
inc esi
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 0x4372c3
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.00413aac
cmp word [ebp - 0xb6], 0x83
jne 0x4372c3
cmp byte [ebp - 0xb4], 0xc4
jne 0x4372c3
mov eax, dword [ebp - 0x9c]
movzx eax, byte [eax + 2]
sub al, 0x10
je 0x437219
sub al, 8
je 0x437272
jmp 0x4372c3
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.00413aac
cmp dword [ebp - 0xa4], 4
jne 0x4372d0
cmp byte [ebp - 0xb1], 0
je 0x4372d0
mov eax, dword [ebp - 0xb0]
mov dword [0x4e8478], eax
mov edx, 0x436b54
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.0046733c
jmp 0x4372d0
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.00413aac
cmp dword [ebp - 0xa4], 4
jne 0x4372d0
cmp byte [ebp - 0xb1], 0
je 0x4372d0
mov eax, dword [ebp - 0xb0]
mov dword [0x4e8480], eax
mov edx, 0x436c5c
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.0046733c
jmp 0x4372d0
inc dword [ebp - 0x8c]
dec esi
jne 0x4371a7
inc ebx
dec edi
jne 0x437171
cmp byte [ebp - 0x81], 0
je 0x437460
call fcn.00436da0
lea edx, [ebp - 0xb8]
call fcn.00413aac
jmp 0x43731b
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00413aac
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0xb8], 0
je 0x437361
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x437361
cmp word [ebp - 0xb6], 0x89
jne 0x4372f7
mov eax, dword [ebp - 0x9c]
inc eax
cmp dword [eax], 0x24448bc2
jne 0x4372f7
mov eax, dword [ebp - 0x9c]
add eax, 5
cmp dword [eax], 0xc488b04
jne 0x4372f7
cmp byte [ebp - 0xb8], 0
je 0x437460
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x437460
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00413aac
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
jmp 0x4373da
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00413aac
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0xb8], 0
je 0x437420
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x437420
cmp word [ebp - 0xb6], 0x89
jne 0x4373b6
mov eax, dword [ebp - 0x9c]
inc eax
cmp dword [eax], 0x24448bc2
jne 0x4373b6
mov eax, dword [ebp - 0x9c]
add eax, 5
cmp dword [eax], 0xc488b04
jne 0x4373b6
cmp byte [ebp - 0xb8], 0
je 0x437447
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x437447
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x437460
mov edx, 0x436cfc
mov eax, dword [ebp - 0x90]
call fcn.00467318
cmp dword [0x4e3604], 0
je 0x437476
mov eax, dword [0x4e3604]
mov dword [eax], 0x436d20
jmp 0x437485
mov edx, 0x436d20
mov eax, dword [0x4e3600]
call fcn.004672e4
cmp dword [0x4e3608], 0
je 0x437543
lea edx, [ebp - 0xb8]
mov eax, dword [0x4e3608]
call fcn.00413aac
mov ebx, 5
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.00413aac
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
dec ebx
jne 0x4374a7
cmp byte [ebp - 0xb8], 0
je 0x437543
mov eax, dword [ebp - 0x9c]
cmp word [eax], 0x33ff
jne 0x437543
mov eax, dword [ebp - 0x98]
add eax, 6
cmp byte [eax], 0x59
jne 0x437543
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 [0x4e3608]
push eax
mov ebx, dword [ebp - 0x9c]
push ebx
call sub.kernel32.dll_VirtualProtect
mov word [ebx], 0x38b
mov eax, esi
add eax, 6
mov byte [eax], 0x90
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 0x94]
push eax
sub edi, dword [0x4e3608]
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 0x43758b
lea eax, [ebp - 0xf8]
mov edx, dword [0x40f890]
call sub.rtl250.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 0x80]
mov edx, dword [0x40f890]
mov ecx, 2
call sub.rtl250.bpl__System__FinalizeArray_qqrpvt1ui
ret