Function at 0x4c1ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x3c]
push ebx
push esi
push edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], 0
xor eax, eax
push fcn.004c1ed0
push ebp
push 0x4135b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x2c], 0
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x48]
call fcn.004c4590
mov byte [ebp - 0x34], al
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x1c], 0
je 0x4c2884
cmp byte [ebp - 0x34], 4
jne 0x4c1f58
mov eax, dword [ebp - 0x24]
cmp byte [eax + 4], 0
jne 0x4c1f58
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x48]
cmp byte [eax + 0x15], 0
jne 0x4c2884
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x38], 0
je 0x4c1f8c
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x38]
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx + 0x38]
mov edx, dword [ecx]
call dword [edx + 0x6c]
mov edx, dword [ebp - 0x24]
cmp eax, dword [edx + 0x18]
jl 0x4c1f8c
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x48]
mov cx, 0x5a
mov dl, 2
call fcn.004c4140
nop
movzx eax, byte [ebp - 0x34]
sub eax, 2
cmp eax, 2
jae 0x4c1faa
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x1c]
cmp byte [eax + 0x18], 1
jne 0x4c1faa
mov byte [ebp - 0x30], 1
jmp 0x4c1fae
mov byte [ebp - 0x30], 0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x10]
add eax, 5
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x1c]
mov al, byte [eax + 0x18]
test al, al
je 0x4c1fdc
sub al, 1
je 0x4c206c
sub al, 2
je 0x4c221c
jmp 0x4c2588
mov eax, dword [ebp - 0x24]
push dword [eax + 0x18]
mov eax, dword [ebp - 0x24]
push dword [eax + 8]
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [ebp - 0x38]
call fcn.00486fc0
mov eax, dword [ebp - 0x28]
push dword [eax + 0x30]
push 0
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x30]
test eax, eax
je 0x4c2017
mov eax, dword [eax - 4]
add eax, 1
push eax
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x38]
lea ecx, [edx + eax]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x30]
test eax, eax
je 0x4c2034
mov eax, dword [eax - 4]
add eax, 1
sub ecx, eax
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 8]
mov eax, 0x51286c
call fcn.0046b500
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x30]
test edx, edx
je 0x4c2056
mov edx, dword [edx - 4]
add edx, 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x18]
sub ecx, edx
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x1c], ecx
jmp 0x4c25a0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x18]
cdq
idiv dword [ecx + 0x150]
test edx, edx
je 0x4c2094
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x48]
mov cx, 0x5a
mov dl, 2
call fcn.004c4140
mov al, byte [ebp - 0x30]
test al, al
je 0x4c20e8
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x1c]
push dword [eax + 0x150]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [ebp - 0x38]
call fcn.00486220
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + 0x150]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x18]
sub edx, ecx
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x1c]
mov eax, dword [edx + 0x150]
add eax, dword [ebp - 0x38]
mov dword [ebp - 0x38], eax
nop
mov eax, dword [ebp - 0x24]
push dword [eax + 0x18]
mov eax, dword [ebp - 0x24]
push dword [eax + 8]
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [ebp - 0x38]
call fcn.00486fc0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x18]
add edx, dword [ebp - 0x38]
mov al, byte [ecx + edx - 1]
mov byte [ebp - 0x3c], al
movzx ebx, byte [ebp - 0x3c]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x38]
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx + 0x38]
mov edx, dword [ecx]
call dword [edx + 0x6c]
add eax, ebx
lea edx, [eax + 1]
mov eax, dword [ebp - 0x24]
cmp edx, dword [eax + 0x18]
jle 0x4c216e
mov byte [ebp - 0x2c], 1
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x18]
lea ebx, [eax - 1]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x38]
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx + 0x38]
mov edx, dword [ecx]
call dword [edx + 0x6c]
sub ebx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x1c], ebx
jmp 0x4c25a0
movzx eax, byte [ebp - 0x3c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x18]
sub edx, eax
sub edx, 1
mov ebx, edx
mov eax, dword [ebp - 0x28]
push dword [eax + 0x30]
push 0
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x30]
test edx, edx
je 0x4c2197
mov edx, dword [edx - 4]
add edx, 1
push edx
mov eax, dword [ebp - 0x38]
lea ecx, [eax + ebx]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x30]
test eax, eax
je 0x4c21ae
mov eax, dword [eax - 4]
add eax, 1
sub ecx, eax
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 8]
mov eax, 0x51286c
call fcn.0046b500
test byte [ebp - 0x34], 0xff
je 0x4c21fc
movzx eax, byte [ebp - 0x3c]
sub eax, 1
mov edx, eax
test edx, edx
jl 0x4c21fc
mov esi, 0xffffffff
add esi, 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x38]
lea edi, [eax + ebx]
add edi, esi
mov al, byte [ebp - 0x3c]
cmp al, byte [ecx + edi]
je 0x4c21f8
mov byte [ebp - 0x2c], 1
lea esi, [esi]
cmp edx, esi
jg 0x4c21d8
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x4c220c
mov ecx, dword [ecx - 4]
add ecx, 1
mov edx, ebx
sub edx, ecx
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x1c], edx
jmp 0x4c25a0
cmp byte [ebp - 0x34], 4
jne 0x4c240c
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x1c]
mov eax, dword [eax + 0x150]
mov edx, dword [ebp - 0x24]
cmp eax, dword [edx + 0x18]
jle 0x4c224c
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x48]
mov cx, 0x5a
mov dl, 2
call fcn.004c4140
nop
mov eax, dword [ebp - 0x28]
push dword [eax + 0x6c]
mov eax, dword [ebp - 0x28]
push dword [eax + 0x68]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00485bc0
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x28]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00402d40
mov esi, 3
lea esi, [esi]
add esi, 1
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x28]
mov al, byte [edx + esi]
xor byte [ebp + esi - 0xc], al
cmp esi, 0xb
jl 0x4c2280
push 0xc
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x1c]
lea edx, [ebp - 0xc]
xor ecx, ecx
call fcn.00486220
mov eax, dword [ebp - 0x24]
movzx edx, byte [eax + 4]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x2c]
mov al, byte [edx + 0x4f02a0]
mov byte [ecx], al
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 0x24]
mov cl, byte [eax + 5]
mov byte [edx + 1], cl
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 0x24]
mov cl, byte [eax + 6]
mov byte [edx + 2], cl
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 0x18]
shr ecx, 8
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x2c]
mov byte [edx + 3], cl
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 0x24]
mov cl, byte [eax + 0x18]
mov byte [edx + 4], cl
mov ecx, 0x537ef0
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x1c]
lea eax, [edx + 0x38]
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebx + 0x2c]
call fcn.0040bd80
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + 0x150]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x18]
sub edx, ecx
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x1c]
push dword [eax + 0x150]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x1c]
mov ecx, dword [ebp - 0x38]
add ecx, edx
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 8]
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x1c]
call fcn.004863f0
mov eax, dword [ebp - 0x24]
push dword [eax + 0x1c]
mov eax, dword [ebp - 0x24]
push dword [eax + 8]
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [ebp - 0x38]
call fcn.00486fc0
jmp 0x4c2387
mov eax, dword [ebp - 0x24]
sub dword [eax + 0x1c], 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jle 0x4c23a4
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax + 8]
mov edx, dword [ebp - 0x38]
lea eax, [edx + ecx]
cmp byte [ebx + eax - 1], 0
je 0x4c2380
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x1c], 0
jne 0x4c23c0
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x48]
mov cx, 0x5b
mov dl, 2
call fcn.004c4140
mov esi, esi
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax + 8]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x38]
lea eax, [ecx + edx]
mov dl, byte [ebx + eax - 1]
mov eax, 0x53de1c
call fcn.004936b0
mov edx, dword [ebp - 0x24]
mov byte [edx + 4], al
mov eax, dword [ebp - 0x24]
cmp byte [eax + 4], 0
jne 0x4c2400
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x48]
mov cx, 0x5b
mov dl, 2
call fcn.004c4140
mov eax, dword [ebp - 0x24]
sub dword [eax + 0x1c], 1
jmp 0x4c25a0
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x1c]
mov eax, dword [eax + 0x150]
add eax, 8
mov edx, dword [ebp - 0x24]
cmp eax, dword [edx + 0x18]
jle 0x4c2434
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x48]
mov cx, 0x5a
mov dl, 2
call fcn.004c4140
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x38]
lea eax, [ecx + edx]
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx + 0x28]
lea edx, [ecx + 4]
mov ecx, 8
call fcn.00402d40
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x28]
test eax, eax
je 0x4c2463
mov eax, dword [eax - 4]
add eax, 1
push eax
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x28]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x1c]
xor ecx, ecx
call fcn.00486220
add dword [ebp - 0x38], 8
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x10]
lea edx, [eax + 8]
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x18]
lea edx, [eax - 8]
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x1c]
mov edx, dword [edx + 0x150]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x18]
sub ecx, edx
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 0x28]
push dword [eax + 0x6c]
mov eax, dword [ebp - 0x28]
push dword [eax + 0x68]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x2c]
xor edx, edx
call fcn.00485bc0
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 4]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x2c]
mov al, byte [ecx + 0x4f02a0]
mov byte [edx + 8], al
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 0x24]
mov cl, byte [eax + 5]
mov byte [edx + 9], cl
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 0x24]
mov cl, byte [eax + 6]
mov byte [edx + 0xa], cl
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x1c]
shr ecx, 8
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x2c]
mov byte [edx + 0xb], cl
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 0x24]
mov cl, byte [eax + 0x1c]
mov byte [edx + 0xc], cl
mov ecx, 0x537ef0
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x1c]
lea eax, [edx + 0x38]
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebx + 0x2c]
call fcn.0040bd80
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x1c]
push dword [eax + 0x150]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 8]
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x1c]
call fcn.004863f0
mov eax, dword [ebp - 0x24]
push dword [eax + 0x1c]
mov eax, dword [ebp - 0x24]
push dword [eax + 8]
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [ebp - 0x38]
call fcn.00486fc0
jmp 0x4c25a0
push ebp
mov ecx, 0x4a5
mov edx, str._fScLayers.pas
mov eax, 0x57473c
call fcn.0040e7c0
lea esi, [esi]
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x38], 0
je 0x4c26ec
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x38]
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx + 0x38]
mov edx, dword [ecx]
call dword [edx + 0x74]
push 8
mov eax, dword [ebp - 0x28]
push dword [eax + 0x6c]
mov eax, dword [ebp - 0x28]
push dword [eax + 0x68]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
lea edx, [ebp - 0x1c]
call fcn.004c16e0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x38]
xor ecx, ecx
call fcn.0049a720
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x24]
call fcn.004c7ae0
test byte [ebp - 0x34], 0xff
jne 0x4c263c
push 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 8]
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x38]
call fcn.0049a720
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x1c]
lea eax, [edx + 2]
push eax
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x10]
lea ecx, [edx + 3]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 8]
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x38]
call fcn.0049a7c0
jmp 0x4c2698
push 5
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 8]
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x38]
call fcn.0049a720
mov al, byte [ebp - 0x30]
test al, al
je 0x4c2678
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x1c]
mov eax, dword [eax + 0x150]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x10]
add edx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x10], edx
mov esi, esi
mov eax, dword [ebp - 0x24]
push dword [eax + 0x1c]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x10]
lea ecx, [edx + 5]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 8]
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x38]
call fcn.0049a7c0
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x38]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4c26ab
mov eax, dword [eax - 4]
add eax, 1
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x30]
test edx, edx
je 0x4c26bb
mov edx, dword [edx - 4]
add edx, 1
cmp eax, edx
jne 0x4c26e7
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x38]
mov eax, dword [edx + 0x10]
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx + 0x30]
test ecx, ecx
je 0x4c26d8
mov ecx, dword [ecx - 4]
add ecx, 1
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebx + 0x30]
call fcn.004859d0
test eax, eax
je 0x4c26ec
mov byte [ebp - 0x2c], 1
nop
mov al, byte [ebp - 0x2c]
test al, al
je 0x4c2704
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x48]
mov cx, 0x5b
mov dl, 2
call fcn.004c4140
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x10]
add edx, 5
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x40], 0
je 0x4c285e
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x1c], 0
jle 0x4c285e
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x24]
cmp edx, dword [eax + 0xc]
jne 0x4c275c
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
mov edx, 0x537ef0
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + 0xc]
mov ecx, 1
call fcn.0040bda0
nop
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x1c]
shl ecx, 2
mov eax, dword [ebp - 0x24]
add ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4c277b
mov edx, dword [edx - 4]
add edx, 1
cmp ecx, edx
jle 0x4c27ac
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x1c]
shl edx, 2
mov eax, dword [ebp - 0x24]
add edx, dword [eax + 0x10]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x20]
push eax
mov edx, 0x537ef0
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + 0xc]
mov ecx, 1
call fcn.0040bda0
mov esi, esi
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4c27d1
mov edx, dword [edx - 4]
add edx, 1
mov eax, dword [ebp - 0x24]
sub edx, dword [eax + 0x10]
mov dword [ebp - 0x18], edx
jmp 0x4c281d
mov eax, dword [ebp - 0x18]
add esi, eax
mov eax, dword [ebp - 0x14]
shl eax, 2
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4c27fe
mov eax, dword [eax - 4]
add eax, 1
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov edx, 0x537ef0
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + 0xc]
mov ecx, 1
call fcn.0040bda0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x24]
push dword [eax + 0xc]
push esi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x40]
lea ecx, [ebp - 0x10]
mov edi, dword [ebp - 0x28]
mov ebx, dword [edi + 0x40]
mov ebx, dword [ebx]
call dword [ebx + 0x10]
test al, al
je 0x4c27e0
mov eax, dword [ebp - 0x18]
lea edx, [esi + eax]
mov eax, dword [ebp - 0x24]
sub edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x1c], edx
jmp 0x4c2874
mov ecx, 0x537ef0
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 8]
mov ebx, dword [ebp - 0x24]
lea eax, [ebx + 0xc]
call fcn.0040bd80
mov eax, dword [ebp - 0x28]
add dword [eax + 0x68], 1
mov eax, dword [ebp - 0x28]
adc dword [eax + 0x6c], 0
jmp 0x4c28b5
mov ecx, 0x537ef0
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 8]
mov ebx, dword [ebp - 0x24]
lea eax, [ebx + 0xc]
call fcn.0040bd80
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x10]
lea eax, [edx + 5]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x10], eax
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004c1ed0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret