Function at 0x48f0d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4da930
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 4]
push str.____________________Entrance____________________
lea ecx, [esp + 0x30]
mov eax, ebx
push ecx
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], str.ExecSubstr
call fcn.00471a00
add esp, 0xc
mov dword [esp + 0x40], 0
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x40], 1
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x40], 2
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x40], 3
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 4
call fcn.00494de0
test al, al
jne 0x48f29f
push str.Wrong_SUBSTR_statement
lea edx, [esp + 0x30]
push edx
push ebx
call fcn.00471980
mov byte [esp + 0x4c], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f1fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f21f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f244
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f269
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xffffffff
mov edx, dword [esp + 0x34]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [esp + 0x14]
mov esi, dword [ebp + 0xc]
call fcn.0042b600
lea edi, [esp + 0x14]
call fcn.004082a0
mov edi, dword [esp + 0x18]
call fcn.0042b600
lea edi, [esp + 0x18]
call fcn.004082a0
mov edi, dword [esp + 0x1c]
call fcn.0042b600
lea edi, [esp + 0x1c]
call fcn.004082a0
mov esi, dword [esp + 0x20]
cmp dword [esi - 0xc], 0
mov byte [esp + 0x13], 0
jl 0x48f304
push 0x4f8774
push esi
call fcn.004a59da
add esp, 8
test eax, eax
je 0x48f304
sub eax, esi
sar eax, 1
jne 0x48f304
mov byte [esp + 0x13], 1
mov eax, dword [esi - 0xc]
test eax, eax
jl 0x48f323
push 0x4f877c
push esi
call fcn.004a59da
add esp, 8
test eax, eax
je 0x48f323
sub eax, esi
sar eax, 1
je 0x48f398
cmp byte [esp + 0x13], 0
jne 0x48f3be
push str.Wrong_syntax__should_be_either_REV_or_FWD_direction.
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.00471980
mov byte [esp + 0x4c], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f366
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f38b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 1
lea eax, [esi - 0x10]
jmp 0x48f22b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x48f3da
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
jl 0x48f3da
push eax
push esi
call fcn.004a59da
add esp, 8
test eax, eax
je 0x48f3da
sub eax, esi
sar eax, 1
jmp 0x48f3d3
lea ebx, [esp + 0x18]
lea edi, [esp + 0x14]
call fcn.0048f590
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48f424
mov eax, dword [ebp + 0x10]
mov edi, dword [eax]
mov esi, dword [ebp + 0xc]
call fcn.0042b600
mov edx, 0x4e7868
mov edi, eax
call fcn.00405c20
push str.Start_string_not_found___return_empty_string
lea ecx, [esp + 0x30]
push ecx
push ebx
call fcn.004719c0
mov byte [esp + 0x4c], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x48f4d2
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add edi, dword [eax - 0xc]
cmp dword [edx - 0xc], 0
je 0x48f446
mov ecx, edi
lea esi, [esp + 0x14]
call fcn.00422c30
mov esi, dword [esp + 0x14]
jmp 0x48f449
mov eax, dword [esi - 0xc]
cmp eax, 0xffffffff
jne 0x48f451
mov eax, dword [esi - 0xc]
lea ecx, [esp + 0x14]
push ecx
sub eax, edi
mov ecx, edi
lea edx, [esp + 0x28]
call fcn.0040b870
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov byte [esp + 0x40], 5
mov edi, dword [edx]
call fcn.0042b600
mov edi, eax
lea eax, [esp + 0x24]
call fcn.004082a0
mov esi, dword [esp + 0x24]
push esi
push str.SUBSTR_s
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.004719c0
lea eax, [esi - 0x10]
add esp, 0x10
mov byte [esp + 0x40], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f4b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f4de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f503
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f528
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f54d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xffffffff
mov edx, dword [esp + 0x34]
push ecx
push edx
call fcn.00471a00
mov al, 1
add esp, 0xc
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc