Function at 0x4370e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x23
push 0
push 0
dec ecx
jne 0x4370e8
push ecx
push ebx
push esi
push edi
mov byte [ebp - 0x81], al
lea eax, [ebp - 0x40]
mov edx, dword [0x4100ac]
call sub.rtl250.bpl__System__InitializeRecord_qqrpvt1
lea eax, [ebp - 0x80]
mov edx, dword [0x4100ac]
call sub.rtl250.bpl__System__InitializeRecord_qqrpvt1
xor eax, eax
push ebp
push 0x4378b0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5fb5f0], 0
je 0x437139
mov eax, dword [0x5fb5f0]
cmp eax, dword [0x5fb5f4]
jne 0x4371a5
push 0x4378c0
call sub.kernel32.dll_GetModuleHandleW
mov ebx, eax
test ebx, ebx
jne 0x437155
push 0x4378dc
call sub.kernel32.dll_GetModuleHandleW
mov ebx, eax
push 0x4378f4
push ebx
call fcn.004039d8
mov dword [0x5fb5f0], eax
push 0x437920
push ebx
call fcn.004039d8
mov dword [0x5fb5f4], eax
push 0x437974
push ebx
call fcn.004039d8
mov dword [0x5fb5fc], eax
push 0x437984
push ebx
call fcn.004039d8
mov dword [0x5fb604], eax
push 0x4379a4
push ebx
call fcn.004039d8
mov dword [0x5fb608], eax
cmp dword [0x5fb5f0], 0
je 0x43786f
cmp dword [0x5fb5f4], 0
je 0x43786f
cmp dword [0x5fb5fc], 0
je 0x43786f
cmp dword [0x5fb604], 0
jne 0x4371e2
cmp dword [0x5fb600], 0
je 0x43786f
mov eax, dword [0x6039b0]
mov edx, dword [0x5fb5f8]
mov dword [eax], edx
lea edx, [ebp - 0xb8]
mov eax, dword [0x5fb5f0]
call fcn.004142c8
lea edx, [ebp - 0x40]
mov eax, dword [0x5fb5f0]
call fcn.004155c8
mov eax, dword [ebp - 0x20]
call sub.rtl250.bpl__System__DynArrayHigh_qqrpxv
mov edi, eax
dec edi
test edi, edi
jl 0x4372a2
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 0x43729e
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 0x43729e
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 8]
lea edx, [ebp - 0xb8]
call fcn.004142c8
cmp word [ebp - 0xb6], 0x8b
jne 0x43729e
movzx eax, byte [ebp - 0xb4]
sub al, 0x80
je 0x437276
sub al, 8
je 0x437276
sub al, 8
jne 0x43729e
mov eax, dword [ebp - 0x9c]
add eax, 2
mov eax, dword [eax]
mov dword [0x5fb6bc], 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 [0x5fb6c0], eax
jmp 0x4372a2
inc ebx
dec edi
jne 0x437222
cmp dword [0x5fb6c0], 0
je 0x437604
lea edx, [ebp - 0x40]
mov eax, dword [0x5fb5f4]
call fcn.004155c8
mov eax, dword [ebp - 0x20]
call sub.rtl250.bpl__System__DynArrayLength_qqrpxv
dec eax
jne 0x437604
lea edx, [ebp - 0xf8]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
call fcn.004155c8
lea edx, [ebp - 0xf8]
lea eax, [ebp - 0x40]
mov ecx, dword [0x4100ac]
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 0x43731b
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 0x43746e
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 0x4373b9
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 4]
sub eax, 4
cmp dword [eax], 0xeefface
jne 0x437466
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 4]
lea edx, [ebp - 0xb8]
call fcn.004142c8
cmp dword [ebp - 0xa4], 4
jne 0x437466
cmp byte [ebp - 0xb1], 0
je 0x437466
mov eax, dword [ebp - 0xb0]
mov dword [0x607420], eax
mov edx, 0x436f00
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.00467668
jmp 0x437466
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 0xc]
lea edx, [ebp - 0xb8]
call fcn.004142c8
jmp 0x437450
mov eax, dword [ebp - 0xb0]
cmp eax, dword [0x5fb5fc]
jne 0x43742a
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 0x437466
cmp byte [ebp - 0xb1], 0
je 0x437466
mov eax, dword [ebp - 0xb0]
mov dword [0x607418], eax
mov edx, 0x436d9c
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.00467668
jmp 0x437466
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.004142c8
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 0x4373d0
inc ebx
dec edi
jne 0x437338
cmp dword [ebp - 0x88], 0
je 0x437604
lea edx, [ebp - 0x40]
mov eax, dword [0x5fb5f0]
call fcn.004155c8
mov eax, dword [ebp - 0x20]
call sub.rtl250.bpl__System__DynArrayHigh_qqrpxv
mov edi, eax
test edi, edi
jl 0x437604
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.004155c8
mov eax, dword [ebp - 0x60]
call sub.rtl250.bpl__System__DynArrayHigh_qqrpxv
mov esi, eax
test esi, esi
jl 0x4375fc
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 0x4375ef
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.004142c8
cmp word [ebp - 0xb6], 0x83
jne 0x4375ef
cmp byte [ebp - 0xb4], 0xc4
jne 0x4375ef
mov eax, dword [ebp - 0x9c]
movzx eax, byte [eax + 2]
sub al, 0x10
je 0x437545
sub al, 8
je 0x43759e
jmp 0x4375ef
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.004142c8
cmp dword [ebp - 0xa4], 4
jne 0x4375fc
cmp byte [ebp - 0xb1], 0
je 0x4375fc
mov eax, dword [ebp - 0xb0]
mov dword [0x60741c], eax
mov edx, 0x436e80
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.00467668
jmp 0x4375fc
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.004142c8
cmp dword [ebp - 0xa4], 4
jne 0x4375fc
cmp byte [ebp - 0xb1], 0
je 0x4375fc
mov eax, dword [ebp - 0xb0]
mov dword [0x607424], eax
mov edx, 0x436f88
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.00467668
jmp 0x4375fc
inc dword [ebp - 0x8c]
dec esi
jne 0x4374d3
inc ebx
dec edi
jne 0x43749d
cmp byte [ebp - 0x81], 0
je 0x43778c
call fcn.004370cc
lea edx, [ebp - 0xb8]
call fcn.004142c8
jmp 0x437647
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.004142c8
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0xb8], 0
je 0x43768d
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x43768d
cmp word [ebp - 0xb6], 0x89
jne 0x437623
mov eax, dword [ebp - 0x9c]
inc eax
cmp dword [eax], 0x24448bc2
jne 0x437623
mov eax, dword [ebp - 0x9c]
add eax, 5
cmp dword [eax], 0xc488b04
jne 0x437623
cmp byte [ebp - 0xb8], 0
je 0x43778c
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x43778c
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.004142c8
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
jmp 0x437706
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.004142c8
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0xb8], 0
je 0x43774c
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x43774c
cmp word [ebp - 0xb6], 0x89
jne 0x4376e2
mov eax, dword [ebp - 0x9c]
inc eax
cmp dword [eax], 0x24448bc2
jne 0x4376e2
mov eax, dword [ebp - 0x9c]
add eax, 5
cmp dword [eax], 0xc488b04
jne 0x4376e2
cmp byte [ebp - 0xb8], 0
je 0x437773
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x437773
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x43778c
mov edx, 0x437028
mov eax, dword [ebp - 0x90]
call fcn.00467644
cmp dword [0x5fb604], 0
je 0x4377a2
mov eax, dword [0x5fb604]
mov dword [eax], 0x43704c
jmp 0x4377b1
mov edx, 0x43704c
mov eax, dword [0x5fb600]
call fcn.00467610
cmp dword [0x5fb608], 0
je 0x43786f
lea edx, [ebp - 0xb8]
mov eax, dword [0x5fb608]
call fcn.004142c8
mov ebx, 5
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.004142c8
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
dec ebx
jne 0x4377d3
cmp byte [ebp - 0xb8], 0
je 0x43786f
mov eax, dword [ebp - 0x9c]
cmp word [eax], 0x33ff
jne 0x43786f
mov eax, dword [ebp - 0x98]
add eax, 6
cmp byte [eax], 0x59
jne 0x43786f
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 [0x5fb608]
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 [0x5fb608]
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 0x4378b7
lea eax, [ebp - 0xf8]
mov edx, dword [0x4100ac]
call sub.rtl250.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 0x80]
mov edx, dword [0x4100ac]
mov ecx, 2
call sub.rtl250.bpl__System__FinalizeArray_qqrpvt1ui
ret